The attached project has a dual purpose:
1. Send Morse Codes with the camera flash
2. Serve as a Torch
The Morse Code functionality might be useful when you are lost in mid ocean and need to attract the attention of a ship passing by at night...Hopefully you have a solar charger with you else this might be of no use whatsoever. It was done just for the fun of it.
The project was tested on my Samsung S4 mini and also by @adrianstanescu85 on his Galaxy Note 3
Java code comes from here:
http://code.google.com/p/koko-morse...t/fhj/swd/FlashOutputAct.java?spec=svn16&r=16
and
http://stackoverflow.com/questions/15101912/morse-code-conversion-using-java
Adapted/amended the code a bit to fit B4A
Also uploading the final java package in case someone wants to amend or modify it.
The Morse code part of the project supports the following characters:
. , @ & _ - + = : & ( ) ! ? /
0 to 9
a to z
A to Z
1. Send Morse Codes with the camera flash
2. Serve as a Torch
The Morse Code functionality might be useful when you are lost in mid ocean and need to attract the attention of a ship passing by at night...Hopefully you have a solar charger with you else this might be of no use whatsoever. It was done just for the fun of it.
The project was tested on my Samsung S4 mini and also by @adrianstanescu85 on his Galaxy Note 3
Java code comes from here:
http://code.google.com/p/koko-morse...t/fhj/swd/FlashOutputAct.java?spec=svn16&r=16
and
http://stackoverflow.com/questions/15101912/morse-code-conversion-using-java
Adapted/amended the code a bit to fit B4A
Also uploading the final java package in case someone wants to amend or modify it.
The Morse code part of the project supports the following characters:
. , @ & _ - + = : & ( ) ! ? /
0 to 9
a to z
A to Z