1.如何改变标题栏的颜色,如何使欢迎也铺满全屏
1.requestWindowFeature(Window.FEATURE_NO_TITLE);--适用于单个Activity
2.配置整个App---android:theme="@style/Theme.AppCompat.NoActionBar"
android:theme="@style/Theme.AppCompat.NoActionBar"(也可以配置单个Activity,需要注意Activity的基类)
2.覆盖安装后,原程序中所存的sp是否还存在
1。覆盖安装时,原程序中sp是存在的
3.应用发布后,如果应用内部没有检测更新,那么新版本发布后,会不会发现更新呢
4.一个应用如何启动另一个应用
4.1简单的启动某个应用(如果没有找到对应包信息,会报错, java.lang.IllegalStateException: Could not execute method of the activity)
Intent intent=new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
ComponentName componentName=new ComponentName("com.example.rookie.mycarema","com.example.rookie.mycarema.MainActivity");
intent.setComponent(componentName);
startActivity(intent);
4.2为避免上述错误,可改进为一个 方法
private void startApplicationByPName(String pName){
if (TextUtils.isEmpty(pName))
return;
PackageInfo packageInfo=null;
try {
//通过包名获得包信息
packageInfo= getPackageManager().getPackageInfo(pName,0);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
if (packageInfo==null)
return;
Intent startIntent=new Intent(Intent.ACTION_MAIN);
startIntent.addCategory(Intent.CATEGORY_LAUNCHER);
startIntent.setPackage(pName);
//查找intent对应的应用信息列表
List<ResolveInfo> resolveInfoList = getPackageManager().queryIntentActivities(startIntent, 0);
if (resolveInfoList!=null&&resolveInfoList.size()!=0){
ResolveInfo resolveInfo = resolveInfoList.iterator().next();
if (resolveInfo!=null){
String packageName = resolveInfo.activityInfo.packageName;
String className = resolveInfo.activityInfo.name;
Intent resolveIntent=new Intent(Intent.ACTION_MAIN);
startIntent.addCategory(Intent.CATEGORY_LAUNCHER);
ComponentName componentName=new ComponentName(packageName,className);
resolveIntent.setComponent(componentName);
startActivity(resolveIntent);
}
}
}
5.gradle文件中,对于打包信息的配置,
5.1如何区分release和debug
5.2多渠道打包
6.如何进行代码的review,如何做代码的lint
7.线程的同步
8.Android Json解析
9.EventBus的使用
10.qq空间阻尼效果
11.四种引用以及java虚拟机的回收机制
12.如何使用异步任务以及异步任务的取消
13.Android Sqlite操作
14.Android 工具类的开发
15.Android WebView的使用
16.如何减少App启动的白屏时间
17.Android主题的选择
18.减少App启动的冷启动时间
19.Android Studio打包方式及覆盖安装
20.调用Android系统自带功能总结