How to restore emulator UI to default settings? - android

There should be a bunch of buttons on dark gray background right of the phone screen. I started playing with the keyboard shortcuts available in that window and I must have done something to make the whole right-hand side of the emulator window disappear. How do I restore it?

This may be of help: http://www.android.encke.net/android-emulator-tutorial.html - Ctrl-F11/F12 may get you back in order.

Related

Make the app content blank in the "recent apps" list

When the app is shown in the recents menu, I need to make the content blank, so that screenshots can not be taken.
This flag works
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
and the screen becomes empty white. I need to handle the scenario where the user has selected the dark mode, and so the screen must be empty dark.
What other options can I have other than using this flag?
Sorry, but you do not have control over how the OS displays your app in the overview screen, in terms of the color when FLAG_SECURE is used.
I have found this library on github that solves the problem.
https://github.com/nimblehq/recent-apps-thumbnail-hiding
You can use custom layout for the recent app views.

How to hide screen informations off Android app when it goes to the background

Using FLAG_SECURE, when app goes to background screen info are invisible, however, with this option users cannot take a screenshot anymore.
it's there any way to remove FLAG_SECURE when app back to FOREGROUND ?
Or any other solution for this problem ?!
You can put a black or white background in onPause and hide it in onResume if you dont need the FLAG_SECURE always active. This could prevent the window manager to exposes the screenshot in the window manager screen.

Stopping the Android Soft Keyboard flashing black switching activities

I'm working on an app and have a small problem when the soft keyboard is shown before switching activities. This happens when:
The user hits the search button
They enter a search term, view the search in a new activity and then return to the previous page
When the user returns to the previous page, a black box flashes where the soft keyboard was and then returns to normal
If the list is turned off or empty this problem never manifests. I have tried to enable caching of the listview children, hiding the listview when the activity pauses but to no avail. I would really appreciate any insight into why this might be occuring.
Thanks,
Laurence
Thought I'd follow up.
This problem was specific to pre Android 3.0 devices. On HC, ICS and JB this is no longer exhibited. As simple way to get around this on older versions of Android is to just change the windows background to match the color of your view. It still is blanked out but no where near as noticeable as black on white.

Visual effects, and Activity redraw after pressing home button and come back

I am programming an Android app and it seems to work well, but when the user presses the 'home' button, and after returns to the app, the activity has changed his position some pixels, and due to this some buttons are hidden.
It only happens in some phone models , and only with visual effects enabled on the operating system.
It seems that the activity is drawn before the top bar of Android dissapears (the bar with the battery info, wifi... etc), and the activity starts to draw under the place of this bar.
What can be happening? how can I solve it?
Thank you very much!
PD: I am using a relative layout on this activity, and some layouts inside placed at top and bottom.
PD2: I forgot to tell that the app is in "no tittle bar and fullscreen".

Android : Floating Clickable Icon over Screen?

There's an Android Application called Smart Taskbar that manages to Pin a small SemiTransparent Icon over the screen...The icon remains visible over ALL the activites (including the home screen). The Icon is Clickable (/Touchable), and it does popopen a Small Popup window which the user can interact with.
I'm very interested in how this is done? I think it's something to with PopupWindow.
Any ideas? Thanks in Advance.
I recently experimented with this.
See this question: Creating a system overlay window (always on top) - the solution is virtually the same, but you need to set TYPE_SYSTEM_ALERT in the layout params instead of TYPE_SYSTEM_OVERLAY.

Categories

Resources