摘要:
大家都知道,现在安装Android系统的手机版本和设备千差万别,在模拟器上运行良好的程序安装到某款手机上说不定就出现崩溃的现象,开发者个人不可能购买所有设备逐个调试,所以在程序发布出去之后,如果出现了崩溃现象,开发者应该及时获取在该设备上导致崩溃的信息,这对于下一个版本的bug修复帮助极大,所以今天... 阅读全文
摘要:
一、准备工作:make_ext4fs、mkuserimg.sh、simg2img,把它们跟要修改的 .img.ext4(或.img)文件放置到同一个目录下二、转换源文件为img格式( .img则略过)使用./simg2img src des命令来转换userdata.img.ext4格式文件终端输入... 阅读全文
摘要:
一、准备工作:解压解打包工具,得到三个文件:make_ext4fs、mkuserimg.sh、simg2img,把它们跟要修改的 .img.ext4(或.img)文件放置到同一个目录下二、转换源文件为img格式( .img则略过)使用./simg2img src des命令来转换system.img... 阅读全文
摘要:
要在打包APK时加入混淆需要在Module中的buid.gradle中加入如下信息 buildTypes { release { minifyEnabled true shrinkResources true pr... 阅读全文
摘要:
View vFocus=getWindow().getDecorView().findFocus(); if(vFocus instanceof EditText){ ((EditText) vFocus).setText("当前焦点");} 阅读全文
摘要:
1 public void openApp(String packageName, Context context) { 2 PackageManager packageManager = context.getPackageManager(); 3 Int... 阅读全文
摘要:
1 /** 2 * 安装apk 3 * 4 * @param url 5 */ 6 private void installApk() { 7 File apkfile = new File(apkFilePath); 8 ... 阅读全文
摘要:
1 public static final int FLAG_HOMEKEY_DISPATCHED = 0x80000000; 2 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5 s... 阅读全文
摘要:
1 public class Main4Activity extends Activity { 2 3 private TextView tv1; 4 private Button button1; 5 private RelativeLayout rlMain... 阅读全文
摘要:
1 @Override 2 protected void onCreate(Bundle savedInstanceState) { 3 super.onCreate(savedInstanceState); 4 setContentView(R.layou... 阅读全文