Simple System Setting Toggle Widget in Android 2.2

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?

Habilidades: Engenharia, Mobile App Development, Gestão de projetos, Arquitetura de software, Teste de Software

Veja mais: android system toggle, widgets for android, what is the purpose of use cases, what is java and why do i need it, what is engineering all about, purpose of use cases, power up 2, personal power 2, personal java developer, need a hardware developer, management icon, make me yellow, make icon for android, learn java code, java developer personal, i want to make an app and need developer, i want to learn java, imagine engineering, icons settings, icon cases, how to make use cases, how to learn to code apps, how to learn how to code, how to get out source app developer, how to get apps on android

Acerca do Empregador:
( 15 comentários ) Apple Valley, United States

ID do Projeto: #3016560