How to Achieve HOME SCREEN LAUNCHER in my Android Application? - android

i have develop my application in android.
Now i want to make Home Screen Launcher. and i want to call that Home-Screen launcher from my activity.
So,,how to achieve this,please give me suggestions to make Home-Screen launcher and how to call it from my application??
Thanks in Advance

By Home Screen Launcher, I think you mean Home Screen Activity and a demo Home Screen Activity is in the samples directory of the SDK. Remember that a replacement for the default Home Screen can only be setup/activated by the user as a security measure. Otherwise you can start it through an Intent, but it won't last unless the user sets it as the default.
See Home Screen Activity

Related

launcher animation when phone is unlocked

I'm new to Android and I'm trying to make a launcher as my first Android project. I've done the basic work of displaying installed apps. Now I want to add animations to improve user experience. But I'm not able to figure out the following two things :
How to add animation when the phone is just unlocked and apps are displayed on the homescreen like in iPhone or MIUI stock launcher?
How to know the app that is minimized or closed on pressing the home button so that I can show an animation like the app is minimized to it's icon on homescreen just like in MIUI?
OnResume() of your application activity will be called once user presses home button or unlocks phone. So you can implement you logic of showing animation there.

How to close the new Android 7.1 App Shortcut

When clicking on the app-shortcut, I am opening an Activity with a Dialog theme. It seems that the app-shortcuts are not closed if I use that theme on the Activity. If I delete the Dialog theme, the app-shortcuts are closed after clicking on one of them.
Any idea? Thanks!
I was able to reproduce your problem, at least with the Pixel Launcher.
The rendering and behavior of app shortcuts is up to the app that is showing the shortcuts. Perhaps the Pixel Launcher is only collapsing the app shortcuts panel in onStop(). When a shortcut launches a full-screen activity, the launcher activity is called with onStop(), and so the app shortcuts panel goes away. But, when a shortcut launches a dialog-themed activity, the launcher activity is not called with onStop() (since it is still visible), and so the app shortcuts panel remains.
Regardless, this behavior will vary by home screen (or other user of app shortcuts), and there is nothing much that you can really do about it.

Is possible to set the home screen programmatically?

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.

Modify android home screen

I am creating an android that acts as a media center. I would like to modify the android home screen. What I want is a customized home screen displaying only my application on booting and never display the default android menu other menu buttons or menu drawer that android has. is it possible.
I got a few links:
How can I create a custom home-screen replacement application for Android?
But is it possible to get what i want please help
Yes, you can definitely create a home screen replacement. To do that, your app must have an activity with android.intent.category.HOME in its filters (in AndroidManifest.xml). That's how the system knows which application will display the home screen... For more info:
http://developer.android.com/guide/topics/intents/intents-filters.html
(Search for android.intent.category.HOME to go straight to the point)

Is it possible for an app to alter the Android home screen?

I'm a web developer. I have an idea for an Android app, but before I dive in and start learning, could someone please answer the following:
Is it possible for a regular app (installed from the Market)...
to add/remove icons (of other apps) to/from the home screen?
to rearrange icons on the home screen?
to change the home screen's wallpaper?
To clarify: I don't want to replace the home screen application itself (I believe this is only possible on rooted phones?); I just want to programmatically customise the stock home screen. I know the user can do this themselves, but can an app do it?
If possible, please link to documentation of the relevant APIs.
Your answer to following question
Is it possible for a regular app (installed from the Market)...
to add/remove icons (of other apps) to/from the home screen? No, it can only add its own icon
to rearrange icons on the home screen? Again, no
to change the home screen's wallpaper? Yes, you can do that
As far as for rooted phone goes yes you can do it :)

Categories

Resources