Android 代码监控apk安装,卸载,替换 代码段

mIntentFilter.addAction(Intent.ACTION_PACKAGE_ADDED); mIntentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED);

mxd2 2015-10-07   1496   0
Java  

Android动态注册广播,监听网络状态变化,判断网络模式 经验

void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action.equals

jopen 2014-10-20   282838   0

Android Activity启动过程源码分析 经验

final Intent intent; if (tag instanceof ShortcutInfo) { shortcut = (ShortcutInfo) tag; intent = shortcut

AlyciaGagne 2016-09-07   11689   0

Android6.0 权限适配,比你想的还要简单(实践篇) 经验

@Override public void onGranted() { Intent intent = new Intent(); //调用照相机 intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);

VeldaCavana 2016-08-19   50107   0

Android自定义控件实例,圆形头像(图库 + 裁剪+设置),上传头像显示为圆形 经验

void onClick(View v) { // Intent intent=new Intent(Intent.ACTION_PICK); // intent.setType("image/*"); //

mm19870604 2016-12-05   20691   0

android存储访问框架Storage Access Framework 经验

手机中的一张图片,通常都是发送一个 Intent 给相应的程序,一般这个程序是系统自带的图库应用(如果你的手机中有两个图库类的 app 很可能会叫你选择一个),这个 Intent 一般是这样写的: Intent intent=new

auguest 2016-02-20   25654   0

Android 电池电量监控初步 经验

引言 ,学习了包括Activity、Service、AppWidget、Broadcast、Intent、Notification、XML布局、XML配置等基础知识之后,尝试着做一个小玩意儿——电池监

fmms 2012-01-29   84816   0

监听Android应用程序安装卸载的代码 代码段

xml文件中注册的receiver中必须加上才可以; intent.getData().getSchemeSpecificPart()得到的是包名。 public

jopen 2015-01-11   2144   0
Android  

Android 打电话发短信代码 代码段

parse("smsto:15800001234"); Intent intent = new Intent(Intent.ACTION_SENDTO, uri); intent.putExtra("sms_body"

jopen 2015-01-11   2374   0
Android  

Android获取默认浏览器信息 代码段

default_browser = "android.intent.category.DEFAULT"; String browsable = "android.intent.category.BROWSABLE";

cey6 2015-05-31   1899   0
Android  

Android蓝牙配对 经验

content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android

ui5831 2016-01-30   38252   0

Android 7.0应用启动流程分析 经验

startActivityForResult() : public void startActivityForResult(Intent intent, int requestCode, @Nullable Bundle options)

DemiHung 2017-03-06   14350   0

Android 仿火萤视频桌面 神奇的 LiveWallPaper 经验

android:process=":wallpaper"> <intent-filter> JaninaSirma 2017-05-16   22715   0

创建Android桌面上的应用程序的快捷方式图标 代码段

import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android

c6b4 2015-01-19   2969   0
Android  

Android拍照、录像、录音代码范例 经验

*; import android.app.*; import android.content.Intent; import android.database.Cursor; import android

fmms 2012-01-03   27595   0

Android业务组件化之子模块SubModule的拆分以及它们之间的路由Router实现 经验

)子模块没有拆分之间 页面跳转 Intent intent = new Intent(this, XXX.class); startActivity(intent); 数据传递 直接页面st

eiot8028 2016-09-13   7971   0

Android 开发之Service 探索如何保证Service不被杀死或被kill之后自动重启 经验

startService() 启动服务:StartService(intent)系统通通过传入的intent搜索相关符合intent的Service, 依次执行其相关生命周期,service一旦启

xkfm5730 2016-12-07   22461   0

Android闹钟设置的解决方案 经验

ID, new Notification()); } else { Intent innerIntent = new Intent(this, DaemonInnerService.class); s

majestic 2016-09-21   6667   0

Android闹钟设置的解决方案 经验

ID, new Notification()); } else { Intent innerIntent = new Intent(this, DaemonInnerService.class); s

AndLevy 2016-08-06   11788   0

Android中的定时器AlarmManager 经验

AlarmManager的作用文档中的解释是:在特定的时刻为我们广播一个指定的Intent。简单的说就是我们设定一个时间,然后在该时间到来时,AlarmManager为我们广播一个我们设定的Intent,常用方法有五个: (1) set(int

jopen 2012-10-15   72332   0
1 2 3 4 5 6 7 8 9 10