[android-developers] Re: Google Maps API hidden maps and opengl

2010-11-14 Thread Nicholas Albion
There's an opensource port of Android on GitHub which includes a (slightly dated) implementation of the Google maps API. It supports OpenStreetMap and a couple of other map sources. I managed to adapt it to support Bing maps. On Nov 14, 7:14 pm, Adam Hammer adamhamm...@gmail.com wrote: I have

[android-developers] Re: Device's User-Agent from Application

2010-07-15 Thread Nicholas Albion
Although systems like WURFL use the user agent to identify mobile devices and their capabilities, it's actually an identifier of the browser, not the device. Your PC may be a Mac, or a Windows box running on an AMD, Intel 486 or i7 - the user agent isn't going to reveal a lot about this - perhaps

[android-developers] Re: Best practice to pass persistent objects from an activity to another activity

2010-07-04 Thread Nicholas Albion
You could cache objects in your Application subclass and pass the DB pk or Preferences key in the intent. If you've already got the object in memory, just grab the cached instance, otherwise you can load it from the DB or Preferences (if your application has been killed and restarted) On Jul 4,

[android-developers] Re: How to Draw route on Google map? not to use DrawPath

2010-06-24 Thread Nicholas Albion
Try one of these links to decode the polyline http://facstaff.unca.edu/mcmcclur/googlemaps/encodepolyline/ http://jeffreysambells.com/posts/2010/05/27/decoding-polylines-from-google-maps-direction-api-with-java/ -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-24 Thread Nicholas Albion
What's showing on your map? What coordinates to you expect? -- 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] Re: MapView does not work in HTC Hero

2010-05-03 Thread Nicholas Albion
Do you have a Google maps API key that coresponds to MD5 certificate fingerprint used to sign the app? http://code.google.com/android/add-ons/google-apis/mapkey.html http://code.google. com/android/maps-api-signup.html -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: The emulator running terrible slow in win2008r2 64bit with 4G RAM

2010-04-28 Thread Nicholas Albion
Every time I start the emulator, I open Windows Task Manager, right- click the emulator process and set the affinity to all processors. -- 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] Re: How to warn user when back button is pressed to navigate out of my application?

2010-04-27 Thread Nicholas Albion
My first thought was to suggest that you rethink if you really need to do this - maybe your app isn't going to be as important to your users as you may think. But then, I been frustrated in the past by games which exit in the middle of the game if you press too far right... Maybe you should

[android-developers] Re: XmlPullParserException: expected: START_TAG

2010-02-03 Thread Nicholas Albion
If you determine that the problem is that the XML (or HTML!) is badly formatted and you have no control over it, you can do something like: int n; while( (n = xpp.getNext()) != END_DOCUMENT ) { try { // do your parsing element-by-element } catch( org.xmlpull.v1.XmlPullParserException e )

[android-developers] Re: ADC2 Results?

2009-12-01 Thread Nicholas Albion
I would definitely focus on simplicity and polish if there's another ADC. Yes, so perhaps it should be renamed from a Challenge to a Gimmick Fest? -- 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] Re: ADC2 Results?

2009-11-30 Thread Nicholas Albion
Why are there not URLs provided for _any_ of the winning apps? I'd like to get in contact with the developers of AnyStop but the google search results are full of blogs which are basically cut-and-pasted from the ADC2 results. -- You received this message because you are subscribed to the

[android-developers] Re: Dynamic pin overlays in MapView.

2009-10-29 Thread Nicholas Albion
No, you can add/remove, but if you insert or remove you need to set the last selected index to -1. On Oct 30, 8:45 am, Tim tdh...@gmail.com wrote: Hi, I've been reading the (shoddy) documentation for the Google Maps API (MapActivity et al), and I think I have roughly worked out how it

[android-developers] Re: ADC 2 rating

2009-10-26 Thread Nicholas Albion
Unfortunately, I seem to have made a fatal mistake of placing a mandatory user registration form as one of the first Activities. I only had 50 people actually register (some with fake email addresses which I'm actually okay with, given the circumstances), and out of those only 3 or 4 people

[android-developers] Re: ADC2: Low volume of judges

2009-09-27 Thread Nicholas Albion
36 visits (80 hits) for page 1's audio. My application requires that users register using the application before they can use it (probably a mistake as far as the competition goes, but unavoidable in practice). I've had about 15 people register, and only one of those has bothered to progress

[android-developers] Re: MapView with itemizedOverlay still don't work

2009-09-07 Thread Nicholas Albion
You need to call: mapOverlays.add( itemizedOverlay ); also, if you're adding/removing overlay items to/from ItemizedOverlay, you may need to call setLastFocusedIndex(-1) (or whatever the method is). I think in your case you won't need to worry with this as you only call addOverlay and

[android-developers] Re: Too many PNGs in res/drawable?

2009-09-06 Thread Nicholas Albion
that, but I wasn't able to figure it out. Thanks. On Sep 2, 10:08 pm, Nicholas Albion nalb...@gmail.com wrote: Can you use transparent images, super-imposed to refactor your 5000 images to (for example) 5 + 10 + 10 + 10 = 35 rather than 5 * 10 * 10 * 10 = 5000? On Sep 3, 11:48 am

[android-developers] Re: Too many PNGs in res/drawable?

2009-09-02 Thread Nicholas Albion
Can you use transparent images, super-imposed to refactor your 5000 images to (for example) 5 + 10 + 10 + 10 = 35 rather than 5 * 10 * 10 * 10 = 5000? On Sep 3, 11:48 am, markh23 mr.markhop...@gmail.com wrote: Thanks for the help guys.  I appreciate the time you took, Dianne, to write out that

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-31 Thread Nicholas Albion
Me too! I uploaded it, filled out the description and pressed save. The developer console site said that it was uploaded but not submitted. I then checked that my profile details were right, cancelled out of that and went back to submit. The developer's console site says No applications

[android-developers] Re: Test on a real HTC Magic via the web

2009-08-30 Thread Nicholas Albion
How do you install an application on the Perfecto remote devices? Do you have to install from android Market? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Changes to ItemizedOverlay

2009-08-08 Thread Nicholas Albion
What are the best practices with regards to modifying the elements within an ItemizedOverlay after calling populate()? I noticed that it doesn't seem to handle removals of items from the middle of the list as I had hoped. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Australian Android Developers - Drop me a line

2009-07-30 Thread Nicholas Albion
I googled for Sydney Android Developers User Group and it came up with nothing but this post. Do you have a link? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] CustomButton

2009-06-01 Thread Nicholas Albion
I'm trying to create a simple on a black background view with 2 (maybe 3) clickable images which toggle between 2 graphics each depending on whether they are clicked or not. My code is below, I have the following issues: 1) Using StateListDrawable, I can get the buttons to change state when