Forwarded from serendipityfeynman
打扰请教一个问题,我把一个 apk 签名了系统签名,通过 adb root / adb remount / adb push *.apk /system/app 后,尝试了各种办法都无法卸载这个应用,重启了还是显示 0kb 和 未针对此用户安装 。我尝试了 adb shell / pm uninstall -k --user 0 xxx.xxx 提示 ailure [not installed for 0] ,是多用户的原因吗?请问如何解决?谢谢
Forwarded from Yang Y
adb shell pm path packagename ,拿到安装路径,然后删掉,重启机器,就卸载了
Forwarded from 工藤 新一
我又改了一下:
org.gradle.jvmargs=-Xmx8192m -XX:PermSize=512m -XX:MaxPermSize=8192m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
这次是没问题了,后续得再观察。
org.gradle.jvmargs=-Xmx8192m -XX:PermSize=512m -XX:MaxPermSize=8192m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
这次是没问题了,后续得再观察。
Forwarded from 没有字的回音 ♪️
Stack Overflow
Why does the isTheFinalCountDown method in Chronometer class open a YouTube video?
The public method isTheFinalCountDown just opens a YouTube video for the song The Final Count Down.
All the doc has to say about it is this:
whether this is the final countdown
Since this is a
All the doc has to say about it is this:
whether this is the final countdown
Since this is a
Forwarded from 阿 尔法
大家好,现在有一个需求,用户可以自己设置横屏或者竖屏,并保存起来,下次进入对应的屏幕显示方式,但是现在遇到一个问题,横屏的时候,oncreate执行了两次,根据网上的方法android:configChanges="orientation|keyboardHidden|screenSize"
设置了,但是并不会加载横屏布局。不设置就可以加载横屏布局,但是oncreate执行了两次。
设置了,但是并不会加载横屏布局。不设置就可以加载横屏布局,但是oncreate执行了两次。
Forwarded from Rikka
别动什么 configChanges
就 attachBaseContext 的时候摸一下呢
就 attachBaseContext 的时候摸一下呢
Forwarded from Rikka
override fun attachBaseContext(newBase: Context) {
val configuration = newBase.resources.configuration
configuration.orientation = Configuration.ORIENTATION_LANDSCAPE
super.attachBaseContext(newBase.createConfigurationContext(configuration))
}
应该布局就会对configChanges setRequestedOrientation 什么的 还是要有
Forwarded from Airsaid
想请问一下大家,我现在正在开发一个 SDK 提供给对方使用。这个 SDK 是一个 library module,然后它也依赖了其他的 module。
现在问题是,打包 AAR 只会包含当前项目的代码和资源,这就会导致使用方在使用时会无法找到 SDK 所依赖 module 中的类或资源。
我现在的解决方式是,将这些 module 通过 maven-publish plugin 都上传到 maven 仓库,这块通过 https://developer.android.com/studio/build/maven-publish-plugin 来做的,发现不用手动配置 pom 文件这些还挺方便的,但是默认都是 runtime,还需要改为 compile 才行。
上传到 maven 后,使用方直接通过远程依赖使用 SDK。不知道这种方式有没有什么坑或不妥的?第一次开发 SDK,希望知道这样做对不对。
现在问题是,打包 AAR 只会包含当前项目的代码和资源,这就会导致使用方在使用时会无法找到 SDK 所依赖 module 中的类或资源。
我现在的解决方式是,将这些 module 通过 maven-publish plugin 都上传到 maven 仓库,这块通过 https://developer.android.com/studio/build/maven-publish-plugin 来做的,发现不用手动配置 pom 文件这些还挺方便的,但是默认都是 runtime,还需要改为 compile 才行。
上传到 maven 后,使用方直接通过远程依赖使用 SDK。不知道这种方式有没有什么坑或不妥的?第一次开发 SDK,希望知道这样做对不对。
Android Developers
Publish your library | Android Studio | Android Developers
Publishing an Android library involves preparing it for release, configuring publication variants and test fixtures, and distributing it.
Forwarded from Oasis Feng
在实现 Notification Bubble 时遇到一个问题,当近期点过 bubble 打开悬浮窗后,再通过 launcher 启动这个应用时就会直接跳到那个悬浮窗里去,而不是打开全屏的界面……
Forwarded from Oasis Feng
我看了一下 AOSP 源码,该加的 flags 系统已经加了……
FLAG_ACTIVITY_NEW_DOCUMENT | FLAG_ACTIVITY_MULTIPLE_TASK