[android-developers] Re: over my head with data please help

2008-04-01 Thread Kyara11
Or, you could first categorize the items and present them hierarchically with a ListView like this http://i28.tinypic.com/vhb15h.jpg so that users can expand and collapse the hierarchy to select entries intuitively. Good lucks! Kyara On Mar 31, 9:45 am, dr123 <[EMAIL PROTECTED]> wrote: > t

[android-developers] Re: over my head with data please help

2008-03-31 Thread dr123
thank you anthony, that's what i did there was no other way... i have the user type in some letters and then try a LIKE %string% search... I hope this also help others cause the country/city thing is something common. On 31 Μαρ, 18:22, acopernicus <[EMAIL PROTECTED]> wrote: > Here's an excellent

[android-developers] Re: over my head with data please help

2008-03-31 Thread acopernicus
Here's an excellent ListView example with code for paging through large #'s of items. It's very similar to the music list in iTunes on the iPhone. http://devtcg.blogspot.com/2008/03/custom-android-list-view-widget-to.html Given that you have 18,000 entries though, I recommend a search field wit

[android-developers] Re: over my head with data please help

2008-03-29 Thread dr123
i did it with digit's suggestion xmlrpc and a few characters to narrow the search. thanks for the support ps this spinner fix is very important...you hear me google guys?:) On 29 Μαρ, 07:51, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > >and second and most important: > > >i can't find a way to pr

[android-developers] Re: over my head with data please help

2008-03-28 Thread Megha Joshi
>and second and most important: >i can't find a way to press the "r" key for example and the box >transfers me to the first city which starts with "r" This particular issue of not being able to select a list item with a shortcut key, "r" in your case, is being worked on. It will be fixed in a

[android-developers] Re: over my head with data please help

2008-03-28 Thread Digit
keep in mind that a desktop browser has a *lot* more memory and a lot more CPU than the one running on a cellphone 2008/3/28 dr123 <[EMAIL PROTECTED]>: > > > trie seems nice but the challenge is in two weeks :) > > i don't try to populate the spinner with 18000 entries, i have them on > my web pa

[android-developers] Re: over my head with data please help

2008-03-28 Thread dr123
trie seems nice but the challenge is in two weeks :) i don't try to populate the spinner with 18000 entries, i have them on my web page...but i find it strange that the browser from android has such a hard time reading the select box which a normal browser can read. xmmm On 29 Μαρ, 01:59, Digit

[android-developers] Re: over my head with data please help

2008-03-28 Thread Digit
You should use XMLrpc to only retrieve a small number of cities, based on the characters that the user has already typed, like what "Google suggests" implements. trying to read 18000 entries from the server is not going to work or even be fast. trying to populate a spinner with 18000 entries is ins

[android-developers] Re: over my head with data please help

2008-03-28 Thread dr123
The database has around 2 million records. as a text file it's more than half the disk space of the android. On 29 Μαρ, 01:12, Diego Pino <[EMAIL PROTECTED]> wrote: > I think you should rather store your data on a local sqlite database, > and access to it via a ContentProvider. > > You can use th

[android-developers] Re: over my head with data please help

2008-03-28 Thread Diego Pino
I think you should rather store your data on a local sqlite database, and access to it via a ContentProvider. You can use the method onKeyDown(int keyCode, KeyEvent event) to catch a key press event. You could then, query your data to retrieve a brief set of cities (set a LIMIT on your query) and