java - Which file format should I use for storing short[] -


i have long short[], multidimensional, want store in file in android app. @ first tried store these arrays in java class, returned "code large" error.

therefore have find new file format store these arrays in (pre compile), values can stored shorts save space.

which file format recommend, , how go reading it, application?

1) if it's repeated data - use sqlite http://developer.android.com/training/basics/data-storage/databases.html

2) if still prefer file use dataoutputstream http://developer.android.com/reference/java/io/dataoutputstream.html

3) can serialize array , save file how serialize object , save file in android?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -