Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,517 Members 36,879 Now Online
XDA Developers Android and Mobile Development Forum

rectangle on/off indicator

Tip us?
 
sleepingsword
Old
#1  
Member - OP
Thanks Meter 2
Posts: 52
Join Date: Mar 2011
Location: Oslo
Default rectangle on/off indicator

Can someone tell me how to make a rectangle indicator that shows the state of certain things.

For example, Red = off, Green = On

I want this for:

Wi-fi
Bluetooth
Cell Data
NFC
Charging

I think its possible but could not find a post that gives an example of the text/parameters.

Thanks in advance!
 
kwerdenker
Old
#2  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 2,123
Posts: 1,362
Join Date: Apr 2010
Location: Probably the Zooper Forums

 
DONATE TO ME
Quote:
Originally Posted by sleepingsword View Post
Can someone tell me how to make a rectangle indicator that shows the state of certain things.

For example, Red = off, Green = On

I want this for:

Wi-fi
Bluetooth
Cell Data
NFC
Charging

I think its possible but could not find a post that gives an example of the text/parameters.

Thanks in advance!
Only wifi, cell data and charging are possible without external tools. For the other ones you would need Tasker to send the values because Zooper has no internal variables for their states.

The general solution for this type of indicator would be to add a Rect module and then set an Advanced Parameter on it that changes the color depending on the state of whatever setting you want to have indicate by it. For the build-in variables you should check this page for their possible states and the associated meaning. As an example, here is the Advanced Parameter for a Rect module to indicate the state of wifi:
Code:
[c]$#NWSTATE#>=1?ff00ff00:ffff0000$[/c]
To understand the structure of these conditionals, please see this page.

Please use the forums for your Zooper related questions. I won't respond to PMs with questions that can/should be asked there. Thank you.
The Following User Says Thank You to kwerdenker For This Useful Post: [ Click to Expand ]
 
sleepingsword
Old
#3  
Member - OP
Thanks Meter 2
Posts: 52
Join Date: Mar 2011
Location: Oslo
Perfect, just what I needed. Thanks kwerdenker.
 
kwerdenker
Old
#4  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 2,123
Posts: 1,362
Join Date: Apr 2010
Location: Probably the Zooper Forums

 
DONATE TO ME
Quote:
Originally Posted by sleepingsword View Post
Perfect, just what I needed. Thanks kwerdenker.
Sure, no problem

Please use the forums for your Zooper related questions. I won't respond to PMs with questions that can/should be asked there. Thank you.
 
pintitas
Old
#5  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Jan 2014
Happens to me as well and now I'm looking for the solution in a custom rom
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes