Android功能点
来源:互联网 发布:java类适配器 编辑:程序博客网 时间:2024/05/14 22:35
> 安装和卸载
Android代码实现APP普通安装卸载和静默安装卸载- http://blog.csdn.net/risingwonderland/article/details/45537313
Android静默安装和静默卸载代码- http://www.cnblogs.com/lr393993507/p/5543145.html
Android中实现静态的默认安装和卸载应用- http://blog.csdn.net/jiangwei0910410003/article/details/36427963
在安装和卸载完后,android系统会发一个广播:
android.intent.action.PACKAGE_ADDED(安装);
android.intent.action.PACKAGE_REMOVED(卸载);
/* 安装apk */
public static void installApk(Context context, String fileName) {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setDataAndType(Uri.parse("file://" + fileName),"application/vnd.android.package-archive");
context.startActivity(intent);
}
/* 卸载apk */
public static void uninstallApk(Context context, String packageName) {
Uri uri = Uri.parse("package:" + packageName);
Intent intent = new Intent(Intent.ACTION_DELETE, uri);
context.startActivity(intent);
}
> Android壁纸,动态壁纸 静态壁纸
深入理解Android壁纸- http://blog.csdn.net/innost/article/details/47660645
在Android中设置壁纸的方法,在Android中设置壁纸的方法有三种,分别是:
1、使用WallpaperManager的setResource(int ResourceID)方法
2、使用WallpaperManager的setBitmap(Bitmap bitmap)方法
3、重写ContextWrapper 类中提供的setWallpaper()
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
> 飞行模式,4.2以上的版本app没有权限修改Setting.Global的
android 4.2 系统以后的飞行模式- http://blog.csdn.net/hrklzwzj/article/details/51940507
飞行模式- https://github.com/tl3shi/AirPlaneModeSwitcher
if(Settings.System.getString(cr,Settings.System.AIRPLANE_MODE_ON).equals("0")){
//获取当前飞行模式状态,返回的是String值0,或1.0为关闭飞行,1为开启飞行
//如果关闭飞行,则打开飞行
Settings.System.putString(cr,Settings.System.AIRPLANE_MODE_ON, "1");
// Settings.System.putString(cr,Settings.System.AIRPLANE_MODE_ON, "0");
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
sendBroadcast(intent);
}
> 手电筒
android 实现手电筒功能- http://blog.csdn.net/ak4100/article/details/43953055
Android开启手电筒功能(完美适配Android4x,5x,6x)- http://blog.csdn.net/mynameishuangshuai/article/details/53214763
> 调节屏幕亮度(当前应用和系统亮度)
Android 调节屏幕亮度(当前应用和系统亮度)- http://blog.csdn.net/xinyutianyu/article/details/45605803
android-设置系统及应用级屏幕亮度- http://blog.csdn.net/centralperk/article/details/40345221
Android6.0调节屏幕亮度显示- http://blog.csdn.net/qitehuanjue/article/details/53219873
android5.1 自动亮度调节简析- http://www.jianshu.com/p/13658019bcea
Android设置屏幕亮度的两种方式- http://blog.csdn.net/jiangxuelei_2015/article/details/51243575
Android调整屏幕亮度和改变屏幕亮度调整模式的代码- http://blog.csdn.net/hzlxtq123/article/details/53742057
boolean autoBrightness = false;
ContentResolver contentResolver = activity.getContentResolver();
try {
autoBrightness = Settings.System.getInt(contentResolver,
Settings.System.SCREEN_BRIGHTNESS_MODE) == Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC;
}
> 手机低电量模式
Android代码实现APP普通安装卸载和静默安装卸载- http://blog.csdn.net/risingwonderland/article/details/45537313
Android静默安装和静默卸载代码- http://www.cnblogs.com/lr393993507/p/5543145.html
Android中实现静态的默认安装和卸载应用- http://blog.csdn.net/jiangwei0910410003/article/details/36427963
在安装和卸载完后,android系统会发一个广播:
android.intent.action.PACKAGE_ADDED(安装);
android.intent.action.PACKAGE_REMOVED(卸载);
/* 安装apk */
public static void installApk(Context context, String fileName) {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setDataAndType(Uri.parse("file://" + fileName),"application/vnd.android.package-archive");
context.startActivity(intent);
}
/* 卸载apk */
public static void uninstallApk(Context context, String packageName) {
Uri uri = Uri.parse("package:" + packageName);
Intent intent = new Intent(Intent.ACTION_DELETE, uri);
context.startActivity(intent);
}
> Android壁纸,动态壁纸 静态壁纸
深入理解Android壁纸- http://blog.csdn.net/innost/article/details/47660645
在Android中设置壁纸的方法,在Android中设置壁纸的方法有三种,分别是:
1、使用WallpaperManager的setResource(int ResourceID)方法
2、使用WallpaperManager的setBitmap(Bitmap bitmap)方法
3、重写ContextWrapper 类中提供的setWallpaper()
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
> 飞行模式,4.2以上的版本app没有权限修改Setting.Global的
android 4.2 系统以后的飞行模式- http://blog.csdn.net/hrklzwzj/article/details/51940507
飞行模式- https://github.com/tl3shi/AirPlaneModeSwitcher
if(Settings.System.getString(cr,Settings.System.AIRPLANE_MODE_ON).equals("0")){
//获取当前飞行模式状态,返回的是String值0,或1.0为关闭飞行,1为开启飞行
//如果关闭飞行,则打开飞行
Settings.System.putString(cr,Settings.System.AIRPLANE_MODE_ON, "1");
// Settings.System.putString(cr,Settings.System.AIRPLANE_MODE_ON, "0");
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
sendBroadcast(intent);
}
> 手电筒
android 实现手电筒功能- http://blog.csdn.net/ak4100/article/details/43953055
Android开启手电筒功能(完美适配Android4x,5x,6x)- http://blog.csdn.net/mynameishuangshuai/article/details/53214763
> 调节屏幕亮度(当前应用和系统亮度)
Android 调节屏幕亮度(当前应用和系统亮度)- http://blog.csdn.net/xinyutianyu/article/details/45605803
android-设置系统及应用级屏幕亮度- http://blog.csdn.net/centralperk/article/details/40345221
Android6.0调节屏幕亮度显示- http://blog.csdn.net/qitehuanjue/article/details/53219873
android5.1 自动亮度调节简析- http://www.jianshu.com/p/13658019bcea
Android设置屏幕亮度的两种方式- http://blog.csdn.net/jiangxuelei_2015/article/details/51243575
Android调整屏幕亮度和改变屏幕亮度调整模式的代码- http://blog.csdn.net/hzlxtq123/article/details/53742057
boolean autoBrightness = false;
ContentResolver contentResolver = activity.getContentResolver();
try {
autoBrightness = Settings.System.getInt(contentResolver,
Settings.System.SCREEN_BRIGHTNESS_MODE) == Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC;
}
> 手机低电量模式
Android Low Battery 低电量处理流程- http://blog.csdn.net/wangbaochu/article/details/44406681
> 缓存处理及手机硬盘容量
Android 文件保存getFilesDir()丶getCacheDir()、getExternalFilesDir() 等操作方法探索- http://blog.csdn.net/android_technology/article/details/53516357
计算Android App占用的各种空间大小- https://www.baidufe.com/item/8786bc2e95a042320bef.html http://blog.csdn.net/hyl963254113/article/details/43405363
Android获取cpu使用率,剩余内存和硬盘容量- http://blog.csdn.net/l2show/article/details/40950657
Android中App可分配内存的大小- http://blog.csdn.net/u011506413/article/details/50965435
阅读全文
0 0
- Android功能点
- android 点赞功能封装
- Android APP功能测试检测点总结
- Android百度地图点聚合功能
- Android:百度地图 点聚合功能
- 记录android开发用到的功能点
- Android中Listview实现点赞功能
- Android:百度地图,点聚合功能
- Android 仿qq 点赞功能
- 功能点
- eWeek:谷歌Android急需改进的十点功能
- Android 下的usb框架及功能点
- Android 下的usb框架及功能点
- android 计算器,纯手打,功能实现了,bug可能还有点
- Android 下的usb框架及功能点
- [学习笔记]Android系统功能之多点触摸交互处理
- android实现多层红点提示的功能
- 故事点与功能点
- 论如何用四种方法扫荡一道题
- 不求服务端,自己改接口!Charles抓包工具在Android/iOS开发中的应用
- 常见的设计模式
- 栈的存储结构
- android中从数组资源中得到图片资源
- Android功能点
- 高斯消元模板
- python3将程序打包成.exe文件
- SQL索引
- 洛谷八连测r4t2
- 五十音
- tslint pre-commit 配置教程
- Travis CI生命周期以及不同阶段运行失败会导致生么构建结果。
- iOS代码规范~系统相册、导航栏标题、cell设置分割线、图层