- Forum posts: 1
Dec 31, 2014, 7:42:51 PM via Website
Dec 31, 2014 7:42:51 PM via Website
I want a library with a simple API that gives me direct access to a mobile phone's hardware features. Android is very restrictive, with its own intents/activites and life cycle methods. I need a direct API that works in a layer above Linux, bypassing Android if necessary. Or it can work through Andoid, but all the Android-specific quirks (like preparing a viewport before taking a picture with the camera) should be hidden away. The basic idea is to use the mobile phone as a remotely controlled device without human intervention. The API may look something like this :
vibrate()
ring(String ringToneName)
send_sms(String phoneNumber, String message)
start_audio_recording()
stop_audio_recording()
save_audio_recording(String fileName)
set_audio_volume(int volume)
play_audio(String fileName)
is_front_camera_available()
get_camera_resolution()
click_camera_picture()
save_camera_picture(String fileName)
switch_on_LED_flash()
switch_off_LED_flash()
flash_LED_flash(long milliSeconds)
Is there any such library ? Or if somebody knows enough to create one, I am willing to collaborate on the project.
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.