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.

Android :: SQLite handle large amount of data?


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 :: 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 :: Inserting Large Volumes Of Data Into SQLite

Sep 2, 2009

I need to insert approximately one million rows of data (spread over 4 tables) - each row has one or two numeric fields, and two or three text fields (normally quite short). Single-column indexes on all the fields. After doing some tests on the emulator with a small test set, I extrapolated (assuming the last row will be inserted with a similar speed to the first row) my results to figure out that this would take about 15 hours (I have a Core 2 Duo running Vista). However, then I tried running the small test set on my Hero and I was surprised to see it run more than four times faster. I would guess it would take about 3 hours on the Hero. Alternatively, I could make the pre-populated database available as a download on the first run but this is likely to be a 120MB download. I have a few questions I'm hoping someone can help me with: 1. SQLite performance on the actual device being 4-5 times faster compared to the emulator - is this normal/expected? 2. Do the figures above generally sound fast/slow/normal (sorry this is so vague)? 3. From a user perspective - would it be best to provide a 120MB download or a 3 hour "first-time initialisation" step (plus 6MB download)?

View 14 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 :: Which Is Faster When Reading Large Amounts Of Dat /: XML Or SQLite

Jul 26, 2010

I will be developing a dictionary app for both Android and iPhone. The data will be embedded within the app, and it consists out of approximately 100000 words, with genus and plural form. Is it better to use a SQLite database or can I just stick to XML? Somehow SQLite sounds more efficient, but I thought let's just ask.

View 3 Replies View Related

Android :: Slow Searching In Large Sqlite Database ?

Jun 30, 2009

I have a large(ish) database - around 30MB, created offline with 400,000 rows. Doing a simple select (name LIKE pattern%) and then showing the query in a listview takes about 10 seconds. I tried indexing that field but no difference. If this is normal I will just use a raw data file and do a binary search myself. If this is not normal I hope someone has a hint or two to what might be wrong.

View 15 Replies View Related

Android :: Read LARGE Sqlite File To Be Copied Into Emulator - Or Device From Assets Folder

May 28, 2010

I guess many people already read this article:

Using your own SQLite database in Android applications: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-2/#comment-12368

However it's keep bringing IOException at

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

I'am trying to use a large DB file. It's as big as >8MB. I built it using sqlite3 in Mac OS X, inserted UTF-8 encoded strings (for I am using Korean), added android_meta table with ko_KR as locale, as instructed above.

However, When I debug, it keeps showing IOException at

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

I suspect it's caused by trying to read a big file. If not, I have no clue why.
I tested the same code using much smaller text file, and it worked fine.

Can anyone help me out on this? I've searched many places, but no place gave me the clear answer, or good solution. Good meaning efficient or easy.

I will try use BufferedInput(Output)Stream, but if the simpler one cannot work, I don't think this will work either.

Can anyone explain the fundamental limits in file input/output in Android, and the right way around it, possibly?

WITH MORE DETAIL:

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

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 :: 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 :: Caching Large Arrays To SQLite - Java / Android

Jul 28, 2009

Im currently developing a system where the user will end up having large arrays( using android). However the JVM memory is at risk of running out, so in order to prevent this I was thinking of creating a temporary database and store the data in there. However, one of the concerns that comes to me is the SDcard limited by read and write. Also another problem that comes to mind is the overhead of such an operation. Can anyone clear up my concerns, as well as also suggest a possibly good alternative to handling large arrays ( in the end these arrays will be uploaded to a website by writing a csv file and uploading it).

View 1 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 : Can Droid Handle Data?

Jun 8, 2010

I have just gotten my first Android based device, the HTC Droid Incredible.

I am not new to the world of smartphones (I have owned a Blackberry and have worked on many other Blackberries), but I am new to the whole world of Android.

I really do like it so far, but I have a question...

How does Android handle data? What I mean by this question is this: Does Android use a store and forward approach to sending data (emails)? Or does it send it out and if it doesn't have a good connection, it will just fail out, never to try again?

And based on the fact that it uses data, I also assume that it will never lose it's data connection even though a cell phone tower might be buried under voice calls?

The reason I ask this is because during 9/11, many people's cell phones could not make or receive calls but those who had some of the first Blackberries were able to send and receive emails just fine due to the store and forward approach.

Also, another reason is that this device will be used in a SHTF type of situation due to it's capabilities and I want to make sure that it will work with data (sending emails), although I may not be able to make voice calls with it.

View 1 Replies View Related

Android :: Large Data File / How To Deal With It?

Dec 10, 2009

My application needs to intensively manipulate (read-write) on some structured text data.The size of the data is significant 1Mb. And there is initial data available for the user to start with.My idea is to put this data as a file in the .apk. Then, on initial application launch to read this data and populate Android SQLite database with it. Then just work with this database. But after the database is populated the data file is no longer needed. And I'd like to remove it to free some memory. Alternate approach is to work with this data file instead of SQLite database. But I assume SQLite would work a magnitude faster then i/o on my data file..

View 16 Replies View Related

Android :: Deploy Large DB With APK To Import Data?

Jan 21, 2009

My application may consist og 100Kb code and 800 Kb Database content. If I include a datafile with the 800Kb data and import it into an SQLite database under the initial run of the applcation, I cannot delete the data file afterwards and my application will take up 800 Kb unnecessarily. Is there a better way to include/import my data....? (I want my application to not depend on being online after download - so the data should be downloaded with the application.

View 14 Replies View Related

Android :: Best Way To Handle Preserving Data From Spinners

Jun 14, 2009

This is a general architectural question. I want to offer a user a simple two page form. The first page will have a few Spinners for the user to select options from. The second page will have a series of EditTexts for the user to fill in. After the second page, the user clicks a button to generate a text file based on the values they have input. My question is: What is the best way to handle preserving the data from the spinners on the first page of the form, in order to place them into the text file? I feel like the "architecture" should be something like this: 1. User selects Spinner values on first page and clicks button to move to next page of form.. 2. Spinner values are placed in database 3. User fills in EditTexts on second page. Clicks button to generate text file. 4. Database is queried for Spinner values, which are added to newly created text file, then EditText values are added Does this strategy make sense? Does anyone have advice on a better way of handling the gathering of two pages of form input then using it to create a text file? The user would need to be able to flip back and forth between the form pages as needed.

View 4 Replies View Related

Android : How To Handle Data Output In An Observer?

Apr 8, 2010

I have an Observable and an Observer. The observable does download some stuff in a background thread and calls notifyObservers to let the observers read the status. At some point in public void update the observer tries to updates the GUI Is there some way I can prevent this from happening? I'm sure I'm missing something obvious here.

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

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 : Way To Handle Camera Preview Data Without A SurfaceView?

Mar 25, 2009

I want to receive the data from the preview of the Camera, but without having to set a SurfaceView with a SurfaceHolder in the view of my application. I want to do something like this: Camera cam = Camera.open(); cam.setPreviewCallback(new MyPreviewCallback()); cam.startPreview(); This will not work because I need to call setPreviewDisplay (SurfaceHoler) before I start the preview. I can get a SurfaceHolder from a SurfaceView, but I don't want a SurfaceView, because I don't need one. I just want to handle the preview data by myself.

View 2 Replies View Related

Android :: Binding List Views To Large Data Sets

Feb 1, 2010

I need to be able to scroll through a list with (up to) 20K rows, backed by a cursor on a read-only db. Testing 20K rows on a G1, the query takes approx .02s regardless of table size, while binding the adapter to the list takes 4.5s. Note that this is before the view calls used in rendering. What makes the binding delay more troublesome is that it blocks the UI thread, and is incurred on every rotate. Combine these, and doing a rotate just after starting the bind results in a delay up to 9s.

I tried lazy loading with a base adapter, but that hits the same delay in the underlying cursor.getCount(), and the overall user experience isn't ideal. I also considered using an ArrayAdapter, adding synthesized objects from the cursor rows, but then I'd incur the overhead of creating up to 20K objects (not to mention the additional memory requirements).

View 18 Replies View Related

Android :: Handle Unexpected Internet Disconnect While Downloading Data

Mar 31, 2010

I have here a function that downloads data from a remote server to file. I am still not confident with my code. My question is, what if while reading the stream and saving the data to a file and suddenly I was disconnected in the internet, will these catch exceptions below can really catch that kind of incident? If not, can you suggest how to handle this kind of incident?

I call this function in a thread so that the UI won't be blocked.

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

View 1 Replies View Related

Android :: Java.lang.OutOfMemoryError When Download Large Data From Website

May 30, 2010

when i download large data from website, i got this error information:

I/global (20094): Default buffer size used in BufferedInputStream constructor.
It would be better to be explicit if an 8k buffer is required.
D/dalvikvm(20094): GC freed 6153 objects / 3650840 bytes in 335ms
I/dalvikvm-heap(20094): Forcing collection of SoftReferences for 3599051-byte al
location
D/dalvikvm(20094): GC freed 320 objects / 11400 bytes in 144ms
E/dalvikvm-heap(20094): Out of memory on a 3599051-byte allocation.
I/dalvikvm(20094): "Thread-9" prio=5 tid=17 RUNNABLE
I/dalvikvm(20094): | group="main" sCount=0 dsCount=0 s=0 obj=0x439b9480
I/dalvikvm(20094): | sysTid=25762 nice=0 sched=0/0 handle=4065496

View 1 Replies View Related

Android :: Want To Save Data On Web Server / Send Request And Handle Response?

Aug 16, 2010

I want to save the data on the web server. I have data in XML format and I know the URL String. Please tell me how can I send the request and handle the response.

View 1 Replies View Related

Android :: How To Handle Application Upgrades From Free To Paid Version / While Preserving Any Data

Jun 10, 2010

I want to have a free version and a premium version of the same application. When people buy the application, I want them to be able to "upgrade" without losing their data, i.e. the premium version should install over the free version.I want to use the same code base and just switch a setting to build the premium version.
Andoid Market does not let me convert a free app to a paid app, so the trivial option is not available.I am curious if someone has tried this successfully. How does Android Market identify an application - will it think that the premium version is a different app and just install it in parallel?

View 2 Replies View Related







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