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.
Related
I've been developing an app to android for a while and I've been trying different devices with multiple screens dimensions and different OSes.
I was testing the app within a Wiko Robby and I've noticed that the app icon had a background added that on previous devices weren't present.
The right side icon is owned by the OS, whilst the left one is mine. The background I would like to remove is that subtle rounded corner box background that was added the the background of the icon.
I've been searching and what I want can be achieved by installing 3rd party apps to edit the OS theme, but I don't want to do that, nor asking the users to do so.
Is there anyway I can remove the background?
This is not possible, unfortunately. This feature is entirely managed by the home screen and developers have no control over it.
I don't think that you should worry about it, though. The user is probably used to see this background behind 3rd party app icons and he will probably not even notice it on your app. I would even argue that it can be disturbing for the user if your icon was displayed without this background, as this could led him to believe that your app is a system app.
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'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 :)
I develop an application, which allows user to choose wallpaper from gallery and set it as a device wallpaper. I want to make a preview for each picture in gallery as it is a real wallpaper. The preview is a screenshot of a homescreen with all widgets and icons and selected picture as a device wallpaper.
I think about two variants:
1) Change current wallpaper to a picture, which user looks. Then make a screenshot of a homescreen with this wallpaper and all widgets and icons. Then show this screenshot to user and put real wallpaper back.
2) Get all widgets and icons position, draw it on a picture, which user looks.
I don't know how to implement any of this variants. If you have any idea, pleace help me.
make one similar to a real desktop (fake desktop) with your own data (not user icons or widgets), at least you can show him an desktop to compare
There is no screenshot support in the Android SDK. And, you have no way to determine "widgets and icons position". Hence, neither of what you want to do will be possible.
You need root access to capture screenshots without debugging tools, on most devices. I recommend making a home screen activity that draws the current layout, but this depends on whether the user's home launcher of choice allows you to access the current layout. It may also be helpful to register your activity/app as a wallpaper selector (shows up in the list when you press 'Wallpaper' from the menu on most home screens) - QuickPic does this, I think it's part of the API somewhere.
I need a screen control (possibly but not mandatory an app widget) that will seat
on Android's homescreen and will always be visible to the user - even when he scrolls the homescreen to the next page.
Please help me if any body have done this before.
I think the only way you will be able to do this is if you implement your own Launcher.
The functionality that you're looking for, being able to place a static widget on every screen of the launcher regardless of how many screens they have, isn't currently available in Android, nor any of the launcher apps out there (Go launcher, ADW, Launcher pro etc) nor any of the versions of Android which have been rewritten by the phone manufacturers (HTC's Sense, Samsungs Touch Wiz etc)
It's a big job to write a Launcher yourself, but the stock Android Launcher code is available to play about with from https://android.googlesource.com.