共 15 篇文章 |
|
Android应用捕获全局异常(未测出来的Bug)创建一个继承Application类的类。 阅310 转0 评0 公众公开 16-09-25 20:52 |
Android获取应用缓存,清理缓存1得到每个应用的缓存大小。packageName = packageName;name = mPm.getApplicationInfo(packageName, 0).loadLabel(mPm).toString();icon = mPm.getApplicationInfo(packageName, 0).loadIcon(mPm);用隐式Intent跳到系统清除缓存界面*/Intent intent = new Intent("android.settings.APPLICATION_DETAILS_SET... 阅1026 转10 评0 公众公开 16-09-24 21:51 |
@Override public void onReceive(Context context, Intent intent) { mSkipPackageName = intent.getStringExtra("packagename");private void watch() { new Thread(new Runnable() { @Override public void run() {@Override public void onBackPressed() { //返回开启桌面Activity Intent intent = new Intent(Intent.ACTION_MAI... 阅145 转0 评0 公众公开 16-09-17 21:00 |
阅53 转0 评0 公众公开 16-09-16 11:16 |
public static ArrayList<ProgressInfoBean> getProgressInfo(Context context) { ArrayList<ProgressInfoBean> progressInfoBeen = new ArrayList<ProgressInfoBean>(); 阅163 转0 评0 公众公开 16-09-15 20:05 |
阅100 转0 评0 公众公开 16-09-14 21:29 |
ArrayList<AppInfoBean>list = new ArrayList<AppInfoBean>();for (PackageInfo packageInfo : packageInfos) { AppInfoBean appInfoBean = new AppInfoBean(); 阅43 转0 评0 公众公开 16-09-11 16:28 |
阅53 转0 评0 公众公开 16-09-11 16:25 |
parse("content://sms"), new String[]{"address", "date", "type", "body"}, null, null, null);serializer.endTag(null,"sms");//设置进度条框 index++; pd.setProgress(index); } serializer.endTag(null,"smss"); serializer.endDocument(); } catch (Exception e)... 阅29 转0 评0 公众公开 16-09-11 11:29 |
Android常用功能拦截短信电话拦截短信相对简单些,开启一个服务,在服务中注册一个广播接收者就可以监听短信有序广播并将其拦截下来。mReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { Object[] objects = (Object[]) intent.getExtras().get("pdus");TelephonyManager te... 阅77 转0 评0 公众公开 16-09-10 21:50 |