[Q] Best Way To Make An App Like This? - General Questions and Answers

I want to make an app that you can use the camera and accelerometer to do something like this: In a car, when the accelerometer senses that the car has stopped, it uses the camera to see when the light turned green and then it makes a loud beeping noise to tell you that the light changed. What would be the best way to do this? I can use java to make an app but I need some general instruction on how to do it.

Related

Daxian x999+

I was just wondering for anyone using this phone. How can I disable the sound on my camera when taking a picture? It makes a shutter sound and it's annoying. I can't find it in sounds and notifications. The video option does the same, except it makes a beep type sound the moment I press record, then everyone knows I'm recording lol. I'd prefer to just turn those sounds off somehow.
If I put my phone on silent mode, it still makes those sounds when using the camera.
Anyone have any ideas how to turn them off, or if it will be ok to delete the .wav file or whatever type it is? I don't know where that will be though.
Windows Mobile 6.0 if that helps.
Thanks.

[APP] Earpiece: boost audio, play through earpiece

I wanted an app to play audio through a phone earpiece, so that if I didn't take my headphones somewhere, I could still listen to an audio book as if I was on the phone. So I made a very simple app that toggles whether sound comes from the earpiece or the speaker: Earpiece.
Currently alpha, or maybe early beta, quality. Works on my Epic 4G Touch. Don't know how many other phones it'll work for. (Interestingly, I also noticed that if I have earphones plugged in and I select earpiece mode, then the volume goes up a little. I am curious if this happens for other users)
I also wanted an app that would let me boost the audio volume, so I added that functionality to Earpiece while I was at it (Android 2.3+ only, should work even on devices like tablets that don't have an earpiece). I know there are such apps (Volume+ seems to be the most popular one), but why have a separate app for this?
You can set Earpiece to show up when you long-press the search key. (I don't use this feature myself. Instead, I have another simple app that pops up a menu of my favorite apps when I long-press the search key, and I use that to launch Earpiece.)
Free and open source (BSD license).
Works on SGM l. But DSp manager FCs
Sent from my GT-S5570 using Tapatalk 2
ensoy said:
Works on SGM l. But DSp manager FCs
Sent from my GT-S5570 using Tapatalk 2
Click to expand...
Click to collapse
With what settings in Earpiece?
I would expect the Boost setting to interfere with DSP Manager, since both apps would be trying to do the same thing.
Not working on Motorola Defy with MIUI GB ROM.
5pace said:
Not working on Motorola Defy with MIUI GB ROM.
Click to expand...
Click to collapse
Thanks! Tell me more. How did you test it?
Here's how I test. I start an audio book playing in Mortplayer, and then go to Earpiece, and toggle the Earpiece checkmark.
Clever idea, thanks!
Works perfectly on my HTC EVO 3D ICS 4.0.3 leak, boost as well - even the feeble speaker becomes louder
Cheers
Christoph
Works perfectly on ZTE Blade.
Looks pretty weird when "talking" to phone without saying anything
mikpel said:
Looks pretty weird when "talking" to phone without saying anything
Click to expand...
Click to collapse
It looks like the person on the other end of the line is just talking your ear off and not letting you get a word in.
Question: Should I activate the proximity sensor in Earpiece mode, and turn the device screen off and on based on closeness to the face?
arpruss said:
It looks like the person on the other end of the line is just talking your ear off and not letting you get a word in.
Question: Should I activate the proximity sensor in Earpiece mode, and turn the device screen off and on based on closeness to the face?
Click to expand...
Click to collapse
Thats great idea. Im using this in sgs2 running aokp.
Sent from my GT-I9100 using XDA Premium HD app
I just posted 0.02 with proximity sensor support.
Screen off while close to face is default for phone calls on my htc, saves lots! of battery during long talks.
So, yes, please
Workaround so far: With screen off manually (power button), sound plays nicely in the background.
Thanks and Cheers!
EDIT: Too fast for me Thanks again!
Edit: Getting FC after "boosting"... all options set
chw9999 said:
Edit: Getting FC after "boosting"... all options set
Click to expand...
Click to collapse
Did this happen with the previous version?
Can you send me a log after the crash? Install Log Collector, then do the crash again, and then go to Log Collector to email the log to arpruss at gmail dot com.
My ICS has a not stable beats installed, deactivated it, now works flawless
Noticed that the "Volume up/down" beeps don't get routed through earpeace, which is fine with me. Probably, because it's not a media volume sound?
Cheers!
Work on zte blade, but is it possible to use earpiece + speaker in same time?
Envoyé depuis mon Blade
Works for mytouch 4g miui gb
Sent from my HTC MyTouch4G using Tapatalk 2
Gokh said:
Work on zte blade, but is it possible to use earpiece + speaker in same time?
Click to expand...
Click to collapse
You mean, for greater volume?
I doubt it, but I can experiment and see. Might actually be hard to tell if it's working, because the earpiece speaker will be drowned out by the main speaker.
I just posted 0.03.
It switches to the earpiece using a slightly different method. I'd appreciate reports whether it works for people.
By the way, no luck routing audio to BOTH the speaker and the earpiece at the same time.
I posted a release in the Market.
The release version carries one text ad on the screen, for my paid products. If the ad annoys you, just buy any of my paid products and the ad will disappear. Or just use a pre-release version.
Cool thing I found. If you turn on Earpiece while in Camera, the camera sound gets routed to the earpiece, and hence is very quiet, at least in my Epic 4G Touch.
(I know there are root-based solutions to the camera sound issue, but I haven't rooted my phone yet--I haven't found a way to do it that's both safe and doesn't involve copyright problems, like downloading unauthorized copies of parts of ROMs.)
I posted 1.01 in the Market and on the google code page. If you press MENU, you can go to Settings and select whether you want the status bar notification always, only when the background service is running, or never. The "never" is attractive if you don't like clutter, but unfortunately it allows the OS to kill Earpiece's proximity sensor and boost features (they need the background service) when the OS runs out of memory. Still, it's up to the user.
I am kind of excited by my discovery that earpiece mode makes the camera sound come out of the earpiece and hence be very quiet. I've experimented some more, and when I combine this with a negative volume boost, I can make the camera sound almost inaudible--probably inaudible to anybody more than two feet away except in an almost perfectly silent environment. Of course, for rooted devices there are ways of turning it off entirely, but I don't have root, and I want to be able to take pictures without disturbing people.

[Q] Horrible Voice Pick-up/detection in car using Voice Action Apps

Hoping someone might have a tweak to make this work... When I use my phone in my car I like to use a voice action app (AVX) or sometimes good ol' Google Voice Search. with my old Dinc, it was great at picking up my voice even with the radio on and the a/c blasting.
However, on the S3, the mic seems to pick up the ambient noise (even if it's just the a/c on low or the car running) and doesn't do so well at picking up my voice. Sometimes it will get my voice command but will take forever to execute it because even after i stop talking it keeps listening because it's picking up the ambient sounds. Other times, it only picks up the ambient sounds and doesn't get my voice at all.
Since driving is probably the one time when a voice action app is actually needed, I'm hoping there's a setting or something that can help this. Or perhaps it's just one of those flaws in an otherwise great phone? Like I said my 2 1/2 year old Dinc did a great job of picking up my voice so it's sad to see such a cutting edge phone doing such a horrible job at it.
The weird thing is the phone has no problem hearing my voice commands over the ringtone (reject/answer) or over my music playing (stop, next, etc) so it seems like maybe the noise cancellation feature just isn't starting up like it should when a voice actions app like voice search is listening...
Anyone else notice this? Anyone have any ideas or tweaks to improve it?
Thanks for the help!

Disable earpiece / always answer calls with speaker

I have an original Pixel XL on Android 10. The earpiece speaker is broken. (I damaged it putting in a new screen, I broke the screen putting in a new battery, don't want to take it apart again)
I am looking for some way to always have the Speaker on by default. I have tried various auto speaker apps and none work. I have disabled sensors, trying to stop proximity sensor. Nothing works.
What is really frustrating is when I try and google a solution all I get is 'My phone always uses speaker how to turn off' I have tried a few auto record apps too as some people have had them use the speaker, no luck.
Any help would be appreciated.

Microphone is not working properly in third-party apps

So I've seen this on a bunch of other phones where like it'll use the wrong microphone when you go into third party apps. When I record video on the camera app it's amazing like best quality microphone I've ever had on a phone but when I try and record a video on Snapchat where I'm talking even if I turn the volume up all the way I can't make out what I'm saying. I'm not really sure where I'm posting this because there's never a solution and any of these other posts that have the exact same problem. It almost seems like it's using the phone microphone like the one it would use if you had the phone held up to your ear.
what phone are you using?

Categories

Resources