Android - customize “your recent screens appear here” / “your recent apps” screen

[亡魂溺海] 提交于 2019-12-12 02:18:29

问题


I realy dint know how this screen is named :/ i called it after the message it shows when no app is running "your recent screens appear here". It basicly shows all apps currently runnning on the device.

So you know what im talking about here screens (sry big and spammy) with and without running apps. The second screen also shows the google widget i want to get rid off.

Is there a way to adjust the "your recent screens appear here" screen on Android phones and Tablets?
Is there a solution without using the Device Administration API?
If the Device Administration API is required - where can i find a documentation/tutorial that teaches me how to do it?


Currently we created a Launcher App for Android in order to deny access to most other Apps. It only shows our app and the android settings.

Unfortunately there is an Google Widget on the "your recent screens appear here" screen. It is the same widget shown on the Home screen, when using the default launcher. When i disable the Google Application the Widget disappears properly from the Home screen, but leaves a "Couldn´t add widget" message on the "your recent screens appear here" screen. Currently we are looking for an easy solution to get rid of that widget.


回答1:


there is actually no way to customize this page without changes in the OS.

still i found a workarround to get rid of the widget. when starting an App i add a flag that prevents it from beeing displayed in the recent apps screen. this way the user only sees the empty recent apps screen which has no widget.

Intent i = manager.getLaunchIntentForPackage(apps.get(pos).name.toString());
i.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
HomeActivity.this.startActivity(i);


来源:https://stackoverflow.com/questions/37189914/android-customize-your-recent-screens-appear-here-your-recent-apps-scree

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!