Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,045 Members 38,346 Now Online
XDA Developers Android and Mobile Development Forum

[APP]Another Flashlight App :D

Tip us?
 
hx4700 Killer
Old
#1  
hx4700 Killer's Avatar
Senior Member - OP
Thanks Meter 256
Posts: 1,218
Join Date: Oct 2007
Location: Texas
Default [APP]Another Flashlight App :D

Just for fun I wrote a flashlight app. I know, there are already a few others but this was a first dive in to a windows phone 7 app and I thought I would share:





The only glitch I have seen is toggling QUICKLY between on and off doesnt work and the light stays on. Exitting usually fixes it, however if it doesnt then relaunch and the re-initialize of the camera will turn it off.

The XAP is attached.
Attached Files
File Type: xap Flashlight.xap - [Click for QR Code] (100.9 KB, 712 views)
___________________________________________
HTC One X + 64GB AT&T

Asus Transformer Infinity TF700T

Asus Transformer Prime TF201 - Now in my daughtes hands

Former Devices: HTC One X 16GB, Nokia Lumia 900, Samsung Focus, Dell Venue Pro (for 2 weeks), Tilt 2, Fuze, Tilt, HP HX4700
The Following 3 Users Say Thank You to hx4700 Killer For This Useful Post: [ Click to Expand ]
 
Localhorst86
Old
#2  
Senior Member
Thanks Meter 115
Posts: 615
Join Date: Jul 2011
Location: Germany
I assume this uses the LED of the camera instead of the screen (as most other apps do)? Too bad I am on an HTC 7 Mozart with a xenon flash
 
rmelugin
Old
#3  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Apr 2006
Perfect! Been wanting one of these for some time now. The flash on the Focus is too bright not to use as a flashlight. Thanks!
 
sensboston
Old
#4  
Recognized Developer
Thanks Meter 425
Posts: 1,489
Join Date: Nov 2009
Location: Boston, MA

 
DONATE TO ME
Just a few words about UI and functionality: HTC has a perfect example how to flashlight application should be implemented. Why don't you use HTC assets and add same (if possible of course - two levels of flashlight works only on HTC handsets) functionality?
 
Aleki
Old
#5  
Member
Thanks Meter 2
Posts: 43
Join Date: Jan 2008
Hmm, how long before M$ allows dev's to toggle functions via live tiles?
That would be a handy feature for this app
 
hx4700 Killer
Old
#6  
hx4700 Killer's Avatar
Senior Member - OP
Thanks Meter 256
Posts: 1,218
Join Date: Oct 2007
Location: Texas
Quote:
Originally Posted by Aleki View Post
Hmm, how long before M$ allows dev's to toggle functions via live tiles?
That would be a handy feature for this app
Interesting thought... and to tell you the truth it wouldnt be hard to just issue the toggle on launch and then quit which would essentially do what you want. The app would initialize then toggle the cam and quit back to the tile screen.
___________________________________________
HTC One X + 64GB AT&T

Asus Transformer Infinity TF700T

Asus Transformer Prime TF201 - Now in my daughtes hands

Former Devices: HTC One X 16GB, Nokia Lumia 900, Samsung Focus, Dell Venue Pro (for 2 weeks), Tilt 2, Fuze, Tilt, HP HX4700
 
sensboston
Old
#7  
Recognized Developer
Thanks Meter 425
Posts: 1,489
Join Date: Nov 2009
Location: Boston, MA

 
DONATE TO ME
No, get switch on titles - not so good idea! But have a HTC assets and functionality sounds much better. If you want I can send you a HTC flashlight graphics.
 
hx4700 Killer
Old
#8  
hx4700 Killer's Avatar
Senior Member - OP
Thanks Meter 256
Posts: 1,218
Join Date: Oct 2007
Location: Texas
Quote:
Originally Posted by sensboston View Post
No, get switch on titles - not so good idea! But have a HTC assets and functionality sounds much better. If you want I can send you a HTC flashlight graphics.
I understood what you meant but since its not available I was just suggesting that it was as close as I could get

Why wouldnt you just use the HTC one if you wanted its graphics/functions?

Sure you can PM me a link to get the HTC stuff.
___________________________________________
HTC One X + 64GB AT&T

Asus Transformer Infinity TF700T

Asus Transformer Prime TF201 - Now in my daughtes hands

Former Devices: HTC One X 16GB, Nokia Lumia 900, Samsung Focus, Dell Venue Pro (for 2 weeks), Tilt 2, Fuze, Tilt, HP HX4700
 
sensboston
Old
#9  
Recognized Developer
Thanks Meter 425
Posts: 1,489
Join Date: Nov 2009
Location: Boston, MA

 
DONATE TO ME
It's simple - 'cause I have (personally) Samsung Focus (but have a bunch of different development handsets at office)

P.S. Actually I can spend a few hours and write that app by myself but if you already started...
 
Ttblondey
Old
#10  
Ttblondey's Avatar
Senior Member
Thanks Meter 105
Posts: 1,678
Join Date: Jan 2008
doesn't work with hd7

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Schedule is up for xda:devcon ’14

With xda:devcon ’14 just around the corner, and the venue close to selling out, there is a lot … more

aLogcat Returns Thanks to XDA Love

The developers of Android, that is Google, gave users several great debugging tools that can be used in … more

And the Winners in the XDA Pebble Development Challenge Are…

Almost two months ago, we set out with Pebble to findthree amazing … more

MediaTek Releases Full Kernel Source for First Android One Devices

Those who might have thought that MediaTek wouldnever release working … more