[Q] need help in dev

Search This thread

copent

Member
Oct 25, 2014
7
0
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 :D.
 

flywheels

Member
Oct 17, 2014
5
2
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 :D.

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?
 

rawnok

Member
Oct 22, 2014
9
1
29
Dhaka
Need #Support

Hello Guyz,
I am a newbie. I just published my first android app in Google Play Store. I need your support to have a chance to follow my dreams...please help me grow. Rate if you like this game:
play.google.com/store/apps/details?id=com.hachi72.flynofly

Thanks
 

surlac

Senior Member
Feb 1, 2012
58
6
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 :D.
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
 
  • Like
Reactions: copent

copent

Member
Oct 25, 2014
7
0
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.

Ok thank you i will get in to it later.
 

copent

Member
Oct 25, 2014
7
0
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


I dont understand u or u dont understand me, i need to know if there is voice in the speaker not in the mic. if i mistake here plz explain me what is "Funf".
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    About 3: yes only when 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
    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 :D.
    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