摘要:
1.Md5(unrecommented)public static String md5(String string) { byte[] hash; try { hash = MessageDigest.getInstance("MD5").digest(string.getBytes("UTF-8")); } catch (NoSuchAlgorithmException e) { throw new RuntimeException("Huh, MD5 should be supported?", e); } catch (Uns 阅读全文
摘要:
1.give permission : code:<uses-permission android:name="android.permission.READ_PHONE_STATE" />2.textView=(TextView)findViewById(R.id.textView);textView.setText(((TelephonyManager) getSystemService(TELEPHONY_SERVICE)).getDeviceId()); 阅读全文