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
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
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
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
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
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
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
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
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
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
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
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.
--~--~-~--~~--
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
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
14 matches
Mail list logo