webOS Nation Forums > webOS apps and software > webOS developer forums > Vertigo Studios > My Flashlight
1 2 3 4 5 6 7 12  ... Last
Member: TrickerZ
at: 10:47 PM 06/20/2009
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.
Reply
Pre Developer: PreGame
at: 03:13 AM 06/21/2009
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.
Reply
Pre Developer: PreGame
at: 04:14 AM 06/21/2009
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!
Reply
Pre Developer: PreGame
at: 04:29 AM 06/21/2009
Sorry I forgot to include the actual service in there. I have updated the original post with the correct .zip file.
Reply
Member: jack87
at: 05:17 AM 06/21/2009
Originally Posted by PreGame:
Sorry I forgot to include the actual service in there. I have updated the original post with the correct .zip file.
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
Reply
Member: TrickerZ
at: 10:34 AM 06/21/2009
Originally Posted by PreGame:
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.
That's how I felt too. I figured it was just my poor knowledge of java.
Reply
Pre Developer: PreGame
at: 11:08 AM 06/21/2009
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"}'
Reply
Member: TrickerZ
at: 11:55 AM 06/21/2009
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.
Reply
Member: aonic
at: 12:01 PM 06/21/2009
Looks great! Any hope of you releasing the code for your service class?
Reply
Member: TrickerZ
at: 12:25 PM 06/21/2009
Stole and modified this icon. Little better.
Attached: icon.png (6.3 KB) 
Reply
Member: backslide
at: 12:27 PM 06/21/2009
I'm using this icon.
Attached: icon.png (4.5 KB) 
Reply
Member: backslide
at: 12:28 PM 06/21/2009
lol ... looks almost the same. One's cartoony and one kind of isn't.
Reply
Member: scrambler
at: 12:52 PM 06/21/2009
sorry that i have nothing to add but thanks!
Reply
Member: backslide
at: 02:25 PM 06/21/2009
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.
Reply
Member: knightflores
at: 02:38 PM 06/21/2009
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.
Reply
Member: windzilla
at: 02:46 PM 06/21/2009
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
Reply
Member: knightflores
at: 04:08 PM 06/21/2009
i havent done this hack yet but i was wondering how much battery life would this take up?
Reply
Pre Developer: PreGame
at: 04:42 PM 06/21/2009
Battery life is unknown. I am currently working on getting this done with an IPKG so it will install automatically.
Reply
Member: TrickerZ
at: 05:27 PM 06/21/2009
Did you get your script-less version working?
Reply
Member: dimfeld
at: 05:27 PM 06/21/2009
Nice work! One of the things I've missed since switching from my previous phone was the flashlight option, so I'm glad to have it back
Reply
1 2 3 4 5 6 7 12  ... Last
webOS Nation Forums > webOS apps and software > webOS developer forums > Vertigo Studios > My Flashlight