[android-developers] Google APIs client id and client secret

2011-11-10 Thread Jon Shemitz
I'm accessing the Picasa web service APIs *via* Yaniv Inbar's com.google.api.services.picasa code. I also created a Client Id and Client Secret using the Google APIs Console https://code.google.com/apis/console. I can't quite figure out how I am supposed to pass these credentials to Picasa! My

[android-developers] Re: transparent images

2011-08-11 Thread Jon Shemitz
setBackgroundDrawable() sets the Drawable to use as a background; it doesn't draw on top of the existing background. To do what you want, you'll have to load the opaque background, draw the transparent overlay on top of it, create a BitmapDrawable from the composite image, then use that as your

[android-developers] Launch Contacts app from widget, want Back to ALWAYS go Home

2011-08-11 Thread Jon Shemitz
I have a widget that displays contacts and/or phone numbers, based on things like Calendar events. When the user touches a tile, my widget gets a broadcast (so that I can do some logging) and then builds an Intent to start an Activity that launches the Contacts/Dialer app, using

[android-developers] Re: Launch Contacts app from widget, want Back to ALWAYS go Home

2011-08-11 Thread Jon Shemitz
Well, this is very embarrassing. I must have gone through the list of Intent flags a dozen times before posting, yet right after posting I made one more pass and spotted Intent.FLAG_ACTIVITY_NO_HISTORY, which does exactly what I want. -- You received this message because you are subscribed to

[android-developers] Re: Poor SQLite implementation? first time data access way to slow

2010-12-10 Thread Jon Shemitz
On a previous generation of smartphone hardware, a 1msec difference in db access on an UML [User Mode Linux] emulator turned into a whole second difference on a Zylonite board. So a 120x difference between desktop hardware with a hard disk and an Android device with flash memory doesn't seem at

[android-developers] Copy a database from a retail phone to a development phone?

2010-11-29 Thread Jon Shemitz
I have a need to examine the contacts and call log databases. My development phone has no contacts; it also has no SIM card, and hence no calls. I need realistic data, so I can't just add some random garbage. The obvious answer is to copy the database from my personal (2.1u1 retail build) phone to