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_TASKForwarded from shortybin
问个问题 组件化 假如组建A调用组建B的播放功能,组建B里面的播放器暂停后,怎么把回调发送到组建A
Forwarded from SuperMarioSF | Trust Platform Builder (?)
你只杀掉那个名为system_server的那个zygote进程就足够了(
Forwarded from Ninos Roger
image_2020-09-15_16-53-57.png
5 KB
官方给的BottomNavigationView+Fragment的demo,Fragment没法复用,各位有没有在保持官方写法思路上让fragment页面复用
Forwarded from Ninos Roger
image_2020-09-15_16-55-15.png
44.8 KB
Forwarded from Nico Ranshi
dumpsys telephony.registry |grep mServiceState|grep nrState=CONNECTED
Forwarded from 螺莉莉的黑板报
【提醒】node-gyp 的官方文档是错误的,通过这份文档您无法完成部分二进制依赖的编译工作。
正确的做法为:
1. 安装 VS Code 2019 Community 和 Desktop Development with C++ 扩展
2. 安装 Python 3.8 非商店版本
3. 执行下列命令:
向 node-gyp 开发团队致以诚挚的祖安。
正确的做法为:
1. 安装 VS Code 2019 Community 和 Desktop Development with C++ 扩展
2. 安装 Python 3.8 非商店版本
3. 执行下列命令:
npm config set msvs_version 2019
npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"
向 node-gyp 开发团队致以诚挚的祖安。