Android OS系统和应用开发


Android OS系统和应用开发


工具

Android Studio开发IDE官方下载

Android Debug Bridge(ADB)官方下载

Android apk文件反编译工具(请合法使用)


文章

Google Play应用市场上架要求

本站Android产品展示


Android核心服务、组件

谷歌三件套

Google Services Framework(com.google.android.gsf)

Google Play Services(com.google.android.gms)

Google Play Store


编程


  Android后台线程执行前台UI操作:
// 解决 Can't toast on a thread that has not called Looper.prepare() 28+ Use:getApplicationContext().getMainExecutor().execute(() -> { }); new Handler(Looper.getMainLooper()).post(() -> {//避免用Looper.prepare() Toast.makeText(context, "...", Toast.LENGTH_SHORT).show(); }); 解决 AlertDialog+getApplicationContext() 报错 Unable to add window -- token null is not valid; 例外:Toast可用任何上下文及getApplicationContext() new AlertDialog.Builder(view.getContext()).create();// or MainActivity.this 解决横竖屏切换阻止构建 android:screenOrientation="portrait" tools:ignore="LockedOrientationActivity" tools:replace="android:screenOrientation"


2022-10-10T16:25:37.765000000Z