[HELP] Android Audio Recorder enabled by NFC - General Questions and Answers

Hello
I’m really new in java programming. I’m trying to build an android application that will be enabled by NFC, record sound (during sleep) continuously (in separated files of 1-2 minutes length and then start a new recording file), uploading each one of them (right after it’s recorded) on a server and then deleting them from the phone. Also I want to add a UTC timestamp to every file , to be able to synchronize these sounds recordings with other signals, on the same graph.
I’ve found an open source app which records audio. I need to make it to :
1. Start while I put the phone on the NFC
2. Record files with 1-2 minutes max length
3. Upload each one on the server and then delete it from the phone
4. Add UTC timestamps
Could you help me with any of these? Any Help would be appreciated.
Thanks in advance!

Related

AstyCrapper

If someone can port this project over to Android and have a way to transfer and record the calls, it would be so awesome
http://www.linuxsystems.com.au/astycrapper/index.html
All you need to do is transfer the call to astycrapper live:
linuxsystems.com.au/astycrapper/live/
then after the call ends (may take a few minutes) refresh the page
LOL, that's awesome but it'd be quite a charge for the transfer I'd still love to have something on the phone so I can listen in and record it myself

[Q] Overriding Android default (built-in) components

I want an activity in an app to overide the Android default (built-in) phone dialer/receiver that normally gets run on incoming calls. This is so that I can replace the default screen, the one that pops up when a phone call comes in, with my own call reception activity.
What approaches would you suggest for this. How do you control the priority / precedence of components to be called? What is the Android component that does the phone call receiving, and how do I run my own activity BEFORE this starts up (and instead of it).
Do you know whether this kind of thing (overriding built-in components) can be done without modifying the Android Java source code (of the dialer/receiver I assume)? Or in some other way?
Would you please point me to any information (links, books, code
examples, whatever), you may have about this? Any starting point would be helpful.
Thanks,
Rooster

Bugs on our device thread

Issue Summary (updated regularly when issues arise) [UPDATES Shown in this style]
* Issue 1: Windows Phone connector for Mac crashes when trying to sync.
* More information & reading HERE
* Temporary workaround (taken from above thread):
From timmymarsh:
- When device connected, quickly hit cancel sync before wp app crashes.
- Go into settings, UNCHECK Auto-sync.
- Next time connect device, app should not crash.
From MS: (in response to my workaround)
If you want to turn off the "sync automatically" setting, you can do it outside the app, no need for quick reflexes/slow computer:
- In Finder, pres cmd-shift-G
- Type the following path into the dialog: ~/Library/Containers/com.microsoft.Windows-Phone-7-Connector/Data/Library/Application Support/Windows Phone/Devices
- You should see a single folder with a bunch of characters representing your phone, open that folder
- Edit the file named "Sync Configuration.xml"
- Change the value after Setting/Sync On Connect from <integer>1</integer> to <integer>0</integer>
Click to expand...
Click to collapse
* Final solution - awaiting (MS working on an update) - will review now OSv OTA 8.0.10211.204 has been released.
__________
* Issue 2 : 8x Reboot
* More information & reading : HERE and HERE
* Temporary fix : doesnt appear to be one at this time.
* Updated info: MS has identified a problem, working on OTA release for December. Fix TBC since release of Osv x10211.204
* Final solution - awaiting (OTA update) - Issue fix TBC as above
__________
* Issue 3 : Distorted sound, ie whilst phone is ringing
* More information & reading :
* Temporary fix : reboot, sound works afterwards.
* Final solution : Fix TBC since release of Osv x10211.204
__________
* Issue 4 : General stability issues - unresponsive
* More information & reading : none, need confirmed reports from users.
* Temporary fix : as above.
* Final solution : Fix TBC since release of Osv x10211.204
__________
Issue 5
* More information & reading:
* Temporary fix :
* Final solution
__________
* Possible OS patches/updates in the pipeline:
* OTA update/patch rumoured for December to fix reboot issue (affecting all wp8 handsets, Nokia & HTC) - 8.0.10211.204 OTA released 11th Dec 2012
* "Portico" OS update rumoured for release in Feb 2013 - TBC
* UNOFFICIAL leaked RUU (currently running on all new HTC 8S devices) see **Link Removed due to Official OTA Release**
Let's list up our findings, to see if it's only a local bug, or if many others have the same issues.
Had my 8x for aprox 3 weeks now, I am mostly very pleased with both aesthetics and performance.
But have seen some random "bugs":
-Random reboots (already mentioned and have a fix coming)
-Sometimes, in apps, the screen is not responding to touch, seen it happen in various apps, but mostly in Wimp. Needs reboot to function properly again)
-Sound becomes distorted from time to time, happened once using headset, and sometimes with notifications/incoming calls.
-"lag" in notifications, in.ex when a ringtone starts (when device in sleep mode) it's noticeable that the ringtone don't start from beginning, it kinda hangs a bit then starts half a sec/a sec into the ringtone/notification sound.
Not sure if it's my device or if others experience the same things
itje said:
..........
-Random reboots (already mentioned and have a fix coming)
-Sometimes, in apps, the screen is not responding to touch, seen it happen in various apps, but mostly in Wimp. Needs reboot to function properly again)
-Sound becomes distorted from time to time, happened once using headset, and sometimes with notifications/incoming calls.
-"lag" in notifications, in.ex when a ringtone starts (when device in sleep mode) it's noticeable that the ringtone don't start from beginning, it kinda hangs a bit then starts half a sec/a sec into the ringtone/notification sound.
...........
Click to expand...
Click to collapse
I've nearly the same problems with my device (8X, FW 1532.20.10005.111, HWrevisionnumber: 0002, Chip-SOC-Version: 8260A).
- 3 times a reboot
- sometimes in apps no screen responding (i think it's caused from the app's)
-> reboot manually
- sound becomes disorted when using navigon ( navigon bug ?), built in music player works fine, sometimes sound in video player is asynchronous, sometimes not (same movie file)
- when i use navigon and bluetooth in my car, battery drains out allthoug i'm charging (5V, 1000m/Ah), so i'm not able to use it for more then 3-4 hours !!! Phone is then really hot and battery empty.
I read that lumia 920 users have the same problem.
- Battery drains too fast, 12 to 16 hours by normal usage
- my provider data volume (200 MB) is sufficient for max. of 3 days (no tool to control network traffic, because t-mobile WP8 without built in data sence)
For users with battery problems, Coolknight1968 wrote a "how to" to become a better battery performance. You can read it, following the link in post#4 in this thread:
http://forum.xda-developers.com/showthread.php?p=34763611#post34763611
cu
spiderbirdy
The only bug I suffer from is the reboot, but this mostly occures when I have a WP7.5 app tombstoned in the background.
Battery life averages between 20 hours - 1,5 day depening on use. Seems good enough, I have very little drain in standby. Battery does drain fast when using games or the screen a lot, but this is normal.
No audio bugs either.
No lag or responsiveness issues.
8X, FW 1532.20.10022.401, HWrevisionnumber: 0002, Chip-SOC-Version: 8260A
ITJE, you beat me to this thread. I was going to post a thread with a list of issues (regularly updated) with a space to list workarounds and answers.
Hope you dont mind, i have created a summary post above yours, which can be updated for ease of reference (as it was such a good idea lol)
If you want, i can transfer ownership to you (you know the magic lol)
I never had the reboot issue but that's probably because I read that Skype was causing the problem so I just left it uninstalled.
I don't have the distorted sound issue under any circumstance.
I use Windows and Linux and therefore have not experienced the Mac problem (despite owning a Mac)
I have noticed something else... I cannot send the following message: *in
If there is a space before the asterisk, then there's no problem. If either or both of the letters is capitalized, there's no problem. asterisk-i-n will not send from my phone.
Anybody else getting this?
found another bug...
when i connect my 8X to my Computer and connect it to Visual Studio for Debugging it seems that the telephone Features hangs after a while... i don't receive SMS nor calls... only a restart can solve the Problem...
happens to the 3rd time today...
really annoying
EDIT:
It seems it doesn't Need to be connected to the PC.
Everything in the whole OS seems Buggy.
The first time i used my phone it was the same way, after a few hardresets (because it was the same time the Live-Services had Errors) it seemed that it works nice now...
i don't know what error this could be...
1. I too have had the reboot problem (where the phone randomly reboots itself).
2. I have also had the phone freeze where I had to hold the power button to reboot, as the phone was unresponsive.
3. When making a call, one time the phone wouldn't go to speakerphone, nor could I hear the person on the other end. Everything else worked fine. A reboot fixed the problem.
edit:
4. The phone has randomly said "invalid or missing sim card" twice now. A reboot fixed it both times, but annoying. Anyone else have this? Not sure if its the sim or the phone.
Not sure if it's a "bug" to others, but in group messages, i reply to the group, but I also get the reply. How the hell is that fixed?
timmymarsh said:
ITJE, you beat me to this thread. I was going to post a thread with a list of issues (regularly updated) with a space to list workarounds and answers.
Hope you dont mind, i have created a summary post above yours, which can be updated for ease of reference (as it was such a good idea lol)
If you want, i can transfer ownership to you (you know the magic lol)
Click to expand...
Click to collapse
I don't mind. You keep it :cyclops:
Oberoth said:
found another bug...
when i connect my 8X to my Computer and connect it to Visual Studio for Debugging it seems that the telephone Features hangs after a while... i don't receive SMS nor calls... only a restart can solve the Problem...
Click to expand...
Click to collapse
I have noticed that if I go a while (a few days or so) without a reboot, then my phone stops receiving texts and calls. A simple toggle of the radio from one protocol to another (i.e. 4G to 2G and back) will rectify things. I'll get a flood of backlogged messages.
After updating to the new (officially not released yet) OS 8.0.10211.204 I have not had issues with sound or reboots (yet?)
Seen some issues in apps esp. on resume (mostly/only(?) Wimp, but I believe that's app related)
I am happy with my 8x, it's, for me, one of the better devices I have had :good:
And when spotify (very missed) becomes available for WP8, I will be very happy
I am on 8X number 3 now as I cant stand the reboot issue and first 2 had it.
With all 3 phones though I have noticed that a lot of the old power Hungary games tend to crash a lot - prime on is PES that crashes on the second game of a session without fail and sometimes first. Also IloMilo sometimes bombs. I know this is an app thing and I know lumia 920 owners are having same issues with same apps its quite annoying as all work flawlessly on WP7 handsets (at least HD7, Mozart and Lumia 800).
Also first 2 handsets had issues with casing coming away from the screen though the new one looks and feels spot on. (first 2 where blue handsets new one is yellow so dunno if it was just a batch issue as I know the yellows came into store later
Other than that its a great device with only downside being the lack of SD (this will bug me until I upgrade) The sound quality rocks.I have found myself with my earphones in whilst at home with my stereo waiting to please me.
Post 1 updated.
Hi guys.
Please only report bugs if you have updated your device to the new OTA 8.0.10211.204 released by MS & carriers today.
If you havent updated yet, then it would be wise to do this as the new release will probably address the above, thanks.
No Sound
This has only happend about 3- 4 times. I have the volume up and set to ring. But watching videos, sounds(typing, lock/unlock, etc), calls, etc there's will be no sound. I try lowering the volume and raising it, checked setting, etc but nothing makes the sound come back until I reboot the device. Anyone else have this?
OS Version: 8.0.9903.10
Firmware: 1532.20.10006.531
Hardware: 0003
Radio software: 1.10.32.19.19_3_15.39.32.19
Radio Hardware: 3.36.0.D4
Bootloader: 0.0.1532.20
Chip SOC:8260A
marcoshid said:
This has only happend about 3- 4 times. I have the volume up and set to ring. But watching videos, sounds(typing, lock/unlock, etc), calls, etc there's will be no sound. I try lowering the volume and raising it, checked setting, etc but nothing makes the sound come back until I reboot the device. Anyone else have this?
OS Version: 8.0.9903.10
Firmware: 1532.20.10006.531
Hardware: 0003
Radio software: 1.10.32.19.19_3_15.39.32.19
Radio Hardware: 3.36.0.D4
Bootloader: 0.0.1532.20
Chip SOC:8260A
Click to expand...
Click to collapse
no, only distorted sound on that os, you not got the ota update yet? Its coming.
Hi
Have my 8X since a few days, the day before the OTA update actually, but I still have a problem :
The speakerphone is working perfectly fine when playing music or video but when I'm calling someone, putting him on speakerphone makes the sound horrible to the point that I can't understand what the other one is saying. I don't use speakerphone that often, so if you could just give it a try calling your voicemail, maybe I'm not the only one with this.
Not don't have it yet will update once I do and is if it ever happens again.
timmymarsh said:
no, only distorted sound on that os, you not got the ota update yet? Its coming.
Click to expand...
Click to collapse
probably not a bug but annoying: since the update msn toggles online/offline with the screen; people think i'm unavailable on msn (yes i still use msn )

[APP][4.0+] AudioBT: Use Bluetooth headset for GPS and notification audio

Hi
I've created a small app that automatically switch your device into Bluetooth call mode when an app is playing an audio or when your GPS is giving directions. The benefit is that it will cut what you're currently listening from your car audio system to play the incoming call audio and go back to your current listening on your CD, MP3, FM radio, etc.
There are two ways of using AudioBT.
-One is a background service that monitors the audio focus and turn on the Bluetooth SCO proile when another app is temporarily requesting the audio focus. Unfortunately the first second of the audio might be cut when using this service (to be fixed with upcoming Xposed hook). Some applications do not request the audio focus properly so this might not always work.
-The other approach is an integrated TTS engine. Any app using tne Android TTS service can use the AudioBT TTS service for sending text to speech. AudioBT will automatically turn on the Bluetooth SCO profile before playing the text. Any TTS service or language can be selected in the AudioBT TTS parameters.
It is still experimental and user's feedback is appreciated.
Thank you!
https://play.google.com/store/apps/...51bGwsMSwxLDEsImNvbS50dXJib2xlZC5hdWRpb2J0Il0
Service intents (for use with Tasker)
com.turboled.audiobtplus.ON : Cat = Default, Target = Service. Turns ON the AudioBT Plus service.
com.turboled.audiobtplus.OFF: Cat = Default, Target = Service. Turns OFF the AudioBT Plus service.
com.turboled.audiobtplus.SCO_ENABLE : Cat = Default, Target = Service. Enables Bluetooth SCO channel audio.
com.turboled.audiobtplus.SCO_DISABLE : Cat = Default, Target = Service. Disables Bluetooth SCO channel audio.
com.turboled.audiobtplus.PLAY : Cat = Default, Mime Type = audio/*, Data = file uri (file:///*), Target = Service. Plays an audio file through the bluetooth channel. No need to call SCO_ENABLE or SCO_DISABLE. Specify file name in Data.
To play notifications through Bluetooth with Tasker, create a new task with the following steps:
-Say to file (Misc), text = %NTITLE, file = /sdcard/Download/1.wav. Use standard TTS engine (Pico, Google, SVox, etc...), EnhancedTTS or AudioBT+ TTS are not supported.
-Send an intent (Misc), action = com.turboled.audiobtplus.PLAY, cat = Default, Mime type = audio/*, Data = file:///sdcard/download/1.wav, Target = Service.
Add a new profile with Event -> UI -> Notification and link with the task created above.
Add the task to any profile triggered on Notification *,*. Make sure Tasker is enabled in your Accessibility parameters.
Re: [APP][4.0+] AudioBT: Use Bluetooth incoming call for GPS audio
TurboLed said:
Hi
I've created a small app that automatically switch your device into Bluetooth call mode when an app is playing an audio or when your GPS is giving directions. The benefit is that it will cut what you're currently listening from your car audio system to play the incoming call audio and go back to your current listening on your CD, MP3, FM radio, etc.
There are two ways of using AudioBT.
-One is a background service that monitors the audio focus and turn on the Bluetooth SCO proile when another app is temporarily requesting the audio focus. Unfortunately the first second of the audio might be cut when using this service. Some applications do not request the audio focus properly so this might not always work.
-The other approach is an integrated TTS engine. Any app using tne Android TTS service can use the AudioBT TTS service for sending text to speech. AudioBT will automatically turn on the Bluetooth SCO profile before playing the text. Any TTS service or language can be selected in the AudioBT TTS parameters.
It is still experimental and user's feedback is appreciated.
Thank you!
Click to expand...
Click to collapse
Links please
Sent from my GT-N8000 using XDA Premium HD app
hoss_n2 said:
Links please
Click to expand...
Click to collapse
Well, it was right there on the Google Play image... I added an hyperlink below.
New version 2.2.0 to be published soon on Google Play. Attempt to fix compatibility issue with some devices. If you tried this app on your phone and it didn't work, try the upcoming version.
Thanks
I've tried your app with my alpine cde 133bt, but the tts-messages were still send to the normal bluetooth audio-out channel, so I have to manually switch from tuner to bluetooth mode. Both the service and the custom tts-engine didn't work. Your app is exactly what i've been looking for, so let me know if there is anything I can do, to help fix this.
my setup: I have a motorola razr running on android 4.0, which connects to the radio with the HFP and with the A2DP profile. turning a2dp off in the bluetooth settings redirected the tts-messages to the mobile speaker.
sebistan said:
I've tried your app with my alpine cde 133bt, but the tts-messages were still send to the normal bluetooth audio-out channel, so I have to manually switch from tuner to bluetooth mode. Both the service and the custom tts-engine didn't work. Your app is exactly what i've been looking for, so let me know if there is anything I can do, to help fix this.
my setup: I have a motorola razr running on android 4.0, which connects to the radio with the HFP and with the A2DP profile. turning a2dp off in the bluetooth settings redirected the tts-messages to the mobile speaker.
Click to expand...
Click to collapse
Hi,
I've got other similar complains from Motorola users. I have not been able to figure out the problem yet. Are you able to provide me with a Logcat when you start the AudioBT service ?
Also can you test BTMono, which is a similar app but that leaves the audio channel open (incoming call) ? If BTMono works my app should work. However BTMono is from a different author and uses more permissions.
Thanks
i tried btmono yesterday, it works. I will get back to you with the logcat later
sebistan said:
i tried btmono yesterday, it works. I will get back to you with the logcat later
Click to expand...
Click to collapse
At the same time, you could try 2 test versions I created. The first one adds more permissions (Bluetooth_admin and network_access). The second one use Call mode instead of Communiation mode. Please tell me if one of these works on your device.
Here's the link to both APK:
https://docs.google.com/folder/d/0B2XwV7ab33OAY2tiVVRTWGRRTVE/edit?usp=sharing
here is the logcat record, i hope it helps. i started recording, started your service and pressed the test audio button.
i also tried the two test versions, they both did not work, same behaviour as the original one
edit: aparantly i'm not allowed to post external links (or edit my post for 5 minutes). i've attached the logcat output
sebistan said:
here is the logcat record, i hope it helps. i started recording, started your service and pressed the test audio button.
i also tried the two test versions, they both did not work, same behaviour as the original one
Click to expand...
Click to collapse
Thanks for your help. Where's the log ? Ah there it is
sebistan said:
here is the logcat record, i hope it helps. i started recording, started your service and pressed the test audio button.
i also tried the two test versions, they both did not work, same behaviour as the original one
edit: aparantly i'm not allowed to post external links (or edit my post for 5 minutes). i've attached the logcat output
Click to expand...
Click to collapse
Hey sebistan, thanks A LOT for your logcat. I saw an error about a missing BROADCAST_STICKY permission. I've create a new version AudioBT-Sticky at the same link: https://docs.google.com/folder/d/0B2XwV7ab33OAY2tiVVRTWGRRTVE/edit?usp=sharing
Your help is a blessing. Now if that works, I'll be more than happy to give you the unlimited version if you send me your email address (in a private message).
yay, that would be great. unfortunately, it is still not working, but we are getting closer
when i start the new version, my car audio system switches briefly to calling mode and back to the tuner. But after that, all other sounds are still beeing routed to the standard speaker. I've attached the logcat
sebistan said:
yay, that would be great. unfortunately, it is still not working, but we are getting closer
when i start the new version, my car audio system switches briefly to calling mode and back to the tuner. But after that, all other sounds are still beeing routed to the standard speaker. I've attached the logcat
Click to expand...
Click to collapse
There is something odd going on, now that it successfully go into communication mode, it cannot track the audio focus. Your phone/ROM is acting way differently than some others.
I've attempted a fix (AudioBT-focus.apk), please test. I turn off commuication mode between audio, however I fear that it will take too long to switch on and you will lose the first seconds of audio when a message is playing.
I believe the TTS should work (even without the fix above) as it doesn't use audio focus. You can test by playing the sample in the settings.
Thanks!
After looking at Android source code I figured out the focus problem was fixed in JB Android 4.1.1 and up, so anyone running my app with ICS have the same problem. If you have success with my fix above and you don't see a significant delay when playing the audio I could publish a new version with a workaround for ICS, otherwise I will have no other choice than to put a notice regarding incompatibility with ICS.
the fix also does not work, the audio test is still coming from the music channel. the tts-service is not working either. in none of the test versions. i guess i have to wait for the jb update.
sebistan said:
the fix also does not work, the audio test is still coming from the music channel. the tts-service is not working either. in none of the test versions. i guess i have to wait for the jb update.
Click to expand...
Click to collapse
Please provide me with a logcat with the focus fix... There's probably something else going on. If you get the incoming call to come up during initialization, that's a good start.
sorry, i had a lot to do, could not make it any faster. Here is the logcat from my focus-fix-test, same procedure as last year
sebistan said:
sorry, i had a lot to do, could not make it any faster. Here is the logcat from my focus-fix-test, same procedure as last year
Click to expand...
Click to collapse
Hi seb,
I finally decided to install ICS on my phone. And indeed, it doesn't work well. I see that I cannot prevent the call mode to steal the audio focus in this Android version. For now I don't have any idea out of my head.
However, TTS works on my phone with ICS but not with the fix version. Make sure you turn off the AudioBT service when testing TTS. And maybe send me a logcat while testing the TTS (playing the "Listen to an example" in the TTS settings).
Hi I just wanted to tell you that I recently bought a dice mediabridge for my car and the only issue I was having and it was really bothering me was that when I was in Sirius satellite mode and my phone connected through Bluetooth that the phone calls would come right through but not the navigation if in use.This bothered me because it was a lack of integration that should be there. I searched the web for a few weeks pretty thoroughly and discovered that this was a very common issue reported in threads but no solution at all from anyone.The other day I came across your app and it is wonderful it does exactly what I was looking for and I'm sure once word gets out it will get alot of downloads. My only issues with it is that it does seem a little buggy which I totally understand.A few times the other day it wouldn't activate and I had to reboot my phone to get it to work I have a Verizon note 2. And also a few times the audio just came through as static and not understandable but after playing with it got it to work again.Is development still being worked on for the app? Thanks again.
bman12479 said:
Is development still being worked on for the app? Thanks again.
Click to expand...
Click to collapse
Hi bman.
First thanks for your comments, those are always appreciated. I wrote the app for myself after knowing that some older non-Android phones and iPhone had this capability. Thanks to Android, the API allows to route audio through Bluetooth SCO although only in very recent versions of Android. Hopefully someday it will be better supported by the OS.
My app has an unexpected success since the beginning, however sales have decreased in the last few weeks. About half the people downloading the trial have ICS 4.0 which is not very well supported except for the TTS engine and nothing I can do to fix it yet.
I've pretty much stopped doing updates as the app has become stable enough on most devices; however I don't have much feedback from users and am not aware of all the bugs and if they are fixable. I'm still ready to publish fix whenever one is found.
Cheers!

AudioSink(323): received unknown event type: 1 inside CallbackWrapper

Hello.
I don't know if it's a phone problem or an Android one, but everytime I listen to music (tried only with mp3 files), after some time I have a very short gap in the audio signal.
Checking in the logcat I found AudioSink(323): received unknown event type: 1 inside CallbackWrapper !
Do you know how I can fix it?
It doesn't depend on the app I use for listening to music, happening with all the ones I've tried.
Thanks.
Luigi.
Alcatel Idol 3 4.7'' 6039Y
Android 5.0.2
Stock rom
Firmware 5.0.2-01005
Rooted
Did you try with different compression rated mp3s? According to google it's a bug that was fixed years ago and now it should be only appear as a very very short gap during playback which anyway I can hear when I use that terrible "Mix" app. "Folder Player" doesn't have any problem.
The bug is fixed by updating to the latest firmware version, 07. Also in developer's option, enable nuplayer instead of awesome player. However, with the latest firmware there is another bug concerning audio recording, something like a noise cancelling resulting in microcuts, very annoying. Hope Alcatel sends a fix soon.

Categories

Resources