Hello this is my frist time here, I need help with my project.
1. How to detect if there are sounds from the speaker?
2. How do I make my app to be on all the time?
3. How do I detect if the phone is off?(not completely off).
thx in advance .
I can't answer 1, but...
2. You can use services for long running background tasks.
3. Not sure exactly what you mean, do you want to detect if the screen is off?
Try receiving the ACTION_SCREEN_OFF intent in a broadcast receiver inside you're always on service. My post count is too low to post links, but there's lots of examples out there, try Googling "detect screen off android".
1. Check MediaRecorder of if you want to go deeper - FunfHello this is my frist time here, I need help with my project.
1. How to detect if there are sounds from the speaker?
2. How do I make my app to be on all the time?
3. How do I detect if the phone is off?(not completely off).
thx in advance .
1. Check MediaRecorder of if you want to go deeper
2. WakeLock? Will keep the device on all time. There is no guarantee that your app will be alive all the time, there are mechanisms to free up resources in Android which can take care of your app.
3.
1. Check MediaRecorder of if you want to go deeper - Funf
2. WakeLock? Will keep the device on all time. There is no guarantee that your app will be alive all the time, there are mechanisms to free up resources in Android which can take care of your app.
3. isInteractive
It looks like there is no way for Android to capture the sound before it goes to the speaker. Voice recording apps use VOICE_DOWNLINK to record what will go to the speaker from third-party, but it for calls only.
1. Check MediaRecorder of if you want to go deeper - FunfHello this is my frist time here, I need help with my project.
1. How to detect if there are sounds from the speaker?
2. How do I make my app to be on all the time?
3. How do I detect if the phone is off?(not completely off).
thx in advance .