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)
Related
I want to replace my icon in apps dock when after installing my developed app. That means when I install my app (dialer), it shows on apps dock by replacing an existing one (stock dialer).
There are many home screen implementations for Android. Not all of them have such a dock. There is no standard API for asking a home screen to replace something in a dock.
You are welcome to contact the developers of various home screens and see if they offer some API to allow you to replace an icon in their dock.
This is not possible for several reasons.
First, the dock is basically a small drawer. The user can put an icon there themselves and the default one is specified by the launcher app.
Secondly, there is no common interface to ask the current launcher to add an icon to the dock. Many launchers do not have a dock at all! :-(
So, you should just let the user decide whether they want to have your app on the dock :-) Alternatively, you can write your own launcher which will put your app in the dock by default! :-D
I'm working on an existing Android application for medical purposes.
The back button and home button should be disabled.
With the existing code, the back button is disabled.
For disabling the home button they used onAttachedWindow with LayoutParams TYPE KEYGUARD,
but this security hole is fixed since 4.0.
I tried a lot of similar questions, but none worked out for me.
What is the way to get this done these days?
Also, hiding the status bar on tablet (where the home & back button live) would do the trick,
so any suggestions there are equally helpful!
Update: also, free third party apps that do the hiding trick are okay!
This sounds like a kiosk or dedicated use kinda thing, yes? You want your app to "own" the tablet and prevent other usage? I did this for an app whose sole purpose was to act as a remote control for a custom device. Basically I created two apps, a "custom launcher" app and the app that did the remote control. It's probably possible to integrate the two, but I wanted to support both dedicated and non-dedicated use. Note that I gave the launcher app a password-protected way to access settings so that I could recover the tablet at any time.
You can find a number of tutorials that will guide you through creating a custom launcher, just strip out all the stuff that makes it a generic launcher and replace it with an image button or similar that launches the actual app, or replace the launcher activity with your main app activity. Warning: I never figured out how to remove the launcher except by going into the settings.
As for hiding the system bar (notifications and status icons at the top of the screen), you'll want to use a full-screen theme like #android:style/Theme.NoTitleBar.Fullscreen.
As for hiding the home button I took this approach:
View main_layout = this.findViewById(android.R.id.content).getRootView();
main_layout.setSystemUiVisibility(View.STATUS_BAR_HIDDEN);
Unfortunately the STATUS_BAR_HIDDEN flag is deprecated now, but I think some of the other options would have the same effect. Regardless, the best you can achieve within Android's intended use is to temporarily hide the navigation buttons (home and back). A tap on the screen will bring them back.
I am making a live wallpaper for android. I want to implement a function that allow user hide all the icon from the screen of android to show off the live wallpaper(User double click to screen -> hide all the icon). I made everything but I still dont know how to hide all the icons. Anyone know how?
Thank
This is not possible. You cannot attack the home screen, or other apps, in this fashion. A home screen may not even have "icons", depending upon its implementation.
You are welcome to write your own home screen, or perhaps partner with the developers of some replacement home screens, to have this feature implemented by the home screen.
Or, IIRC, there is a way to show a live wallpaper as the background of an activity, though I am not certain of the details. If that is indeed possible, to "show off the live wallpaper", you would offer an activity to do so, one that has nothing in the foreground.
I would like to make an icon counter for andoid just like the Email and the Samsung Apps applications i have seen such requests from other developers, but you all say it can't be done.
if so how come those 2 apps and other apps can do it?
do i have to make like more than one icon image and swap them or something?
is it really cant be done and why?
thanks.
you all say it can't be done.
That is because it cannot be done, except by the maker of the home screen, or via an app widget (instead of a launcher icon).
if so how come those 2 apps and other apps can do it?
Because Samsung wrote the home screen and can do what it wants with its home screen.
do i have to make like more than one icon image and swap them or something?
That will not work, as you cannot change the launcher icon at runtime.
is it really cant be done and why?
It really can be done by making an app widget, or by making your own 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 :)