[android-beginners] Re: Google Maps on Android
Did you sign up and configure your application specific maps developer key? dave On Wed, May 27, 2009 at 10:52 AM, simonfro...@googlemail.com wrote: > > Hello Everybody! > > I currently getting started with developing for Android and I was just > doing the "MapView Tutorial" from http://developer.android.com. I > managed to get it all working, except I can't see an actual Google-Map > on my emulator. Instead I'm only seeing that grid, so that I'm > assuming the emulator has some problems connecting to the internet. > Are there some settings that have to be changed in order to let my > emulator use the internet connection of my computer? > > Thanks in advance! > Simon > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Best practice for AsyncTask when screen is rotated
So I have an AsyncTask that is being used to perform a simple http request in the background. As a constructor argument to the task, I pass a reference to the current activity and use methods on the activity to manipulate which gui elements are shown in the onPreExecute(), and onPostExecute() method calls. Now due to the fact that android tears down and rebuilds an activity when the screen is rotated, the UI is not properly updated based upon the AsyncTask as the refernce to the activity is no longer valid. Its not really clear to me how to handle this case. I'm also worried that this could lead to memory leaks. Any suggestions etc. would be appreciated. thanks, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: 500kb OPML parsing issues
Use a SAX parser to parse the XML, see http://developer.android.com/reference/javax/xml/parsers/SAXParser.html. Dave On Tue, Jun 9, 2009 at 7:36 PM, renegadea...@googlemail.com wrote: > > Right this is the problem. I am trying to find specific words within > this large OPML file which content is > > :http://news.bbc.co.uk/rss/feeds.opml > > The file is a large list of rss feeds for various bbc news items - and > I need to parse it to find specific feeds. > > Currently I am doing it as follows: > > http://pastebin.com/m15e0ea5f > > This is fairly fast if i search for say "celtic" however if you enter > "w00f" and run the command it will be disgustingly slow. > > Can anybody demonstrate how I can parse this opml file using the > android xml parsers please - because i have tried, and tried, and > tried and cannot get it to do it! > > Cheers > > Andy > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Best practice for polling a remote resource periodically
Hi All, I'm starting to write an app that will periodically poll an HTTP resource and use the data to update a View. My initial thought process on how this will work is that on application startup, my activity will spawn a worker thread that will maintain an object model of the data and update it as necessary. Ideally this thread would publish back to the UI thread that the data has changed and the UI thread would read the object model and update the view. I'm not too familiar with Android's architecture to support threading and messaging between threads, so I was wondering if there was a good up to date tutorial etc. that someone could point me to. Thanks, Dave ps. In the past I've used AsyncTask but i don't think it will meet my requirements as the UI thread would need to maintain a timer to kick off an AsyncTask. Ideally I'd like to isolate these two parts of the application as much as possible. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: XML Parser
XML Pull Parser is great. See http://developer.android.com/reference/org/xmlpull/v1/package-summary.html. Gives you the streaming benefits of SAX but is much easier to work with imo. Dave On Mon, Jul 20, 2009 at 11:32 AM, Victor Pantoja wrote: > > Hi > > I'm using SAX for parsing some XML files. > > I was wondering if there is a better way to do this like DOM. > > What do you guys use? > > Regards, > Victor > > 2009/7/20, Oliver Rennfort : >> Hi all I have now several books for android. And had to find out that most >> of them are not great due to the fackt that they all handle 1 or 2 projects >> to cover some info. But now my last purchase was a hit. >> >> And for the price of 35$ you get uptodate pdf books what have almost all >> topic in it what you coud need and also easy to follow source code .. >> >> Thank you to the writer mark muphy here from the forum. Have a look at his >> webpage for more details. >> >> Www.commonssware.com >> >> Android Apps Developer >> >> > >> > > -- > Enviado do meu celular > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Mulittouch in android?
Short answer is that the device driver supports it but the functionality is not exposed in the Java API. The hero most likely uses a hack see: http://groups.google.com/group/android-platform/browse_thread/thread/209b512a9fdf7367?pli=1 for the gruesome details. Dave On Wed, Jul 22, 2009 at 7:41 AM, Android wrote: > > Hi, > > Is the multitouch now enabled in android? - I've seen a hero with > multitouch and zoom gesture..is it enabled in the new devices? > > > 10x > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Parsing Namespaced XML with XMLPullParser
Can anyone point me to a good example of parsing namespaced XML (similar to atom) with and XMLPullParser. Google searching has been somewhat unfruitful so far. thanks, dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---