I have set my app as home screen(), so when i clik in home button the system let me to choose between default home screen and my app. I choose my app, it's ok. But when a user change a setting i need to change the home screen to default (system home screen) without choosing it, directly. Is it possible?
Thanks in advance and sorry for my english.
You cannot set the home screen programmatically: you must provide the user with an option to choose which launcher they want to use.
I ran into a similar issue when developing a soft keyboard for Android. Since you can't set the default keyboard, I showed a dialog which allowed the user to pick my keyboard during setup. I then verified that my keyboard was now the default before moving forward in the setup wizard.
Basically, the best you can do is show the dialog chooser to allow the user to choose the default system home screen.
Related
In my app, there is a activity where it is important that the system UI buttons (home, back, etc.) are not pressed, though it is ok if they are still visible. I have heard that there might be a way to achieve this, at least in 4.0 (I'm using 4.2).
A way to quickly and automatically return to the app if the buttons are pressed is also a correct answer, but seems less plausible. Thanks.
This is possible to override the home button by making your activity as home activity i.e
-- category android:name="android.intent.category.HOME"
but in this case android give user option to choose the app on launcher dialog where if user choose your application and click always, he will not be able to go to homescreen until you specifically provide a exit button oinside your app and reset it which you should definately do.
Usually the icon is fixed. But I want to make an application: when user presses the icon, it won't open any new UI but just change the icon itself. That means it has only two status and can be changed by users pressing on it.
Are some code examples available for this?
As you can see from below screenshots of my phone. The app icon represents a cleaner. When I press it, the 2nd picture shows that the icon changes and it won't enter any UI, just shows the percent of phone's processes cleaning status.
I want to make an app with this effect.
You cannot change your application icon at runtime, in terms of what is displayed by the home screen in its launcher.
You are welcome to write a home screen app widget that can respond to user input and can change its UI.
Want to set a my app image on Lock screen of device when user is using the app and presses the lock button. And want to change it back to default when he quits the app.
Is This possible to do? Please suggest?
You are welcome to create an app widget that the user can elect to add to their lockscreen on Android 4.2 and higher.
I am recently working on a Parental Control Home Screen.
Noted from research says there are no way to code direct set my apps as default, but am thinking to provide a button for user to ops reset the default? So after pressing the reset button, user will able to chose a new default Home Screen when press on HOME button.
Any hints or though for doing so?
EDIT
Noted this reset action is prohibited for security reasons. Maybe I should change to another option: When user pressed a button, it will bring out the set HOME SCREEN default option?
All I need to do is to provide a much straight forward way for my app user to set my app as the default Home Screen. The user might have limited experience or even new to Android system. Perhaps they might be new to computer equipment as well. So I need a simple way to let them achieve the setting.
Please enlighten me. TQ.
I developed a view based application for Android but I get navigation keys on the touch screen, up/down/select/ok. I do not need these keys and I want to remove them so that they don't show on the screen so that the application displays full screen. Anything to do with LWUIT? Help please.
Thanks
It can be done inside your android emulator. Press menu on home screen, open "Settings", then "language and keyboard", and disable all keyboards. The emulator keyboard (not the on screen one, but your PC keyboard and button keyboard on the right) is considered as hardware keyboard, and will still work.