In order to avoid the phone from sleeping you need a WakeLock. Take a look here -> http://developer.android.com/reference/android/os/PowerManager.html As for the "plugged in usb" part you can look here -> http://stackoverflow.com/questions/5283491/android-check-if-device-is-plugged-in

On 19/1/2012 7:33 πμ, Simon Jackson wrote:
So with an example loaded, what needs to be changed to make the icon and all identifying app text be renamed to "myapp"?

I need to create audio samples (by algorithm) on the fly to play through the speaker, and need to prevent the screen from dimming and sleeping/locking while plugged in usb, is this possible?

Cheers Jacko
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to