display count as a bubble over tabs or home screen icon?

by Slater » Sat, 13 Sep 2008 00:53:23 GMT


Sponsored Links
 Hi,

       On an iphone, its common to see a bubble over home screen icons
indicating some kind of a count information (for example, phone icon
on the home screen has a bubble which indicates how many missed calls
I have). Does android api offer anything in built to draw something
like that over an icon.

Also I want to know if its possible to dynamically draw a bubble
counter(value changes) over an icon on a tab within an android
application.

Any kind of sample code will be highly appreciated.

Thanks,
SNEP.
--~--~---------~--~----~------------~-------~--~----~



display count as a bubble over tabs or home screen icon?

by Jeffrey Sharkey » Mon, 15 Sep 2008 01:25:43 GMT


 It's probably not possible to change the icons on the homescreen, as I
think it caches them when your APK is installed.

If you're trying to share dynamic information (such as # of new emails/
messages), the Notification framework would be the best place to do
that.

 http://code.google.com/android/reference/android/app/NotificationManager.html 
 http://code.google.com/android/reference/android/app/Notification.html 

j




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Exporting android project as a shared jarfile under Eclipse

Hi,

I've factored out some common code into an Android project, which
(certainly under Eclipse) is required to have an AndroidManifest.xml.

If I export this shared code as a jarfile and link it to my main
project, the Davik compiler gives an error about a duplicate manifest.
If I don't include the mainifest, Davik gives an error that the
manifest is missing.

Any helpful suggestions would be appreciated.

Nick.
--~--~---------~--~----~------------~-------~--~----~

2. Application has stopped

I am trying to run Tutorial 10 from the Android tutorials book. This is the
tutorial that switches the view from portrait to landscape using <ctrl>
< f12> in the emulator.
Everything is fine as long as I am in portrait view, as soon as I switch to
landscape view, the following happens:
The orientation changes to landscape, the list is in portrait, switches
quickly to landscape, and I get the following error message:

"The application LunchList (process.com.example,lunchlist) has stopped
unexpectedly. Please try again."  The only option is to close the
application.

The tutorial says to setup another main.xml under res/layout-land,  and to
modify it for landscape viewing.

I did this, but now have 2 main.xml, one under res/layout and the modified
one under res/layout/land.

Could this be causing the problem? Does Android get confused when <ctrl>
<f12> is selected?

It seems to do the switch OK, but then hangs up.

I have looked at the LogCat, but don't see anything that sheds any light on
the problem.
I have compared my code to the sample code downloaded from the website.
Everything seems to match.

Can anyone help?

--

--~--~---------~--~----~------------~-------~--~----~

3. Android Support

4. How to listen for 'Enter Key is press' Event

5. AlertDialog not showing with keyboard closed, sensor on, and in landscape mode

6. How to listen for 'Enter Key is press' Event

7. Corner-centric window backgrounds