解决方案 »

  1.   

    private String getMyUUID(){     final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(this.TELEPHONY_SERVICE);        final String tmDevice, tmSerial, tmPhone, androidId;        tmDevice = "" + tm.getDeviceId();       tmSerial = "" + tm.getSimSerialNumber();        androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(),android.provider.Settings.Secure.ANDROID_ID);        UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode());        String uniqueId = deviceUuid.toString();     Log.d("debug","uuid="+uniqueId);     return uniqueId;    }获取唯一且不变的UUID
      

  2.   

    我也是新手,目前努力学习入门中,也请朋友录制了一些系统性的入门教程,本来是用在群里学习的,现在也在这里跟大家分享一下
    教程按进阶章节录制,先编辑好哪个就先贴哪个了...其他的弄好了再往这里更新,有需要的请多关注,或者直接到群里来一起学习<Android开发入门 372858684>
    <第一章>更新搬运中...
    ...
    <第十章>Activity与Intent:http://pan.baidu.com/s/1bnAGVzL
    讲解内容:Activity基础知识;Activity的操作;Intent;IntentFilter 
    ...
    <第十三章>android与intent(第一课):http://pan.baidu.com/s/1gdp9ZuN
    讲解内容:理解Android中Intent的意义;了解Intent的使用;了解Intent的各个参数;了解IntentFilter
    ...
      

  3.   

    2L的可以采纳,另外MAC地址一般也可以作为唯一标识~~!