Android :: Getting Amount Of Audio Data Buffered In Device

Apr 5, 2010

I am trying to write a streaming application.I have my own decoder and I am playing PCM audio using AudioTrack. At any point in time I want to know how much data is buffered with the device. I want to use this so that if the data with the device go below a level, I want to go into a buffering mode where I will buffer 2-3 seconds of data before continuing playback again. Can someone please tell me how to do this?

Android :: Getting amount of Audio data buffered in device


Android :: Approach To Cache Large Amount Of Textual And Audio Data / In Android Application

Jul 13, 2010

We are supposed to cache textual and audio data in our application until device is booted or maximum of two days, whichever happens earlier. To get a perspective on data to be cached, note that we are to store about 200 text headers containing around 10 fields, each of length 30 bytes and about 20 sound files each about a minute long.We are getting the textual data by parsing XMLs and then we keep them in ArrayLists. The sound files are directly written inside the app storage using File I/O (and not on SDcard or Apps Cache directory).This application is to be run on devices running Android 1.5 or later.I understand, and please correct me if I am wrong, that we can cache the files either on SDcard or inside the application or inside applications Cache directory.

View 2 Replies View Related

Android : How To Get Data About All Audio Files In Device Using MediaAudio

May 4, 2010

I've been trying to understand how to get data about all the audio files in the device using MediaAudio but unfortunately the documentation is far from clear. Also, there´s almost nothing about it on the forum right now and I couldn´t find good resources over the internet.

I´ve seen pretty quick and objective examples on how to access the main information from the containers but I couldn´t find in any place how I could get the names of the tracks (MediaStore.Audio.AudioColumns doesn´t have an specific constant for it) and the most important, how I could retrieve the path for the media (audio file in this case) I´ve found using the info on MusicStore.Audio.

am I missing something here? It seems it should be so easy but I can´t find the info! Also if I change any data on the container, will this data be also changed in the real file as well?

You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 4 Replies View Related

General :: How To Know Correct Amount Of RAM On Android Device

Feb 27, 2014

I have some doubt about the amount of RAM in my Android device . Not sure if it has 256 MB or 512 MB ​​. I was able to run through a terminal in android : cat / proc / meminfo

Apparently I have approximately 466MB of RAM. If so will I have 512 MB. The question comes because if I run the command "free" or if I see from the above command in LowTotal line, only tells me 233 MB ...

What is the correct information in RAM for my device? I did the same procedure to another cell which mine where I'm more sure of having 512 MB ​​of memory and this is what I get: URL>...The funny thing is that it shows me 584 MB of MemTotal and the same amount for LowTotal. It seems my device, the first , is not using the total amount of RAM available.

View 3 Replies View Related

Android : Creating App Database With Big Amount Of Data

Dec 23, 2009

The database of my application need to be filled with a lot of data, so during onCreate(), it's not only some create table sql instructions, there is a lot of inserts. The solution I chose is to store all this instructions in a sql file located in res/raw and which
is loaded with Resources.openRawResource(id).

It works well but I face to encoding issue, I have some accentuated caharacters in the sql file which appears bad in my application. This
my code to do this : Code...

The solution I found to avoid this is to load the sql instructions from a huge static final string instead of a file, and all accentuated characters appears well.

But Isn't there a more elegant way to load sql instructions than a big static final String attribute with all sql instructions?

View 4 Replies View Related

Android :: How To Pass Large Amount Of Data During StartActivityForResult

Nov 3, 2009

From one activity, I want to pass a lot of data (about 1MB of Strings).I tried sticking it in Intent.putExtra(ArrayList<String>), but if I put in too much data, I get "FAILED BINDER TRANSACTION".What's the easiest way? I don't want to publish a service, or use the file system. I really want a pipe that can write data from one end and read it from the other end. I can handle the case where the starter Activity dies while the "startee" activity is trying to read from the pipe.

View 6 Replies View Related

Android :: SQLite Handle Large Amount Of Data?

Jun 26, 2010

I will be making a mobile application in Android. My application is like Google Map's Get Direction feature, but a lot more complex, so I need to store data about points in the map. So I'm worried that SQLite may not be able to handle these large amount of data(or considering the limited storage of the phone). I have no background in SQLite so please bear with me.

View 3 Replies View Related

HTC Desire :: Amount Of Data Useage

May 12, 2010

I have decided to go to a smartphone on 13th June when my present contract expires. My Query is, I am in the U.K. and if I look at contracts for the iphone they normally include unlimited Wifi and 1Gb of wireless data, whereas the Desire seems to come with only 500Mb of wireless.

I would much prefer to get a Desire, but I am concerned that I could be lumbering myself with excess charges if I go over the 500Mb limit.

I have never had a phone with an Internet connection before so I'm sure that there will be a lot of playing going on at least to start with.

View 25 Replies View Related

Motorola Droid X :: Uses Same Amount Of Battery / Data Regardless Of Whether

Aug 2, 2010

I was wondering if the weather app that Moto has built in still uses the same amount of battery/data regardless of whether or not it is on the home screen. I took the widget off the home screen and stopped the weather process and it just comes back anyway. So the weather process is still running in the background. I'd like to use the weather widget, but don't want to deal with battery drain. Bad enough my phone has reset itself twice in the last 24 hours.

View 2 Replies View Related

HTC Desire HD :: What Application Using Huge Amount Of Data? (Internet Usage)

Nov 25, 2010

So I've had my DHD for 3 days, done a little 3G browsing the usual stuff Facebook, emails etc., but nothing more as I used my home WiFi for the widget and app downloads. But today I got a text from Vodafone saying I was near my internet usage limit for the Month! Within 3 days!? I have a 750MB limit, which the chap in the shop assured me was enough to keep me happy as 'no one ever goes over that.'

I was happy with that even though my previous contract was unlimited internet as he said it would be ok. All I can think of is the email syncing, so turned that off. But what else could be causing me to go over the 750MB limit within 3 days? Surely thats a huge amount to be used?

View 12 Replies View Related

Samsung Captivate :: Does Switching To 2G Lessen Amount Of Data Usage?

Sep 13, 2010

Maybe a rookie question, but here goes.I've seen a lot of posts about where to find an app/widget that allows you to switch between 3G and 2G. My question is: why would I want to do this? Does switching to 2G lessen the amount of data usage (which could be important, considering I'm on AT&T's 200 MB plan)? Or is there some other benefit/reason for doing this?Related: I have the SwitchPro widget, which has a 3G-2G switch available -- does this mean I am able to switch if I want to?

View 5 Replies View Related

HTC Droid Eris : Ways I Can Watch My Data Usage - Since I Have A Limited Amount

Nov 11, 2010

Just got my first android phone, the eris! I'm really excited, if anyone could help me out with some tips please do! are there ways i can watch my data usage, since i have a limited amount?

View 8 Replies View Related

Android :: "Best" Droid Devs Device Which Supports Largest Amount Of Platforms?

Mar 5, 2010

I'm developing an Android application in my school department. We are interested in purchasing a Developer Device to have more testing capabilities than the Android emulator has offer. Which one supports the largest amount of platforms? Which one is faster, more reliable?. What should I be looking for?

If you could give me some info about this or tell me some of your developing-on-device experiences.

View 3 Replies View Related

Android :: OpenGL ES Flickering - Double Buffered

Oct 3, 2009

I'm trying to clean up some rendering issues for a 3D game -- CowPotato (http://www.cyrket.com/package/ com.froogloid.android.cowpotato).

Basically I'm seeing some flickering, like the next frame is getting flushed before everything is drawn. It is definitely the last few items in my display list that seem to flicker -- if I reorder the list, it's always the last part of the list that flickers.

I understand that the GLSurfaceView automatically provides double- buffering -- it certainly appears to be the case looking at the source. So any suggestions as to why I might be seeing flicker? I put counters into the drawing methods to make sure that all the objects are called each frame, they just don't show up on screen all the time.

View 18 Replies View Related

Android :: Buffered Input Stream Buffer Size

Jul 5, 2010

I use BufferedInputStream in my code: socket = new Socket(ip, Integer.parseInt(port)); socket.setReceiveBufferSize(64000); output = socket.getOutputStream(); input = new BufferedInputStream(socket.getInputStream(), 64000); I read incoming packets like this: if (input.available() != 0) { System.out.println("Get Packet: " + input.available() + " bytes"); byte[] b = new byte[input.available()]; input.read(b); incParser(b); }

View 2 Replies View Related

Android :: Best Approach To Show Big Amount Of "grid" Data In Droid?

Mar 15, 2010

I am building an application for Android (1.5) that, after quering a webservice, shows to the user a big amount of data that should be displayed in a "grid" or "table" style.

I must show a result of about 7 columns and 50 rows (for example a customer list with names, addresses, telephone number, sales amount last year and so).

Obviously, the 7 columns will not fix in the screen and I would like the user would be able to scroll up/down and LEFT/RIGHT (important because of the number of columns) to explore the grid results.

cell selection level is NOT necessary, as much I would need row selection level.

What is the best approach to get this interface element? Listview / GridView / TableLayout?

View 5 Replies View Related

Android :: Decode MP3 Audio Data To PCM Audio Format In Android

Dec 9, 2009

I am streaming an MP3 audio and instead making this MP3 audio to play, I want it to be converted to PCM format and pass this PCM audio to AudioTrack(as it takes PCM data as input.) instead of passing my MP3 stream to MediaPlayer. Can anyone please help me to convert the MP3 to PCM stream?

View 3 Replies View Related

Android :: Listing / Data / Data Device Contents

Feb 1, 2010

I'm trying to get a list of folders in /data/data that starts with "totalcross". Is this possible? All i get is "permission denied". All these folders are signed with the same key and have the same user id.

View 5 Replies View Related

Android :: Intercept Audio Stream On Device?

Jul 8, 2010

Let's suppose that we have the following scenario: something is playing on an android device (an mp3 par example, but it could be anything that use the audio part of an android device). From an application (android application :) ), I would like to intercept the audio stream to analyze it, to record it, etc. From this application (let's say "the analyzer") I don't want to start an mp3 or something, all I want is to have access to the audio stream of android. Any advice is appreciated, it could a Java or C++ solution.

View 1 Replies View Related

Android :: Audio Only While Streaming Mp4 File To Device

Jul 11, 2010

I 've set Wowza streaming server to stream mp4 videos to Android phones. Android phone can play the RTSP stream successfully but here It only plays audio of the file not the video.

View 1 Replies View Related

Android :: Streaming Audio From Computer To Device Via Bluetooth Possible?

May 21, 2010

I want to stream audio directly from my mac via bluetooth to my nexus one. This might sound crazy, but I actually want to be able to control the audio from my mac. I just want to be able to connect an audio jack to my nexus one and let it stream the audio via bluetooth. Is there an app for that?

View 4 Replies View Related

Android :: Way To Use Droid Phone As A Wireless Audio Device?

Sep 11, 2010

This is my first time posting but i had a pretty interesting question. Is there a way, to connect my phone to my Pc through bluetooth or wifi and you is as remote audio device. Meaning I am playing a movie on my computer but I am laying in bed with my headphones pluged into my phone and hearing all the sound.

View 1 Replies View Related

General :: Android Bluetooth - Stream Audio To Another Device?

Jan 10, 2013

getting one Android device to be able to stream its audio to another Android device. Specifically I want to stream music but I'd also like notification sounds and other audio to stream.

I have a second, older phone, that I am repurposing.

View 1 Replies View Related

Android :: How To SetRouting - And DoRouting Which To Select Endpoint Audio Device Is Implemented

May 14, 2009

I want to add one more endpoint audio device in android and am trying to modify the setRouting() functions to support the selection of the new added audio device. As far I traced, the doRouting() in class AudioHardwareOss should perform the audio endpoint device selection. However, donRouting() just returns NO_ERROR without any other functionalities. So, my question is where and how endpoint audio device selection is achieved.

View 2 Replies View Related

Android :: How To Use Dpad Button To Pause / Play Audio While Device Locked?

Nov 24, 2009

I have an application that is playing audio, and I would like to allow the listener to toggle between pause and play while the screen is locked, as it is a hassle to have to unlock the screen in order to pause the audio playback. Is there any way to monitor for KeyEvent.KEYCODE_DPAD_CENTER while the the screen is locked? I have been looking through the documentation but have not found any information on how to do this.

View 12 Replies View Related

Software Which Can Copy All Audio And Video Files From Android Device To System?

Dec 2, 2013

I've to develop a software which can copy all audio and Video files from Android device to System

What to cover first, either linux kernel or android system interface.

Do I need to learn linux kernel programming or android system interface only

This backup could be possible from one of the medium via USB cable or WiFi or other form of connectivity.

View 1 Replies View Related

Android :: Processing Raw Audio Data

Apr 10, 2009

I want to develop an app that lets one intercept raw audio data sent for playback (possibly by a different app), and apply audio enhancements over this raw data.Does Cupcake allow such filtering of audio data? If so, which API should I use? I understand this may not be possible at an application level for security reasons.I'm trying to see if this is possible with native code linking to public or private API of Android.

View 3 Replies View Related

Android :: Getting PCM Data From Built-in Audio Decoders

Jun 27, 2009

First of all, sorry for my bad english. I'm new into Android application development, just experimenting with the emulator and the SDK. I have searched with some keywords on the developer group, but i didn't find what i need. I'm searching for classes which with i can do simple audio DSP on locally stored audio files. e.g. i like to do crossfade/overlap on MP3 files, and an overall automatic gain control/ equalization on the realtime mix . As i see i can use the AudioTrack class to send raw PCM data to the audio hardware, so i could implement the DSP in java, but i don't see any way to use the internal decoders to grab decoded PCM frames from encoded audio files (like MP3, OGG, AAC). I thought about using Java decoder implementations like JLayer to do the decoding but that's a very CPU intensive approach which is not good for e.g. a media player application which runs in the background. Is there any classes for using the platforms builtin decoders, or should i "port" some available decoders with NDK to my application?

View 5 Replies View Related

Android :: How To Capture Audio Data From Mic Into A Buffer?

Sep 24, 2009

I am working on a packet switched network. I want to capture the audio data from mic into a buffer at a desired sample rate.How can I capture the audio data from mic into a buffer instead of a file? Also how can I control the audio capture rate as per the desired sample rate?

View 2 Replies View Related

Android :: Audio Native Player - Device Automatically Stops Playing Current Media

Aug 21, 2010

Invoked device native player to play audio file, it opens android native player on top of the application but when selecting to back out or return to the application, device automatically stops playing the current media.

Sample code:

Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file),"audio/*");
startActivity(intent);

How can I implement so that Device should continue to play audio in the background when selecting to back out or return to the application

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved