排序
Android Studio 插件 AGP问题
编译时出现下面错误: Failed to query the value of task ':app:compileDebugJavaWithJavac' property 'options.generatedSourceOutputDirectory' 参考 Wizard: Mobile Application project bu...
HTC G7 搜索和感光按键修改
1.开启R.E管理器,进入根目录的 /system/usr/keylayout/,找到qwerty.kl文件,开启可读写权限,为了安全起见,可以先将这个文件复制到SD卡上备份。修改搜索键设置:长按qwerty.kl文件,选择用文...
ADBKeyboard
adb input是不支持中文输入的,使用该输入法可利用adb指令进行模拟中文输入。 github: https://github.com/senzhk/ADBKeyBoard apk下载: 点此下载APK
Android常用开发框架
Butter Knife http://jakewharton.github.io/butterknife/ xUtils https://github.com/wyouflf/xUtils3 okHttp https://square.github.io/okhttp/
如何在mac上启动adb
确定Android SDK的安装位置,如笔者的就在: /Library/Android/sdk 编辑.bash_profile文件:: cd ~ vi .bash_profile 在文件中加入下面两行,将路径加入环境变量: export PATH=${PATH}:~/Libra...
Lombok中@Data注解不生成指定的getter/setter
注解中加上AccessLevel.NONE,如下: @Data public class HcLoginResponse { private String token; @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private AuthType authType; public ...
Android关于ViewModelProviders.of方法过时的问题
下面是Android Studio自动生成的代码: homeViewModel = ViewModelProviders.of(this).get(HomeViewModel.class); 但是ViewModelProviders.of方法被标记为过时,替换为: homeViewModel = new V...
Android广告轮播
参考: https://www.jianshu.com/p/652090682b31 https://blog.csdn.net/yu540135101/article/details/82559572
Android中各种常用的Intent
返回到桌面 @Test public void backToHome() { Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); context.startActivity(intent); }
Android Studio项目中使用AndroidX支持库及JUnit Test的相关配置说明
修改gradle.properties文件,加入下面2行: android.useAndroidX=true android.enableJetifier=true 修改app的build.gradle文件: defaultConfig中加入 defaultConfig { testInstrumentationRun...