随笔分类 -  android

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