Simple System Setting Toggle Widget in Android 2.2

Annulé Publié le Jan 6, 2011 Paiement à la livraison
Annulé Paiement à la livraison

There are a lot of apps that do this kind of thing and the market is full of them. However, I want to learn how to do it myself.

Basically, I want a widget that will toggle between 3 different states. The widget will put an icon on the desktop that will change based on the state of the particular system setting is it.

For an example of what I'm talking about, see this app: [url removed, login to view]

Notice how it says it is RED when in airplane mode, YELLOW when there is no service or emergency only, BLUE when roaming, etc.

So, I want the same kind of thing. For the purpose of this app, if you could make it toggle the WiFi antenna on or off and have the widgets icon change to reflect that, it would be all I need.

There are a lot of examples on the developer pages, but I can't seem to get it to work. :( I imagine this is extremely easy which is why I'm not offering a lot of money as the code I've seen is less than a page in most cases. In fact, the source for a power panel is located at:

[url removed, login to view];a=blob;f=src/com/android/settings/widget/[url removed, login to view]

This shows all the code for a complex panel to change multiple system settings.

This is completely for a personal project as there are already dozens of these programs available, but I'm hoping I can learn how to do different things like this.

## Deliverables

You can use any icons you would like. They should be small though. Like 40x40 or so. The setting it changes does need to be a hardware setting though. Like the WiFi antenna. I'm pretty flexible in most things though. If you need icons, let me know and I can whip some up.

Even though WiFi is "on or off" I do want selectable "states" for the hardware. I'm not sure how this can be shown in the code, but probably comment out the things related to "state3" I guess?

Ingénierie Mobile App Development Gestion de Projet Architecture Logicielle Tests de Logiciels

Nº du projet : #3016560

À propos du projet

Projet à distance Actif Jan 7, 2011