Ok I installed the apk straight from the link - I see the two blue rects above (foo, bar), then the toast - but the toast is empty (guess cause it really is returning null on my device). This is really weird! Thanks for sending that sample project to verify!
On Nov 15, 8:15 pm, Mark Murphy <mmur...@commonsware.com> wrote: > Mark Wyszomierski wrote: > > Oh I'm running 1.5 too, but I think that should be fine. > > Grab this project: > > http://commonsware.com/misc/WeightDemo.zip > > or, here's an APK: > > http://commonsware.com/misc/WeightDemo-debug.apk > > Install and run it. Ignore the layout -- that's from some other scrap > test I had run before. If you get a Toast with a gibberish alphanumeric > value, that's from: > > Secure.getString(getContentResolver(), Secure.ANDROID_ID) > > in the activity. If you get null, or it blows up, then something may be > messed up with your device. I have run this code on a G1 (1.6), Ion > (1.5), and Hero (1.5), and they all work. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, $35/Year -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en