|
|
06/20/2009, 09:47 PM
|
#21 (permalink) |
|
Member
![]() Join Date: Jan 2004
Posts: 124
Likes Received: 0
Thanks: 1
Thanked 3 Times in 3 Posts
|
Awesome! Guess I can stop working on my version. I was looking through the camera app to see how they controlled the flash. Figured it'd be cleaner than using shell scripts.
|
06/21/2009, 02:13 AM
|
#22 (permalink) |
|
Pre Developer
![]() ![]() Join Date: Jun 2009
Posts: 550
Likes Received: 0
Thanks: 24
Thanked 793 Times in 81 Posts
|
Yea I was looking through the camera app and trying it but it is a pain. There is no clear flash call. It looks like the flash is built into one of the linux binaries.
|
06/21/2009, 03:14 AM
|
#23 (permalink) |
|
Pre Developer
![]() ![]() Join Date: Jun 2009
Posts: 550
Likes Received: 0
Thanks: 24
Thanked 793 Times in 81 Posts
|
OK, I attached a .zip of the file in the original post. Inside the .zip is the .tar. Just put that in your base / directory and run the untar. It should create the directories and add them where needed if not sorry, I have never used untar.
There is a Service I created which is required for the script to work. I am in the middle of getting rid of the .sh scripts but I haven't had time to fine tune it so for now just deal with having a .sh script to turn the light on and off. IT IS VERY LATE so sorry if the readme sucks! |
06/21/2009, 04:17 AM
|
#25 (permalink) |
|
Member
![]() Join Date: Jun 2009
Location: Salt Lake City, Ut
Posts: 1,225
Likes Received: 9
Thanks: 78
Thanked 179 Times in 128 Posts
|
thanks for the update... i have been able to mod apps on my pre but i am not sure how i can put the files in the tar into the appropriate directories of the pre from the pc
|
06/21/2009, 10:08 AM
|
#27 (permalink) |
|
Pre Developer
![]() ![]() Join Date: Jun 2009
Posts: 550
Likes Received: 0
Thanks: 24
Thanked 793 Times in 81 Posts
|
One other thing I might add is that you can use the Prelease service to execute commands and run scripts for your own applications. Just use the runCmd method.
IE: palm://com.pregame.prelease/runCmd '{"cmd":"echo hello"}' |
06/21/2009, 10:55 AM
|
#28 (permalink) |
|
Member
![]() Join Date: Jan 2004
Posts: 124
Likes Received: 0
Thanks: 1
Thanked 3 Times in 3 Posts
|
Just tried out your app. I had to change prelease to Prelease (or could probably just change the class to prelease instead of Prelease) to get it to work. Changes I made are in flashlight-assistant.js and com.pregame.prelease.service. Works great after the changes. I'm going to try and find a better icon for you, though. Hello World doesn't quite work for me lol.
|
06/21/2009, 01:25 PM
|
#34 (permalink) |
|
Member
![]() Join Date: Jul 2004
Posts: 42
Likes Received: 0
Thanks: 3
Thanked 5 Times in 3 Posts
|
Hmmm ... seems like you have to start the service after a reboot.
I had rebooted for something else and the flash wouldn't turn on. Thought maybe the permissions had changed upon reboot but all files and permissions was as they should be. Rooted in, used the command stated in the readme and the app works again. |
06/21/2009, 01:38 PM
|
#35 (permalink) |
|
Member
![]() Join Date: Sep 2008
Location: Naval Station Norfolk
Posts: 211
Likes Received: 0
Thanks: 6
Thanked 11 Times in 8 Posts
|
you should seriously hook up with the guys at the "installing homebrew apps w/out rooting" thread and see if they could use this app as there test subject to install on a non rooted pre.
|
06/21/2009, 01:46 PM
|
#36 (permalink) |
|
Member
![]() ![]() ![]() Join Date: Jun 2009
Location: The Woo, MA
Posts: 1,438
Likes Received: 3
Thanks: 287
Thanked 464 Times in 250 Posts
|
I second the w/out rooting idea. Flashlight was a highly used function on my omnia. I use it when I do physicals or focused exams instead of carrying a pen light. I would love to get that back
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://forums.webosnation.com/vertigo-studios/187407-my-flashlight.html
|
||||
| Posted By | For | Type | Date | |
| Flashlight on the Pre - PPCGeeks | This thread | Refback | 06/21/2009 11:53 AM | |



