[android-developers] web browser and dialog theme
Hi, I have an acivity which opens another floating activity which opens a web browser intent. After the back button from the webbrowser there is the floating activity and beneath it there are the checkered squares and not the first activity. Any thoughts as why this is happening? can i do something not very complex? thanks, aris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: status bar
True but this isn't like an MDI form with children , or a webpage with frames. Anyway, thank's for the help it's the way i'll do it. On 31 Μαρ, 21:34, hackbod <[EMAIL PROTECTED]> wrote: > You could just have a a standard view showing this information, which > is included in the layout of each of your activities. > > On Mar 31, 11:04 am, dr123 <[EMAIL PROTECTED]> wrote: > > > any idea how i can have a "permanent" view independent of activities > > much lika a status bar on a windows program (not the mobile phone's > > status bar with icons). > > It is meant to have info about the program status and the user's > > points for example and that can be updated from a service. > > > I thought about having an activity that is constant and have all the > > other activites with less height value so that the first is visible, > > but it doesn't sound like a good idea :P > > > any thoughts? > > > thanks, > > aris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] status bar
any idea how i can have a "permanent" view independent of activities much lika a status bar on a windows program (not the mobile phone's status bar with icons). It is meant to have info about the program status and the user's points for example and that can be updated from a service. I thought about having an activity that is constant and have all the other activites with less height value so that the first is visible, but it doesn't sound like a good idea :P any thoughts? thanks, aris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: over my head with data please help
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 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... > > Given that you have 18,000 entries though, I recommend a search field > with auto-population of options based on queries back to the server. > I.e. have user type a letter and then display only cities beginning > with that letter. > > Best of luck, > Anthony --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: over my head with data please help
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 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 > future release of the SDK. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: over my head with data please help
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 <[EMAIL PROTECTED]> wrote: > 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 insane, not only is > it bad UI but a waste of resources. > > if you absolutely want to store the data on the device, you should consider > a packed binary format that's amenable to lookups and serial access. I guess > that a trie would be very appropriate here > (seehttp://en.wikipedia.org/wiki/Trie) > > 2008/3/28 dr123 <[EMAIL PROTECTED]>: > > > > > 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 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 populate the Spinner > > > using and ArrayAdapter. Just an idea... > > > > On Mar 28, 11:05 pm, dr123 <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > i'm again the guy with the 8mb question. actually it's not 8mb it's a > > > > little larger but here is my problem to which i can't get any > > > > solution. > > > > > I need to have the user choose his country and then populate > > > > "something" with all the cities of the country. > > > > In order to be exact, i have a database with 18000 cities for greece > > > > only for example. > > > > Going through that kind of text or html file is not feasible as it > > > > would have to take extreme space and memory. > > > > > I tried two solutions: > > > > first one is having the database on my server and collecting the data > > > > through xmlrpc. this fails cause the data is bigger than the > > > > kxmlrpclitent can hold (or some other limitation but in the debugger > > > > it only gets a couple of hundred cities or so). > > > > > the second one is better (i think): > > > > i open up a php page on my server with webkit that has all the cities > > > > and i can easily see them with a normal browser. > > > > > *BUT*: the android browser (at least the one that opens with a new > > > > intent and a uri) > > > > translates the html combobox into something like a spinner. this is > > > > extremely slowly generated (i wait for minutes before it opens up and > > > > have to press the button 2-3 times) 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". > > > > Noone can scroll down a list with 18000 cities. > > > > > I know i should get something with less cities but first of all that's > > > > the only database that has all the cities (i wouldn't want only the 10 > > > > bigger cities cause in the united states for example that would also > > > > be some thousands). > > > > > My app which is going for the challenge (i'm in a hurr) is a > > > > social app *depends* on good geographical selection (not gps , i > > > > know). > > > > > any help *very* appreciated --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: over my head with data please help
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 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 populate the Spinner > using and ArrayAdapter. Just an idea... > > On Mar 28, 11:05 pm, dr123 <[EMAIL PROTECTED]> wrote: > > > Hi, > > i'm again the guy with the 8mb question. actually it's not 8mb it's a > > little larger but here is my problem to which i can't get any > > solution. > > > I need to have the user choose his country and then populate > > "something" with all the cities of the country. > > In order to be exact, i have a database with 18000 cities for greece > > only for example. > > Going through that kind of text or html file is not feasible as it > > would have to take extreme space and memory. > > > I tried two solutions: > > first one is having the database on my server and collecting the data > > through xmlrpc. this fails cause the data is bigger than the > > kxmlrpclitent can hold (or some other limitation but in the debugger > > it only gets a couple of hundred cities or so). > > > the second one is better (i think): > > i open up a php page on my server with webkit that has all the cities > > and i can easily see them with a normal browser. > > > *BUT*: the android browser (at least the one that opens with a new > > intent and a uri) > > translates the html combobox into something like a spinner. this is > > extremely slowly generated (i wait for minutes before it opens up and > > have to press the button 2-3 times) 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". > > Noone can scroll down a list with 18000 cities. > > > I know i should get something with less cities but first of all that's > > the only database that has all the cities (i wouldn't want only the 10 > > bigger cities cause in the united states for example that would also > > be some thousands). > > > My app which is going for the challenge (i'm in a hurr) is a > > social app *depends* on good geographical selection (not gps , i > > know). > > > any help *very* appreciated --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] over my head with data please help
Hi, i'm again the guy with the 8mb question. actually it's not 8mb it's a little larger but here is my problem to which i can't get any solution. I need to have the user choose his country and then populate "something" with all the cities of the country. In order to be exact, i have a database with 18000 cities for greece only for example. Going through that kind of text or html file is not feasible as it would have to take extreme space and memory. I tried two solutions: first one is having the database on my server and collecting the data through xmlrpc. this fails cause the data is bigger than the kxmlrpclitent can hold (or some other limitation but in the debugger it only gets a couple of hundred cities or so). the second one is better (i think): i open up a php page on my server with webkit that has all the cities and i can easily see them with a normal browser. *BUT*: the android browser (at least the one that opens with a new intent and a uri) translates the html combobox into something like a spinner. this is extremely slowly generated (i wait for minutes before it opens up and have to press the button 2-3 times) 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". Noone can scroll down a list with 18000 cities. I know i should get something with less cities but first of all that's the only database that has all the cities (i wouldn't want only the 10 bigger cities cause in the united states for example that would also be some thousands). My app which is going for the challenge (i'm in a hurr) is a social app *depends* on good geographical selection (not gps , i know). any help *very* appreciated --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] 8mb file
Is an 8mb file included with my app too much of a space? it is a text file with the list of all cities in the world. aris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: bug in calendar?
duh thanks, never thought i'd be caught unprepared like that :) On 24 Μαρ, 14:26, Robert Dorrian <[EMAIL PROTECTED]> wrote: > This is one of those weird Java things. Months are counted from 0, not > 1, so month 2 is March. > > On Mar 24, 12:01 pm, dr123 <[EMAIL PROTECTED]> wrote: > > >c1 = Calendar.getInstance(); > >c1.setTimeZone(TimeZone.getTimeZone("GMT")); > > >String nowDate = ((Integer)c1.get(Calendar.YEAR)).toString() > > +"-"+((Integer)c1.get(Calendar.MONTH)).toString()+"-"+ > > ((Integer)c1.get(Calendar.DAY_OF_MONTH)).toString()+" " + > > ((Integer)c1.get(Calendar.HOUR_OF_DAY)).toString()+":"+ > > ((Integer)c1.get(Calendar.MINUTE)).toString()+":"+ > > ((Integer)c1.get(Calendar.SECOND)).toString(); > > > this produces the string 2008-2-24 11:59:23 when the month is March > > (pc time is ok, emulator time is messed up??) > > > aris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] bug in calendar?
c1 = Calendar.getInstance(); c1.setTimeZone(TimeZone.getTimeZone("GMT")); String nowDate = ((Integer)c1.get(Calendar.YEAR)).toString() +"-"+((Integer)c1.get(Calendar.MONTH)).toString()+"-"+ ((Integer)c1.get(Calendar.DAY_OF_MONTH)).toString()+" " + ((Integer)c1.get(Calendar.HOUR_OF_DAY)).toString()+":"+ ((Integer)c1.get(Calendar.MINUTE)).toString()+":"+ ((Integer)c1.get(Calendar.SECOND)).toString(); this produces the string 2008-2-24 11:59:23 when the month is March (pc time is ok, emulator time is messed up??) aris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---