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 .
copent said:
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 .
Click to expand...
Click to collapse
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?
flywheels said:
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?
Click to expand...
Click to collapse
About 3: yes only when the screen is off...
copent said:
About 3: yes only when the screen is off...
Click to expand...
Click to collapse
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".
flywheels said:
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".
Click to expand...
Click to collapse
Ok thx if i will have more quest i will ask you
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
Still need help with 1.
copent said:
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 .
Click to expand...
Click to collapse
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
surlac said:
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.
Click to expand...
Click to collapse
Ok thank you i will get in to it later.
surlac said:
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
Click to expand...
Click to collapse
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".
copent said:
i need to know if there is voice in the speaker not in the mic
Click to expand...
Click to collapse
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.
OP, did you figure it out?
surlac said:
OP, did you figure it out?
Click to expand...
Click to collapse
Well I dont really think that there is a way to do it :/
Related
Hi, im in uni and one of my module requires me to make an android app that will be usefull for the university i.e GPS location for each calssrooms if someone gets lost. please will you help me in suggesting some ideas on what app to make.
Thanks Guys!!!
10076757 said:
Hi, im in uni and one of my module requires me to make an android app that will be usefull for the university i.e GPS location for each calssrooms if someone gets lost. please will you help me in suggesting some ideas on what app to make.
Thanks Guys!!!
Click to expand...
Click to collapse
How to record courses... via a bluetooth mic on the teacher's desktop.
And then transform the recording in text. With the possibility to turn on/off the mic when he's talking about his wife and how he banged her the night before...
an app which records and is a note taker at the same time, with you being allowed to tag certain areas of the recording (lecture) with appended notes and stuff.
Btw, if you do make it, pm me the link !
ozmulti said:
an app which records and is a note taker at the same time, with you being allowed to tag certain areas of the recording (lecture) with appended notes and stuff.
Btw, if you do make it, pm me the link !
Click to expand...
Click to collapse
Microsoft word 2008 does it...(the MAC version).
What about something that automatically switches your phone to silent mode when you're in a lecture? You could base that off your calendar to know when your lectures are. (Note: I think this kind of app has been done before, but it should be challenging enough to be an interesting assignment.)
Steven__ said:
What about something that automatically switches your phone to silent mode when you're in a lecture? You could base that off your calendar to know when your lectures are. (Note: I think this kind of app has been done before, but it should be challenging enough to be an interesting assignment.)
Click to expand...
Click to collapse
I believe Tasker does this
Sent from my GT-I5700 using Tapatalk
HI guys,
Something came to my mind and wanted to share it with you...
its how to protect my device after being stollen?
I know there are plenty of apps to find the device( through gps remote activation), to erase the contents and release alerts through different ways.
BUT WHAT IF
somebody had stolen your phone , pull out the battery, then boot it into download mode (3 buttons combination that every one knows), and finally flashed it with any rom by using ODIN ???????
the question here;
IS THERE ANY WAY TO PASSWORD PROTECT THE ACCESS TO BOTH RECOVERY &/OR DOWNLOAD MODES IN THE DEVICE, SO IT CAN BE USELESS FOR THE THEIF ???
i hope u understand my worry here
cheers
Just call your carrier and report it stolen so the IMEI gets blacklisted, a useless toy to most thieves (unless they are smart enough to change the IMEI but most aren't).
http://en.wikipedia.org/wiki/IMEI
PS: Please, the is really no need for huge fonts and colors, most of us can see just fine.
shadoslayer said:
Just call your carrier and report it stolen so the IMEI gets blacklisted, a useless toy to most thieves (unless they are smart enough to change the IMEI but most aren't).
http://en.wikipedia.org/wiki/IMEI
PS: Please, the is really no need for huge fonts and colors, most of us can see just fine.
Click to expand...
Click to collapse
sorry about that, i thought it will be easier to read.
so your saying that there is no way protect the device other than this ?
drreality said:
sorry about that, i thought it will be easier to read.
so your saying that there is no way protect the device other than this ?
Click to expand...
Click to collapse
im saying this because, i know if we prevented somebody from flashing the device, it will be impossible to even change the IMEI
drreality said:
im saying this because, i know if we prevented somebody from flashing the device, it will be impossible to even change the IMEI
Click to expand...
Click to collapse
Think again. Every service has JTAG. so... isn't the password useless after all?
The best way top protect your phone is to keep your eyes on the device.
drreality said:
sorry about that, i thought it will be easier to read.
so your saying that there is no way protect the device other than this ?
Click to expand...
Click to collapse
Crysis21 said:
Think again. Every service has JTAG. so... isn't the password useless after all?
The best way top protect your phone is to keep your eyes on the device.
Click to expand...
Click to collapse
thats really depressing mate , have u heard about STEAM?
Juest a question...
As said before already exist many apps useful for retrieve our device if stolen, but all these apps need the GPS turned on.
What if if it's tuned off? Does exist an app that can turn on GPS in a remote way? (by sms for instance)
zat81 said:
Juest a question...
As said before already exist many apps useful for retrieve our device if stolen, but all these apps need the GPS turned on.
What if if it's tuned off? Does exist an app that can turn on GPS in a remote way? (by sms for instance)
Click to expand...
Click to collapse
ya mate there are dozens of them in the market, see the link below for one of them
http://www.youtube.com/watch?v=Jh7anr-Df9E
zat81 said:
Juest a question...
As said before already exist many apps useful for retrieve our device if stolen, but all these apps need the GPS turned on.
What if if it's tuned off? Does exist an app that can turn on GPS in a remote way? (by sms for instance)
Click to expand...
Click to collapse
There's a mobile tracker function in galaxy s. However it's not available in many countries yet.
Sent from my GT-I9000 using Tapatalk
Hello im working with a developer to make an app, and this is her response. I am hoping someone can chime in and give me some guidance i can pass along, where she might look in order to solve our task of auto-answering
we used to evoke 'Action Answer' modules but this feature has been revoked by the Android community as the community states it as a breach of privacy.
Click to expand...
Click to collapse
So what info can i give her, to guide in creating the auto-answer?
Thank you
Can anyone confirm if its still possible to have an app auto-answer an incoming call?
Thank you all, in a bind sorry for the bump
rsarno said:
Can anyone confirm if its still possible to have an app auto-answer an incoming call?
Thank you all, in a bind sorry for the bump
Click to expand...
Click to collapse
I do not have any info, only another question - If you do move forward, it would also help me in my quest: Using the 'Volume Up' key to answer the phone call ( thread here: http://forum.xda-developers.com/showthread.php?t=909172 )
I assume they would need similar answering capabilities ....
i dont see why its a breach of privacy, when the owner of the phone is the one who installs the app. If someone were to install the app on a phone they dont own it would be pretty obvious to the owner something is wrong.
But why not install the app with auto answer turned off as a default, forcing the user to turn it on manually and even stating to them a privacy statement explaing the operation and asking are you sure you wanna do this, maybe even adding a sercurity code for approval.
FreeTheWorld said:
i dont see why its a breach of privacy, when the owner of the phone is the one who installs the app. If someone were to install the app on a phone they dont own it would be pretty obvious to the owner something is wrong.
But why not install the app with auto answer turned off as a default, forcing the user to turn it on manually and even stating to them a privacy statement explaing the operation and asking are you sure you wanna do this, maybe even adding a sercurity code for approval.
Click to expand...
Click to collapse
Our challenge is finding the way to actually do it, to have the phone auto answer. At this point the client is not concerned with privacy, for reasons you listed.
One positive is that i see there is an app called AutoAnswer which (based on reviews) was functional as of 10 days ago. If they can do it, we can do it.
Its just my developer is challenged by what methods to use, or whatever, to invoke the "Answer" action
You can try the following code, but I didn't test it myself (and you need ITelephony.aidl from Android sources)
Code:
TelephonyManager tm =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
Class clazz = Class.forName(tm.getClass().getName());
Method m = clazz.getDeclaredMethod("getITelephony");
m.setAccessible(true);
ITelephony it = (ITelephony) m.invoke(tm);
it.answerRingingCall();
thanks, i will try!
vvv.androlib.com/android.application.pl-apps4android-nacm-zmipE.aspx where vvv is instead www
"Not Another Call Manager" NACM
tested before 10 Minutes on G1 with Biffmod 2.2
you can find it on the Market
xektop said:
vvv.androlib.com/android.application.pl-apps4android-nacm-zmipE.aspx where vvv is instead www
"Not Another Call Manager" NACM
tested before 10 Minutes on G1 with Biffmod 2.2
you can find it on the Market
Click to expand...
Click to collapse
He was looking for API, not for ready app. Or you propose to decompile this app and look at the code?
rwxer said:
He was looking for API, not for ready app. Or you propose to decompile this app and look at the code?
Click to expand...
Click to collapse
An API or a method of doing it via code.
Client is about to walk, because we cannot find a solution.
Need to answer the call automatically based on conditions. Not using Bluetooth, just as if you hit the "Accept" button on the handset, and it connects the call
Still not able to find a solution. Any ideas?
So answerRingingCall() method is not working?
So I am finding conflicting information online about this functionality. Essentially when I would like to do is say a hotword (the default is "google") and the phone would launch a search. As far as I can tell this can only be initiated from within Google Now, which to be honest is almost pointless. Given that you need to touch the screen to launch Google Now its just as easy to hit the little microphone icon. Is it possible to launch the Google Now search without actually being in Google Now? It would be great if I could simply roll over after I get up in the morning and say a hotword which wakes the phone and launches the search app.
webmaster said:
So I am finding conflicting information online about this functionality. Essentially when I would like to do is say a hotword (the default is "google") and the phone would launch a search. As far as I can tell this can only be initiated from within Google Now, which to be honest is almost pointless. Given that you need to touch the screen to launch Google Now its just as easy to hit the little microphone icon. Is it possible to launch the Google Now search without actually being in Google Now? It would be great if I could simply roll over after I get up in the morning and say a hotword which wakes the phone and launches the search app.
Click to expand...
Click to collapse
You are correct, that's how it is supposed to work. The phone Googling every time somebody said Google would be out of control.
It's probably possible somehow, but the constant listening for voice input would reduce your battery to a potato.
TheFiveDots said:
You are correct, that's how it is supposed to work. The phone Googling every time somebody said Google would be out of control.
It's probably possible somehow, but the constant listening for voice input would reduce your battery to a potato.
Click to expand...
Click to collapse
Would it really hurt the battery that much?
webmaster said:
Would it really hurt the battery that much?
Click to expand...
Click to collapse
The microphone constantly enabled while endlessly comparing the input to listen for a keyword?
Absolutely, yes.
Ok, so what about if that only happened when it was charging? For instance, when I am sleeping I leave the phone on the nightstand next to my bed and it is plugged in. Alternatively if you have it setup in your car so that it is charging while you drive. Both instances are ideal for when you would need truly "hands free" access to search functionality.
TheFiveDots said:
The microphone constantly enabled while endlessly comparing the input to listen for a keyword?
Absolutely, yes.
Click to expand...
Click to collapse
And obviously yes. OBVIOUSLY.
Sent from my Nexus 4 using xda app-developers app
Leave Google now screen on while you sleep and click setting to keep screen awake.
Sent from my Nexus 4 using Tapatalk 2
droidmakespwn said:
Leave Google now screen on while you sleep and click setting to keep screen awake.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Thats actually not a terrible idea, although the glowing phone might get kind of annoying while trying to sleep! For driving however that is a great way to do it, so thank you for the suggestion.
webmaster said:
Thats actually not a terrible idea, although the glowing phone might get kind of annoying while trying to sleep! For driving however that is a great way to do it, so thank you for the suggestion.
Click to expand...
Click to collapse
You could also use some kinda of app (I forget the name of it) that would auto launch google now and leave the screen on when the phone is plugged in.
jakejm79 said:
You could also use some kinda of app (I forget the name of it) that would auto launch google now and leave the screen on when the phone is plugged in.
Click to expand...
Click to collapse
I havent been able to find such an app. If you remember the name please let me know.
webmaster said:
I havent been able to find such an app. If you remember the name please let me know.
Click to expand...
Click to collapse
Tasker I believe.
https://play.google.com/store/apps/...EsIm5ldC5kaW5nbGlzY2guYW5kcm9pZC50YXNrZXJtIl0.
Hello ...
I have the Samsung Galaxy J5 (2016) with Android 6.0.1 from Saturday (NOT rooted ... yet). After a lot of hours searching and setup I have this "problem":
When I press the PowerButton for 2-3 seconds to show the options: Reboot/ShutDown/SafeMode it sounds the Messages notification !! How can I disable this?
Thanks in advance.
I still cannot disable it (without reset the phone)
I wonder if this notification is by default ....???
Thanks
zavag said:
I still cannot disable it (without reset the phone)
I wonder if this notification is by default ....???
Thanks
Click to expand...
Click to collapse
Dunno if you can remove it without root, but you can do it with root. You find system sounds at /system/media/audio/ui. There you should find the sound file regarding power menu, then delete it and reboot and that's it.
@zavag
I try to turn it on to reproduce your problem but In my case, I can not even find out how I can turn it on.
Can you tell me...
How you activated it?
On which build are you?
@Henkate
I think it would be rather embarrassing for Samsung if you can not even personalize a notification tone without major changes to the system.
By the way, even if I do not actually think of TouchWiz. For me it's just ugly and overbloat!
I really don't know how it activated. The phone is new and ... you know ... I was searching a lot of settings in order to setup as I like. I googled it ... I found some infos but it didn't work.
On the other hand I don't want to reset (and most I don't want to root it from now) because I spent a lot of hours to set it up.
bronko3010 said:
@zavag
I try to turn it on to reproduce your problem but In my case, I can not even find out how I can turn it on.
Can you tell me...
How you activated it?
On which build are you?
@Henkate
I think it would be rather embarrassing for Samsung if you can not even personalize a notification tone without major changes to the system.
By the way, even if I do not actually think of TouchWiz. For me it's just ugly and overbloat!
Click to expand...
Click to collapse
Know what you mean! I think if there is really no other way you are at minimum able to backup your settings in almost any app.
Maybe you like to inform about adb based backup solutions like declared here:
https://www.droidwiki.de/wiki/Backup/Ohne_Root
I also found a tool called Ultimate Backup on XDA:
http://forum.xda-developers.com/showthread.php?t=1844032
If you don't have access to a Linux or at least Windoof computer you can maybe search for how to use adb through androids buit in Linux command shell. Don't know if there is a workaround.
But in my opinion it is already poor from Samsung if one must operate such an effort in order to turn off a notification!
zavag said:
I really don't know how it activated. The phone is new and ... you know ... I was searching a lot of settings in order to setup as I like. I googled it ... I found some infos but it didn't work.
On the other hand I don't want to reset (and most I don't want to root it from now) because I spnt a lot of hours to set it up.
Click to expand...
Click to collapse
zavag said:
Hello ...
I have the Samsung Galaxy J5 (2016) with Android 6.0.1 from Saturday (NOT rooted ... yet). After a lot of hours searching and setup I have this "problem":
When I press the PowerButton for 2-3 seconds to show the options: Reboot/ShutDown/SafeMode it sounds the Messages notification !! How can I disable this?
Thanks in advance.
Click to expand...
Click to collapse
It's related to some accesibility services. Try to disable them in settings!
MaDaLiNoSt said:
It's related to some accesibility services. Try to disable them in settings!
Click to expand...
Click to collapse
I found this while searching internet for other phones. But ... I think that is general infos and no specific....I couldn't disable it.
MaDaLiNoSt said:
It's related to some accesibility services. Try to disable them in settings!
Click to expand...
Click to collapse
You are right!
Settings => Accessibility => Vision => Accessibility Shortcut
Was On and I changed it to OFF
Sent from my GT-N5120 using XDA Free mobile app
zavag said:
You are right!
Settings => Accessibility => Vision => Accessibility Shortcut
Was On and I changed it to OFF
Sent from my GT-N5120 using XDA Free mobile app
Click to expand...
Click to collapse
I am happy that I helped you.