[android-developers] Re: Android autogenerated R file

2011-09-02 Thread Indicator Veritatis
Ναί, ναί, μιλώ Ελληνικά, αλλά γράφω πολύ καλύτερα. Καί καλά καταλαβαίνω όταν ο Παπάς διαβάζει τον Ευαγγέλιον στην Εκκλεσία, που είναι πολύ εύκολα για μένα η όταν ομιλεί ο ομιλητής. Μα δεν είμαι αυτός 'Ελληνας. Anyway, now that you are mentioning the need to handle SO many shops, I have to retract

[android-developers] Re: Android autogenerated R file

2011-09-02 Thread blake
Like the rest of the people that have responded, here, I'm a bit dubious about this use case. It seems to me that these strings are either essentially part of the code, in which case you should use R... references to them, or part of the data, in which case they should be in a property file, DB, o

Re: [android-developers] Re: Android autogenerated R file

2011-09-02 Thread Nikolay Elenkov
On Fri, Sep 2, 2011 at 10:29 PM, LiTTle wrote: > Nikolay I cannot understand! > Could you be more specific about "pre-GB devices,512, IIRC"? > Or could you send me a link to read the whole article/document? Don't have a document, you need to look at the source. Experiment to get details, but I th

[android-developers] Re: Android autogenerated R file

2011-09-02 Thread LiTTle
Nikolay I cannot understand! Could you be more specific about "pre-GB devices,512, IIRC"? Or could you send me a link to read the whole article/document? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to a

Re: [android-developers] Re: Android autogenerated R file

2011-09-02 Thread Nikolay Elenkov
On Fri, Sep 2, 2011 at 8:32 PM, Mark Murphy wrote: > On Fri, Sep 2, 2011 at 7:25 AM, TreKing wrote: >> On Fri, Sep 2, 2011 at 1:53 AM, LiTTle wrote: >>> >>> It is really big xml to load to memory and also it is harder to maintain >>> the data! >> >> Use pull parser to skip to the parts you need

Re: [android-developers] Re: Android autogenerated R file

2011-09-02 Thread Daniel Drozdzewski
On 2 September 2011 13:08, LiTTle wrote: > There 2 reasons I didn't use database: There are 2 reasons why you should consider it: > 1. I cannot imagine a helpful scheme of tables to use! ...that does not mean that such schema does not exist. Your data model will depend on what data you store a

[android-developers] Re: Android autogenerated R file

2011-09-02 Thread LiTTle
There 2 reasons I didn't use database: 1. I cannot imagine a helpful scheme of tables to use! 2. I want my colleagues to have the ability to add new shops easily! It's easier to tell them to do some copy-paste work. In case I use db they have to download a db browser, execute any sql command (if

Re: [android-developers] Re: Android autogenerated R file

2011-09-02 Thread Mark Murphy
On Fri, Sep 2, 2011 at 7:25 AM, TreKing wrote: > On Fri, Sep 2, 2011 at 1:53 AM, LiTTle wrote: >> >> It is really big xml to load to memory and also it is harder to maintain >> the data! > > Use pull parser to skip to the parts you need or probably better, use a > database if your set is so large

Re: [android-developers] Re: Android autogenerated R file

2011-09-02 Thread TreKing
On Fri, Sep 2, 2011 at 1:53 AM, LiTTle wrote: > It is really big xml to load to memory and also it is harder to maintain > the data! > Use pull parser to skip to the parts you need or probably better, use a database if your set is so large and you need to randomly look stuff up. ---

[android-developers] Re: Android autogenerated R file

2011-09-01 Thread LiTTle
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 1 shops! Each shop has street,telephone,fax etc (have 8 parts of data) so whole data will be 8! It is really big xml to load to memory and also

[android-developers] Re: Android autogenerated R file

2011-09-01 Thread Indicator Veritatis
Google will let you hang yourself with the rope they provide -- if you really insist on doing that. But as Mark said early on in this thread: don't do that. The R file really should be used ONLY by the system itself to translate resource names/ids to Java namespaces. If the application developer re

[android-developers] Re: Android autogenerated R file

2011-09-01 Thread LiTTle
I am going to use multiple xml files with simple parsers or database. In the back side of my mind I know that's bad. But I wanted to ask if this is accepted. I thought that maybe it is a feature that Google let it happen. That's all. Thanks again everyone. -- You received this message because you

Re: [android-developers] Re: Android autogenerated R file

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 8:28 AM, LiTTle wrote: > Do you have any good idea? Database? - TreKing - Chicago transit tracking app for Android-powered

Re: [android-developers] Re: Android autogenerated R file

2011-09-01 Thread Mark Murphy
On Thu, Sep 1, 2011 at 9:28 AM, LiTTle wrote: > And the R file is the faster because I tell: var > street=R.array.FirstStreetShop+10 > and the value returned to me in no time! What part of "do not do that" is beyond your understanding? > If I use simple xml file it will be a big one and it will

[android-developers] Re: Android autogenerated R file

2011-09-01 Thread LiTTle
My answer is never uploaded! -- 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+unsubscr...@googlegroups.

[android-developers] Re: Android autogenerated R file

2011-09-01 Thread LiTTle
I am using this xml file for array. Thanks for the conversation! Here is the whole problem. We have this website www.patra-city-guide.gr. Here we have some categories with subcategories with shops (31 for now). Every shop has address,site,mail etc. So actually I need an array that have these shops

Re: [android-developers] Re: Android autogenerated R file

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 8:08 AM, LiTTle wrote: > But the problem is if I > want to call every string I have to create over 100 'if' blocks. One > 'if' block is going to be inside the other. But, now I know that the > variable I want is the 31st for example, so I say to my code int > varWanted=R.ar

Re: [android-developers] Re: Android autogenerated R file

2011-09-01 Thread Mark Murphy
On Thu, Sep 1, 2011 at 9:08 AM, LiTTle wrote: > In the future maybe I am going to use a lot of string (specials for > me) elements (now I use only 249 variables). Why are they string-array resources? If you are planning on internationalizing them, use an XML resource, which gives you better iter

[android-developers] Re: Android autogenerated R file

2011-09-01 Thread LiTTle
In the future maybe I am going to use a lot of string (specials for me) elements (now I use only 249 variables). But the problem is if I want to call every string I have to create over 100 'if' blocks. One 'if' block is going to be inside the other. But, now I know that the variable I want is the 3

Re: [android-developers] Re: Android autogenerated R file

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 7:54 AM, LiTTle wrote: > I could build an array that contains the variables! OK. And again ... the purpose of that would be ... what? - TreKing

[android-developers] Re: Android autogenerated R file

2011-09-01 Thread LiTTle
I can parse the variables I want from the R file without knowing the name of every variable! I could build an array that contains the variables! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-de