Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,305 Members 44,706 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][HOW-TO] Add Flashlight quick toggle [4.3|4.4]

Tip us?
 
tdunham
Old
#351  
tdunham's Avatar
Recognized Contributor
Thanks Meter 16144
Posts: 7,741
Join Date: Jun 2008
Location: TampaBay
Quote:
Originally Posted by Gunthermic View Post
Yes I replaced and used yours... images didn't work. Flashlight turns on/off... so I rewrote the constructor.. now the images appear correct. But now onclick fails to work...

See my delima? Your straight s5 changes don't work...
Quote:
Originally Posted by CNexus View Post
Logcat please and I'll see if I can whip up a fixed onClick method for you
Actually, I did those changes for the Galaxy SIII, but no matter.
I think you should go back to what worked and figure out what your image problem is from there. Modifying the onclick method wasn't/isn't necessary if it was working to begin with, the only issue being the images not displaying properly. You are compiling/decompiling for values/then compiling one last time with final public values and not trying to use old public values for the images correct?

Same has to be done for SecSettings images too I think. Its been a while since I've done this. I know I got stuck for a while with it not showing at all also.
The Following 3 Users Say Thank You to tdunham For This Useful Post: [ Click to Expand ]
 
Gunthermic
Old
(Last edited by Gunthermic; 28th July 2014 at 10:10 AM.)
#352  
Gunthermic's Avatar
Recognized Contributor / Themer
Thanks Meter 7694
Posts: 2,928
Join Date: Mar 2011

 
DONATE TO ME
Quote:
Originally Posted by tdunham View Post
Actually, I did those changes for the Galaxy SIII, but no matter.
I think you should go back to what worked and figure out what your image problem is from there. Modifying the onclick method wasn't/isn't necessary if it was working to begin with, the only issue being the images not displaying properly. You are compiling/decompiling for values/then compiling one last time with final public values and not trying to use old public values for the images correct?

Same has to be done for SecSettings images too I think. Its been a while since I've done this. I know I got stuck for a while with it not showing at all also.
I 100% agree with you normally sir. However the Tablet does not toggle the same way as other Kit-Kat devices is the point I was getting at.

Yes all public ID's are correct.

I have tried all the examples in this thread, several times and several ways. Each time ensure public id match...

At this point I would do anything. Yes if i revert back to the S5 FlashLightQuickSettingsButton, the flashlight would click on/off.. But as post 333 showed the Images were all screwy.. The tablet uses a total of 5 images for toggles. On, Off, Dim, Rounded On, Rounded Off..

Edit: Went back and reread what you said. I never did edit the onClick. I did exactly what you said. I edited the constructor to make the images show correctly... that it self broke the onClick method..


Wanna Chat? Looking for theming advice, answers..
Join me at -> guntherm66@gmail.com Use Gtalk to Join!
Team BlackOut Email: teamblackoutapps@gmail.com
Average Joes Team Memebers: Me, jonathanphx1, dan_joegibbsf, strongsteve
Team BlackOut Memebers: Me, B-Boy, DJ, Trapv and more
 
Gunthermic
Old
#353  
Gunthermic's Avatar
Recognized Contributor / Themer
Thanks Meter 7694
Posts: 2,928
Join Date: Mar 2011

 
DONATE TO ME
Quote:
Originally Posted by CNexus View Post
Logcat please and I'll see if I can whip up a fixed onClick method for you
Here is the current catlog sir!!
Attached Files
File Type: txt flashlighttoggle.txt - [Click for QR Code] (10.8 KB, 10 views)


Wanna Chat? Looking for theming advice, answers..
Join me at -> guntherm66@gmail.com Use Gtalk to Join!
Team BlackOut Email: teamblackoutapps@gmail.com
Average Joes Team Memebers: Me, jonathanphx1, dan_joegibbsf, strongsteve
Team BlackOut Memebers: Me, B-Boy, DJ, Trapv and more
Tags
4.3, 4.4, flashlight, flashlight toggle, toggle
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes