I want to make an application with battery icon when phone is charging. But I don't know where to start. Can you please help me with some ideas?
Later clarification: I would actually like to implement just the animation similar to the one when the battery is charging.
Afaik this has something to do with your Launcher and it's theme. (correct me if I'm wrong)
See
Android: How to create a launcher
http://developer.android.com/resources/samples/Home/index.html
How to make a launcher
If you want an animated icon then you should probably create a widget, you can create one that is similar to an icon but that can be animated when the battery is charging.
For the animation you can use the link posted on the comment of Thomas K.
Related
I want to animate the app icon on start of the app but how can i get exact position of icon on home screen/main screen but i don't know whether its possible or not.I know for widget its possible by getIntent().getSourceBounds() but for app icon, i didn't find anything.Is there any default api available to get this information and if yes will it work on any device which is custom like HTC sense or samsung?
I have searched about it a lot but didn't get any useful information.Ifanyone has any idea about this please let me know?
Thanks in advance.
This will not be possible, since the Launcher aka HomwScreen is a own application which can be different on differnt devices. Even if you could get the position of the Launcher icon on the Homescreen, you still wouldn't be able to animate anything because there is no callback or anything that notifies you when the launcher icon is clicked.
Is it possible to Display Information on the lock screen from an Android application.
I came across a few Apps which allow you to display Email and Calendar information on the screen but could not find which API to use for achieving the same.
Android 4.2 supports app widgets on the lockscreen.
according to the app you've mentioned (which has very poor description and quite low rating) , i suspect they disable the keyguard (the default lock screen) each time they get the event of power off (or on) .
maybe the activity that they are using has a transparent background and is above the normal lock screen .
there are many similar apps , such as "widget Locker" ,"magic Locker" and "quick Launch" , all do about the same thing to replace the keyguard . most of them also have the ability to replace the launcher (but will still show the launcher of the user, of course) , for smoother experience .
does the screenshot belong to the app you've mentioned , or to something you wish to achieve ?
You can learn how it can be done if you look at the sources of open source project contact owner that adds a message to the lock screen, too.
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.
A friend has asked me if I can create an Android app that can change white to red/yellow or another colour in another app, so applying a tint to the screen for all apps until it's turned off.
I've no idea where to start on this, has anyone got knowledge of this?
Can someone point me in the right direction of some reading?
I don't think so you can do this until and unless all other apps are not having background with 100% transparent.
I was hoping to make an app which dimmed the soft buttons to dots on the Galaxy Nexus, using the code from this answer. For completeness, this is the code:
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
Here's the question, is it possible for the app to make this setting system-wide rather than just while the app has focus? So ideally the app would run in the background and would keep View.SYSTEM_UI_FLAG_LOW_PROFILE as the default as long as it's running, for any and every app that you open (unless that app specifically overrides it, I suppose). Is this possible or does this fall outside the realm of what an Android app has permission to do?
A sample use case is this: I use the "Screen Filter" app to reduce brightness a lot for nighttime ebook reading or misc app usage, but the soft buttons are still very bright and distracting, so I wanted to make an app that would dim the soft buttons system-wide while running (like how "Screen Brightness" reduces screen brightness system-wide while running) so this wouldn't be a problem.
As CommonsWare states, it's not possible for an application to change this setting. It's an Activity based setting, that must be set for every single Activity, if you want to make it fullscreen, hide the soft keys, etc.
It's also worth pointing out that you should probably refrain from using it in all your application activities. It's really only meant for games, video players and other applications that need to enter this "low profile" state.
Feel free to accept CommonsWare's answer - I just thought I'd give you a bit of background info on the subject.
is it possible for the app to make this setting system-wide rather than just while the app has focus?
No.