Results 1 to 4 of 4
  1. #1
    driiper is offline Member
    Join Date
    Apr 2012
    Posts
    25
    Rep Power
    0

    Default Storing a 2D Array in Android

    Hello!

    Im currently working with a project at school where i'm scraping some html into a 2D array (String[][] arr = new String[250][3];). But if i were to scrape everytime i start the app i would take about 2 minutes before the user could start using it.

    So my question is:

    Is there any way i could store this information in a File or somthing? ive looked at multiple examples on the net serializing objects etc, or using the .putString() function. but none of these methods seems to fit my needs.

    Anyone know how i would proceed storing a array? it can be in any format, as long as it get stored and can be loaded up again at start..

    Thank you!
    Driiper

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,755
    Rep Power
    19

    Default Re: Storing a 2D Array in Android

    Why would serialising the array be a problem?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    driiper is offline Member
    Join Date
    Apr 2012
    Posts
    25
    Rep Power
    0

    Default Re: Storing a 2D Array in Android

    Quote Originally Posted by Tolls View Post
    Why would serialising the array be a problem?
    it's probably not a problem at all, just not sure on how i would do it :/
    Pretty new to serializing overall.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,755
    Rep Power
    19

    Default Re: Storing a 2D Array in Android

    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Storing array?
    By LifeElixer in forum New To Java
    Replies: 7
    Last Post: 04-14-2011, 06:10 AM
  2. Storing coefficients into an array
    By shanus180 in forum New To Java
    Replies: 4
    Last Post: 03-01-2011, 10:34 PM
  3. Storing in an Array
    By Bascotie in forum New To Java
    Replies: 10
    Last Post: 10-15-2009, 05:12 AM
  4. storing a string in an array
    By tiyani in forum New To Java
    Replies: 3
    Last Post: 08-12-2009, 07:25 PM
  5. storing strings into an array
    By anthonym2121 in forum New To Java
    Replies: 2
    Last Post: 04-04-2009, 07:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •