随笔分类 - android
摘要:1.获取当前时间:import java.text.SimpleDateFormat; SimpleDateFormat formatter = new SimpleDateFormat ("yyyy年MM月dd日 HH:mm:ss ...
阅读全文
摘要:一、 android.content.ReceiverCallNotAllowedException: IntentReceiver components are not allowed to register to receive intents解决方法:在Android开发中1、bindServ...
阅读全文
摘要:android--获取手机的IMSI码,并判断是中国移动\中国联通\中国电信转载TelephonyManagertelManager=(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);Stringimsi=telManager...
阅读全文
摘要:private static AlarmManager am; private static PendingIntent pendingIntent; /** * 使用 AlarmManager 来 定时启动服务 */ public static void ...
阅读全文
摘要:/** * 获取设备识别信息 {"device_id": "your_device_id", "mac": "your_device_mac"} * @param context * @return */ public static String getDe...
阅读全文
摘要:为了可以实现自动化打包,下面我介绍一下如何用ant工具来打包android项目:直接上build.xml文件源码: ...
阅读全文

浙公网安备 33010602011771号