Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
DeepThought
Old
(Last edited by DeepThought; 21st January 2009 at 06:30 PM.) Reason: hTorch v3.2 released
#1  
DeepThought's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 748
Join Date: Jul 2006
Location: Austria, Vienna
Lightbulb [APP] hTorch v3.2 | using camera LED as flashlight [updated: 2008-11-20]


hTorch is a small application with a graphical user interface that enables you to use your Touch Pro as flashlight.


hTorch is built for the HTC Raphael (aka HTC Touch Pro) and has only been tested on this device. It probably works on all other devices with a build-in LED as well but since I can't tell if those devices are heat sinked please be very careful! PLEASE NOTE: Use this application at your own risk! I’ve done as much testing as possible, and will try to fix every bug which will be reported but it's my first Windows Mobile application and I can not guarantee that it is free of bugs. NetRipper deserves most of the credit because my application uses his TorchButtonLibrary v1.0 to control the LED itself.


Usage:

The program installs itself into "%ProgramFiles%\hTorch" and also creates a shortcut into %StartMenu%\Programs\Accessories. The further usage is as simple as possible. Start hTorch using the shortcut. On program start the LED will automatically be turned on and you will see the programs main screen.
On the main screen you can:
  • enable and disable the standard LED mode using the upper left bulb button.
  • enable and disable the bright LED mode using the upper right bulb button.
  • disable the display using the lower left button (The display can be turned on again using the power button)
  • exit the application using the lower right button.
  • enable and disable the standard LED mode using the D-Pad Action hardware button.
  • enable and disable the bright LED mode using the D-Pad UP hardware button.
  • disable the display using the D-Pad DOWN hardware button.

PLEASE NOTE: The flashlight will stay on forever - there is no timeout programmed. So the only timeout is the capacity of your battery. Burning the LED should not be very likely as this posting explains but please take care anyway. Please also note that the LED can not be left turned on while the device is in standby. So if you want to use the torch for an extended period please use the display off button but be aware that the hardware buttons will still function!
pRequirements:

Version History:
v3.2:
  • Added AppToDate support.
  • Some minor code optimizations.
v3.1:
  • Fixed several minor bugs
  • Fixed one huge bug preventing the device from standby even after hTorch was already closed.
  • Added a special error handling in case a user terminated hTorch instead of using the quit-button.
v3.0 (unreleased private beta):
  • Source again completely rewritten. I'm now using the TorchButtonLib v1.0 to control the LED. Which now also means that hTorch and TorchButton can be installed at the same time.
  • Action button mapped with LED on/off function.
  • "UP"-button mapped with LED bright on/off function.
  • "DOWN"-button mapped with build-in display off function (display can be turned on using the power button).
  • Changed right softkey to menu with sub menu items: "Quit", "Bright LED On/Off", "Display Off", "About".
  • Changed normal LED on/off button. (Artwork was done by obsidian73 - Thank You!)
  • Added bright LED on/off button. (Artwork was done by obsidian73 - Thank You!)
  • Added display off button. (Artwork was done by obsidian73 - Thank You!)
  • Changed the program window not to maximize (so that now the status bar is visible).
  • Added function to prevent ideling into standby (AndyZap - Once again thank you for your help!)

v2.2:
  • Updated TorchButton to v1.2 which enlarged the maximum timeout from 300 seconds to 86400 seconds (a day) - Thank you NetRipper!
v2.1:
  • Completely replaced all graphics to give the program a much more professional look and feel. (Artwork was done by obsidian73 - Thank You!)
  • Replaced the exe-file icon with a more diamond-like one
v2.0 (unreleased private beta):
  • Completely rewritten source so that hTorch can now detect the LED state
  • Tightened the program as much as possible (exe-file lost about a bit more than 25% of its size)
  • Automatically turn off the LED on program exit
  • Changed auto-off timer to 5 minutes (hard coded)
  • Added SoftKey functions
  • Added About Dialog
v1.1:
  • Fixed Bug when installing to Storage Card
  • Start LED on program start
v1.0b:
  • Initial version
On the picture you can see the programs
main screen with usage information:



Downloads so far (counting since v3.2):


AppToDate Users:


Do you like my work? Please consider donating:

Thank you for your support!

Thank you for your donations: snake_be, del4, rjmjr69, unknown_07.01.2009, unknown_12.01.2009, Fantedon - THANK YOU!

Attached Thumbnails
Click image for larger version

Name:	hTorch_v3.1-Screenshot0.jpg
Views:	2157
Size:	20.1 KB
ID:	129929   Click image for larger version

Name:	hTorch_v3.1-Screenshot1.jpg
Views:	1510
Size:	25.9 KB
ID:	129930   Click image for larger version

Name:	hTorch_v3.1-Screenshot2.jpg
Views:	1516
Size:	25.6 KB
ID:	129931   Click image for larger version

Name:	hTorch_v3.1-Screenshot3.jpg
Views:	2626
Size:	71.0 KB
ID:	129932  

----------------------------------------------------------------------------------------------------
History: Wallaby > Himalaya > Blue Angel > Universal > Hermes > Palm Treo 750 > Kaiser > Raphael
My Apps: hTorch v3.2 | using camera LED as flashlight --> Last Updated: 2008-11-20
 
DeepThought
Old
(Last edited by DeepThought; 24th November 2008 at 02:14 PM.) Reason: updated todolist
#2  
DeepThought's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 748
Join Date: Jul 2006
Location: Austria, Vienna
Exclamation NEWS

hTorch v3.2 has been released!
Last Update: 2008-11-20
--> DOWNLOAD HERE <--


Discovered bugs in version 3.2:
  • none...so far.

Discovered bugs in version 3.1:
  • None
Discovered bugs in version 2.2:
  • None
Discovered bugs in version 1.0b:
  • Installing on storage card does not work. The app must be installed into the main memory. --> FIXED in v1.1
Todo list for next version:
  • Look if I can optimize the code a bit after I received my new VB.NET handbook
  • Only prevent idling to standby while LED is turned on, not as long as hTorch is running.
  • Set default LED mode (which will be engaged on program start) via registry (0=off, 1=normal, 2=bright)
Further Plans and Ideas:
  • Provide a softer light option by displaying just a white LCD without the LED
  • Create an additional button to turn on/off the light cyclically like bicycle lamp
  • Implement morsecode feature (f.e. signaling SOS)

OLD VERSION FILES (Just for archiving. Please always use the latest version of hTorch if possible!)
Attached Thumbnails
Click image for larger version

Name:	hTorch_v1.1-Screenshot.jpg
Views:	1148
Size:	24.4 KB
ID:	127028   Click image for larger version

Name:	hTorch_v2.1-Screenshot1.jpg
Views:	614
Size:	52.9 KB
ID:	129868   Click image for larger version

Name:	hTorch_v2.1-Screenshot2.jpg
Views:	666
Size:	61.0 KB
ID:	129869  
Attached Files
File Type: cab hTorch_v1.1-OUTDATED.cab - [Click for QR Code] (31.6 KB, 240 views)
File Type: cab hTorch_v2.1-OUTDATED.cab - [Click for QR Code] (34.5 KB, 144 views)
File Type: cab hTorch_v2.2-OUTDATED.cab - [Click for QR Code] (34.7 KB, 220 views)
File Type: cab hTorch_v3.1_OUTDATED.cab - [Click for QR Code] (44.6 KB, 2389 views)

----------------------------------------------------------------------------------------------------
History: Wallaby > Himalaya > Blue Angel > Universal > Hermes > Palm Treo 750 > Kaiser > Raphael
My Apps: hTorch v3.2 | using camera LED as flashlight --> Last Updated: 2008-11-20
 
Fat Boy
Old
#3  
Fat Boy's Avatar
Senior Member
Thanks Meter 0
Posts: 222
Join Date: Sep 2007
This perfect and just the way I would've wished it. Thanks a bunch! and it seems to work perfect on my Touch Pro.
 
Xo0oM
Old
#4  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Dec 2007
Tested and works good. Is it possible to set it so that when I exit the program it automatically turns the light off too? (Instead of currently having to tap the off button and then the exit button)
 
johanromijn
Old
#5  
johanromijn's Avatar
Senior Member
Thanks Meter 5
Posts: 904
Join Date: Dec 2006
Location: NL@GMT[+1]
Thanks mate.

Works fine for me.
HTC Shift Windows 7 - Palm Treo 500v WM6 - HTC TyTN II WM6.1 - HTC Touch PRO WM6.1 - Samsung i780 WM6.1 - iPhone 3GS 16GB White

- If it jams, force it. If it breaks it probably needed replacing anyway. -
 
Brendo
Old
#6  
Brendo's Avatar
Senior Member
Thanks Meter 62
Posts: 838
Join Date: Oct 2006
Location: Queensland, Australia

 
DONATE TO ME
yep, exit should turn light off
and you should make it possible to disable auto off or atleast set max time manually
Samsung Galaxy S IV (i9505) | 16GB
ANDROID [ROM: Stock JB 4.2.2 | XXUAME2 | CF-AUTOROOT | MODEM: XXUAME2]

Samsung Galaxy Tab 8.9 (P7310) | 32Gb
ANDROID [ROM: Jellybean 4.2.2 | CM10.1 M2 | CPU: 1.4ghz]
--------
Samsung Galaxy S II GT-i9100 (JB 4.1.2) - DEAD
HTC Touch Pro (WM 6.5.5/ANDROID 2.3) - SOLD
o2 Atom Exec (WM6.5) - SOLD
--------
OPTUS Post Paid | 3 UK PAYG | Orange France Pre Paid
 
hanbaoquan
Old
#7  
Junior Member
Thanks Meter 3
Posts: 7
Join Date: Aug 2008
very good, thank you
 
ice_coffee
Old
#8  
Senior Member
Thanks Meter 15
Posts: 724
Join Date: Oct 2005
I doubt it will work on the diamond as (IIRC) the diamond has no Flash, but thanks for the app anyway
 
JIGGY24
Old
#9  
Junior Member
Thanks Meter 0
Posts: 9
Join Date: Sep 2008
Works great on my cdma TP. just had to click on the flash light again to turn it off

You should try a disco button, to turn the light on and off quickly. Soi can get my grove on outside the club, lol
 
jbbosu
Old
#10  
Senior Member
Thanks Meter 5
Posts: 130
Join Date: Oct 2007
Location: PDX
It doesn't seem to work when installed on storage card btw.

 
Post Reply+
Tags
deepthought, htorch, led, light, torch
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more