[android-developers] Re: Android autogenerated R file
Ναί, ναί, μιλώ Ελληνικά, αλλά γράφω πολύ καλύτερα. Καί καλά
καταλαβαίνω όταν ο Παπάς διαβάζει τον Ευαγγέλιον στην Εκκλεσία, που
είναι πολύ εύκολα για μένα η όταν ομιλεί ο ομιλητής. Μα δεν είμαι
αυτός 'Ελληνας.
Anyway, now that you are mentioning the need to handle SO many shops,
I have to retract my earlier suggestion (yes, I know others suggested
it too) of using one big XML file; you should use a database instead.
Doesn't the existing website already use a database? Is it sqlite3 or
something fancier?
If the existing database is using Oracle or MySQL, you would have some
translating to do to get into something Android's sqlite3 would
recognize. But you could skip the database and do a web interface that
accesses the database on the server over the web, and then wrap that
in a ContentProvider.
Another architecture often used is to write special PHP code on the
server to translate from MySQL to whatever you want the Android phone
to talk too, such as JSON or XML. http://www.helloandroid.com/tutorials/connecting-mysql-database
has an example of this approach, but it is very simplified. The main
thing I don't like about this approach is that it hits the network so
often, incurring possibly long wait times for tiny pieces of data. But
you may find it suits your situation better than one big XML file, and
better than copying the whole database onto the phone. But at least
the database will store all that data in flash instead of RAM.
On Sep 1, 11:53 pm, LiTTle <littlep...@gmail.com> wrote:
> As I have read xml parsers load all the content to the memory. Our
> purpose is to put all Patra's shops in this application. Patra has
> approximately 10000 shops! Each shop has street,telephone,fax etc
> (have 8 parts of data) so whole data will be 80000! It is really big
> xml to load to memory and also it is harder to maintain the data!
>
> Indicator Veritatis, do you speak greek?Are you from Greece?
--
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home