[android-developers] Help with AnimationDrawable

2009-01-21 Thread Brendan
I've tried everything I can think of and can't get this AnimationDrawable (from code, not XML) to work. Please let me know what I doing wrong. First, we have the regular simple app: public class Example extends Activity { /** Called when the activity is first created. */ @Override publ

[android-developers] Major Animation Frustration

2009-01-24 Thread Brendan
Ok, all I'm trying to do is figure out how to create a working AnimationDrawable in the code without XML. Can it really be that hard? I continue to run into issues with examples that are not complete enough (the samples provided in the SDK don't even have comments other than the copyright notice m

[android-developers] Re: Major Animation Frustration

2009-01-24 Thread Brendan
tem service. Several > example in ApiDemos show how to use addView() btw. > > > > On Sat, Jan 24, 2009 at 4:53 PM, Brendan wrote: > > > Ok, all I'm trying to do is figure out how to create a working > > AnimationDrawable in the code without XML. Can it really

[android-developers] Re: Major Animation Frustration

2009-01-24 Thread Brendan
o the canvas. Thanks again for helping me through the frustration! On Jan 24, 5:26 pm, Brendan wrote: > Thanks for the response, but maybe I should mention that I'm trying to > make a game here, so one of the big things is that I'm going to have a > lot of bitmaps interacting w

[android-developers] Loading Partial Subset of a Bitmap

2009-02-07 Thread Brendan
So I have a huge image (2000 x 2000) that is way too big for the Android VM to load in (there's a 16 MB limit per application). That's fine with me, as I only want to load in one screen size (320 x 480) at a time, which Android should more than be able to handle. The problem is, how do you load in

[android-developers] Is VideoView Broken?

2009-02-10 Thread Brendan
So I'm trying to do this: VideoView video_view = new VideoView(context); video_view.setVideoPath("res/raw/movie.mp4"); video_view.setMediaController(new MediaController(context)); video_view.requestFocus(); video_view.start(); Seems simple, but even with video files that I've

[android-developers] Re: Is VideoView Broken?

2009-02-11 Thread Brendan
ot;/sdcard/movie.mp4" (or whatever directory you put > it in on the SD card). > > On Feb 10, 11:21 pm, Brendan wrote: > > > So I'm trying to do this: > > >     VideoView video_view = new VideoView(context); > >     video_view.setVideoPath("res/raw/mo

[android-developers] MediaPlayer plays sound but screen is black

2009-02-14 Thread Brendan
I'm just trying to play a local video that is a resource with the MediaPlayer class in the most simple way possible. I have confirmed that the video works with players that I download from the marketplace, so I'm assuming that's not the issue. The problem is that I just get a black screen with no

[android-developers] Re: MediaPlayer plays sound but screen is black

2009-02-14 Thread Brendan
Wow that sounds really convenient. Since the signature of the MediaPlayer.create() that takes a SurfaceHolder requires the second argument to be a URI and not a resource id, I tried creating a URI for the resource by doing this: Uri uri = Uri.parse("android.resource://com.example.www/" + R.raw.vi

[android-developers] Re: MediaPlayer plays sound but screen is black

2009-02-14 Thread Brendan
source? Or something else I'm forgetting to do that would make prepare mysteriously kill the entire process? On Feb 14, 3:16 pm, Marco Nelissen wrote: > On Sat, Feb 14, 2009 at 3:01 PM, Brendan wrote: > > > Wow that sounds really convenient. Since the signature of the > > M

[android-developers] Re: MediaPlayer plays sound but screen is black

2009-02-14 Thread Brendan
this helps anyone else who was having similar issues. On Feb 14, 4:38 pm, Marco Nelissen wrote: > I think you have to use the SurfaceHolder callbacks to find out when the > surface has actually been created, and *then* call setDisplay/prepare/start > > On Sat, Feb 14, 2009 at 4:28 PM, Br

[android-developers] How can I determine if app is running on the emulator or a device.

2008-04-02 Thread Brendan
Is there someway in code to tell if an application is running on the emulator, on the device. I can't see how it coul dbe checked. Maybe there is something in SystemProperties? If not, it would be a useful extra flag to have available in a future version of the SDK. --~--~-~--~~--

[android-developers] missing broadcast intents

2010-06-30 Thread Brendan
Hi, I was just working on an app that will do stuff when a call is missed or made; and am left wondering why do you have to register a listener using a long lived background service for phone state changes instead of being able to use broadcast intents? Thanks for any insights, Brendan -- You

[android-developers] How to get notification of sms thread creation / deletion?

2011-03-07 Thread Brendan
ther. How should I register for thread create / delete events? Thanks, Brendan -- 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 gro