Problem with Simple Audio Recorder Application : Android

by Jason » Sat, 07 Mar 2009 10:53:19 GMT


Sponsored Links
 Hi,

I have written a simple Application to record audio.

SD card is enabled in emulator using "./emulator -sdcard sd_card.img".
when i enter this command, it displays warning saying "Audio output is
failed".

the application runs properly but i cant see the recorded file.

output file is set to "sdcard/test.3gpp" (setOutputFile("/sdcard/test.
3gpp")).

earlier i used "environment.getExternalStorageDirectory()" option to
get the path.. den i could see the recorded contents in "Music - >
Songs" in Emulator. But when i tried to play those, it says format not
supported("sorry, the player doesnot support this kind of audio
file"). i pulled that file using ADB ( "adb pull local_file /sdcard/
remote_file") on to system and tried to play it but unsuccessful.

I have altered the Android manifest file to give the AUDIO permission
aftre the <intent filter >field in the file.

Plesae help me....

Thanks in Advance....

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Android API for retrieving list of apps in Market

I'm looking for a way to get a list of all the apps available in the
Android Market.  I'm guessing the market interfaces with some sort of
database that stores the information, so I'm hoping there's some sort
of API I could reference to retrieve this information.  This is so I
can work on a web market for Android for users to view outside their
handset.

--~--~---------~--~----~------------~-------~--~----~

2. Android Dev Phone - shipping to Canada?

So, I signed up for the Market, and then suffered a severe bout of Jaw
Drop when I saw that it was going to cost $264.19 to ship to Canada. I
quickly retreated from purchasing what had been looking like one hell
of an x-mas present for myself.

According to the Help/FAQ, the fee includes "applicable customs,
duties, import and country specific other fees". As anyone in Canada
ordering from the US knows, duties and taxes are levied somewhat
arbitrarily - it's not uncommon to receive something with no
additional taxes levied, despite accurate declared value that
technically warrants it. Even when they are levied, they are charged
through to the party receiving the shipment, and it's hard to see how
they could ever come in so high as to approach this up-front cost -
higher than *every* other country on the list.

Phone: 399.00 USD = 499.63 CAD
Shipping: 264.19 USD = 331.19 CAD (66% of the cost of the device!)
Total: 830.82 CAD :(

No regrets about joining the Market, as I am going to develop on this
platform in any case. I'm just disappointed that I won't be dabbling
with real hardware over the holidays, and I know other developers here
who are in the same boat - all willing to lay out the price of the
phone, but not about to pay 66% on top for shipping.

Can someone please take a stab at breaking down or otherwise
rationalizing this number, helping me (and other Canucks scratching
their heads and/or already being preyed upon by eBay sellers) to
understand this? For $18.99, I could have this next-day shipped to a
location in NY state a mere 5km away. Why are these heavy additional
charges rolled into the shipping cost, and why are the extra charges
for Canada so high relative to all other countries?

--~--~---------~--~----~------------~-------~--~----~

3. G1 usb drivers for linux

4. how to synchronize all status/controls in a widget on home screen with an activity in a application?

5. Making an SD Card-capable launcher.. possible?

6. emulator udp broadcast on host subnet?

7. Anyway to place camera preview onto xml defined surfaceview?