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.

Android :: Approach to cache large amount of Textual and audio data / in Android application


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

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 :: 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?

View 5 Replies View Related

Android :: Best Approach To Transfer Large Video Files Into Byte Array?

Apr 8, 2010

Please could anyone suggest an approach for transferring a >2MB video from a ContentResolver into a Bytestream, without running out of memory?
See question: http://stackoverflow.com/questions/2599305/android-outofmemoryerror-w...

Here's the current code, which throws an OutOfMemoryError on the byteBuffer.write(buffer, 0, len) line when transferring large videos:

// get bytestream to upload videoByteArray = getBytesFromFile(cR, fileUriString);
public static byte[] getBytesFromFile(ContentResolver cR, String fileUriString) throws IOException { Uri tempuri = Uri.parse(fileUriString);
InputStream is = cR.openInputStream(tempuri);
byte[] b3 = readBytes(is); is.close(); return b3;
}

View 18 Replies View Related

Android :: Application Cache Data?

Oct 20, 2010

I'm trying to understand the way android handles my application cache data....Some times i'll go in there and the cache directory is 6-7mb. What type of data is stored there? Is there a way in the mainifest I can say don't use cache or clear cache at Xmb ?

View 5 Replies View Related

Android :: Application Requiring Large Data Files

Jun 10, 2009

I am working on an android app that needs to act on a few data files totaling around 30MB. I put together a test and the emulator failed with OutOfDiskSpace. Debugging on a device failed with even a smaller data size. After reading through the google groups, it appears that the application size limit isn't stated anywhere and nobody from google has been forthcoming with specifics about this. Given that there are iPhone apps that are over 100MB in size, putting such a small limit on Android apps seems weird, except just for the fact that you have a relatively small amount of total available app storage space (< 100MB).What techniques do you use to deal with this limit? If you have an app that needs more than 10MB, do you put it on a web server and deal with downloading it the first time? If so, how do you handle access control so that only your app can get the data?

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

Android :: Draw Path On MapView From Large Amount Of Longitude/latitude Points

Aug 2, 2010

I am writing a application that needs to draw a "route" comprised of lots of GPS points (long+lat). The points are close together and don't follow roads, simply drawing a line between each point is ideal.

The current implementation I have is very slow as I am looping over all the GPS coordinates and creating a new Point and overlayitem in an itemized overlay. This takes around 20 seconds for it to load all of these points and draw them to the mapview. Is there a way in which I can construct a series of lines or point from the GPS coordinates and draw them onto the mapview?

Example of current implementation:

CODE:...................

View 2 Replies View Related

Android :: Child TextView In ScrollView With Large Amount Of Text Pushes Other Views Off The Screen

May 6, 2009

I am trying to create an activity layout that has a top level vertical linear layout like so:

CODE:................

This works ok as long as the wordDefinition text isn't very long. But, when I set the text to something very long, it pushes the back button off the bottom of the screen. Why? Isn't the ScrollView supposed to scroll the text in the child TextView?

I've tried playing with weights (e.g., giving the top text view a weight of .2, the scroll view a weight of .7 and the button a weight of .1, but to no avail.

View 4 Replies View Related

Android :: Where To Globally Keep / Cache Data Needed For All Application Lifecycle?

Nov 17, 2010

I'm fairly new in Android/Java programming, so some of the basic stuff is still quite confusing. So, lets say my application gets all data (articles) it requires from external XML files, it parses them to data models (Article class) and those articles will be used (displaying in lists or single article) all over the application for all it's lifecycle.

Where should I keep them? Can I create singleton class with an array containing all the articles I've parsed? Or should I save them to database and then query it on demand? (that sounds like too much work, I don't need to cache them for now) What's the best practice here?

View 2 Replies View Related

Android :: App Builds Up Large Cache

Aug 17, 2010

When I test my app, I notice that after some use it has built up a fairly large cache of several Mb. I see this when I go to Menu-

View 9 Replies View Related

Android :: Best Approach For Requesting Data (internet Connection)

Sep 28, 2010

I have an app in which there are several requests to a server in internet (http), for example to retrieve images in threads outside the main UI process. The thing is that I have a Thread that manage the request with a while(!end) loop and in the end a Thread.sleep(500) that checks if there are new unhandled requests. As I read here [1] I know that this is not a good practice. And users have complain about ANR (app not responding) in several cases.

Knowing that obviously I want to refactor all the way my app manage the requests and I want to do that the best way. So, the question is; what is the best approach for doing this? A service? a broadcast receiver and send intents when I need a request to be handled?

View 6 Replies View Related

Android :: How To Approach Tabs In Application?

Nov 24, 2010

I am looking to create an Android application that uses Tabs.

Requirements
- When a user selects a tab and gets back to the same tab, there shouldn't be a loading period (preferably).
- Each tab will contain a listview.
- In one of the tabs, I will have to use subtabs. And that's it.

One great example I really liked (although I didn't try the app) is
http://www.usatoday.com/android/.

View 2 Replies View Related

Android :: Best Approach To Build Same Application For Different Public?

Jul 29, 2010

I'm working on an app that is meant to be used by fans of a sport team. In the future, I expect to use the same app but for any different team. So, what changes would be the colors, team logo, app name and the like. So, is there any technique that allows me to build binaries for different teams without having duplicated resources?

View 4 Replies View Related

Android :: Best Approach To Port Application To Windows?

Aug 18, 2010

I used Eclipse with the Android SDK to develop the original application. I ask since this was my first Java (and Eclipse, and Android, and XML) project. I assume that most of the Java should run on the PC without too much trouble. I may want to restructure the code to isolate the Android specific functions. Should I stay with Eclipse or move to something like NetBeans?

View 3 Replies View Related

Android :: How Do You Approach Various Devices Your Application Runs On?

Jul 23, 2010

For my first application, the only testing I've really done to this point is on my Droid X. I want to think through the various hardware differences and come up with a testing plan that is representative of the Android landscape. My initial thought is to create a list of emulators that have unique qualities such as screen size and SDK levels. I've noticed very quickly how the UI of my application will need some adjustment when viewed on devices that don't carry a 4.3" screen. How have you approached this hurdle in your own development? Chris Stewart cstewart...@gmail.com http://www.androidsdkforum.com *Want to advertise your Android application for free? Email me for details!*

View 9 Replies View Related

Android :: Advice Needed On Application Approach

Nov 2, 2009

I'm a total newbie to Android (and to Java in general... mostly a PERL/ PHP guy here...), so forgive me if I use the wrong terminology to refer to things... I have been asked by my company to implement an application for Android that allows a user to enter a note at the end of every call. E.g., either they or the other party hangs up, immediately a notes area pops up with a "save" button and if they enter a note, the note is saved with a reference to the call log entry. As I understand it, onCallStateChange() will give a pretty good indicator of a hangup if the state has become Telephony Manager.CALL_STATE_IDLE. I've figured out how to do the UI part, how to save it in a database, etc... My question, however, is about how I implement this "listening" aspect of it. Should I have a service running all the time that has an instance of android.telephony.PhoneStateListener? If so, do I use the onBind or onStart method, and how do I make sure it doesn't go away when memory runs low? Or can I somehow attach the listener to this event, and then terminate? Or is a Broadcast Receiver the way to go?

View 16 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 :: What Is Best Approach To Develop Multi-platform Mobile Application?

Jun 4, 2010

We need to make an application that runs on iPhone, Android and BB. What is the best approach to write the least ammount of code? I know about some frameworks but I am not sure the best approach.

View 5 Replies View Related

Android :: Retain Application / Activity State Correct Approach?

Dec 22, 2009

I just read from internet to maintain the state of my application by overriding the onKeyDown function as given below. And set the launch mode of my activity as singleInstance. And it is working perfectly. Just want to know if it is correct approach. And how it is different from onSaveInstanceState.

View 3 Replies View Related

Android :: How Should I Approach Making Server-side Software For An Application?

Nov 3, 2010

In the past I have used Python for backend stuff along with Django for frontend stuff, but I don't know how well those two work with Android. Can anyone recommend a good way to go about making server-side software that works well with Android? Please take into account that I also want a web application as a frontend, so the backend should work with both the web app and the Android app.

View 1 Replies View Related

Android :: What Is Best Approach To Manage Small SQLite Database Private To Application?

Feb 27, 2010

What is the best approach to managing a small SQLite database private to the application? Open (getWritableDatabase)in OnStart and close in OnStop in each Activity?Open in OnCreate and keep open til the user quits the app (where would you put close?) Open, do work and close as soon as possible each time it is needed?

View 5 Replies View Related

Android :: Play Audio From Stream / Stored Cache File

Feb 10, 2010

How to play audio from a stream in android? I will get input stream from an online link( like continuous FM). I need to cache the stream and play it. I searched a lot in sites,,,but didnt get.They show option of playing from a stored file. There is no option to play from a stream.

View 2 Replies View Related

Android :: Best Approach To Send Data From Server To Android Device

Jan 16, 2010

I am developing an Android app that needs to communicate bi-directionally with a server. By that, I mean either the server or the device can send a message at any time, with an arbitrary amount of time in between messages. Sending data from the device to the server is a common and I think well understood task, but I'm not as sure what the best approach is to go in the opposite direction from the server to the device.

I think having the device periodically poll the server may be a bad idea due to latency and the drain on the battery, but I'd be willing to consider this option. My plan at the moment is to send text messages from the server via an email-to-SMS bridge, and to have my app run a service to receive and handle these messages.

The question I have is if there are any best practices for this scenario, and if using text messages has some downsides that I have failed to consider. For the sake of this question, I want to assume that users have an unlimited text data plan, so paying per text won't be an issue.

View 2 Replies View Related

Android :: Application To Limit Messages By Contact / Amount

Oct 17, 2010

I would like to limit my messages per person to 300 or so, not limit the total number of my texts, or by date. Anyone know of an app for this? Some of my conversations come up extremely slow on the stock messages app due to nearing k messages between that person and myself. Using a Hero if that matters.

View 6 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

Android :: Best Approach To Write A FaceBook Application For Android

Jan 23, 2010

BackGround: There are Facebook APIs(and SDKs) available to develop applications for other Mobile devices like iPhone, BlackBerry etc, but it seems there are no official ones for Android(?).

People have ported Java APIs to work on Android and have written FaceBook Client applications(FaceBook dev: Wiki Page). Apparently, there is also a light weight FaceBook SDK in alpha release for Android(a la FBRocket). But it is not avised to be used in Production.

Since these FaceBook functionalities have been exposed as REST based service, most of work would invove sending requests in desired format over Http. So, writing a FaceBook client app for Android certainly is doable.There are similar applications already in market e.g.: Bloo.

Questions: When asked to write a FaceBook client application what approach should one undertake? Should we choose the SDK or invoke the services over Http?

If there is already a Web application that integrates with FaceBook, can we just browse to that Application from inside a WebView and be done with this?

View 1 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







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