[android-developers] Re: How to draw a circular region of a Bitmap?

2009-03-26 Thread Geoff Stromberg
Thanks, there were some helpful examples in the API Demos (I guess that's the purpose). For those curious, here's how I solved my problem: int targetWidth = 100; int targetHeight = 100; Bitmap targetBitmap = Bitmap.createBitmap( targetWidth, targetHeight,

[android-developers] Re: Can Intents contains Rich Java Objects?

2009-01-13 Thread Geoff Stromberg
For any Java type that implements interface Serializable, you can use the Intent methods: public Intent putExtra(String name, Serializable value) public Serializable getSerializableExtra(String name) There's also a bunch of more type-specific put/get methods on Intent. On Tue, Jan 13,

[android-developers] Re: Can Intents contains Rich Java Objects?

2009-01-13 Thread Geoff Stromberg
in-memory Java object like this or do they have to be from the same publisher? Thanks Inder On Tue, Jan 13, 2009 at 3:02 PM, Geoff Stromberg geoff.stromb...@gmail.com wrote: For any Java type that implements interface Serializable, you can use the Intent methods: public Intent putExtra

[android-developers] Re: How to start the standard MusicBrowserActivity?

2009-01-06 Thread geoff . stromberg
Thanks Alex, Your second suggestion is much like what I ended up doing. This launches the built in MediaPlaybackActivity and begins playing the desired track. However, I'm now trying to figure out to keep that track playing when you back out of the MediaPlaybackActivity. My problem is that when

[android-developers] How to start the standard MusicBrowserActivity?

2008-12-22 Thread geoff . stromberg
Hello, From within my application, I'd like to start the standard MusicBrowserActivity (found in Music.apk) which is built into Android. I want to start it programmatically, just as if the user had picked Music from the application launcher. The class for this Activity is:

[android-developers] ListView not receiving trackball focus if setContentView called asynchronously

2008-12-17 Thread geoff . stromberg
I have an Activity which has a ListView as its content View. I need to call Activity.setContentView after a short asynchronous delay from when Activity.onCreate is called (because there is a delay loading a network resource needed to fully construct the ListView's ArrayAdapter). In this case, it

[android-developers] How to attach source to classes in android.jar?

2008-11-20 Thread Geoff Stromberg
Hello, I'm using Eclipse ADT and have created a standard Android project (using the ADT wizard to do so). I would like to be able to browse from my source code into the source code for any Java class inside android.jar. I've downloaded the source code for the Android base Java APIs (git tag