Problem with continuos animation of children on long press of keys in a Viewgroup.

by Romain Guy » Fri, 06 Mar 2009 15:57:25 GMT


Sponsored Links
 You should NOT start animations from other threads,






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Detect Audio from microphone

Hello,

i want to detect input from microphone in my application.
Similar to how they use it in the application Steamy Windows,
where they detect blowing into the microphone to make the window
steamy again.

So far i only found tutorials on how to save audio from the
microphone,
but i don't need to save it. I just need to know when there is an loud
input.

thx in advance
Chris

--~--~---------~--~----~------------~-------~--~----~

2. rtsp stream not playing in 1.5

I'm trying to use the following code to play an H.264 RTSP video
stream from a network camera on Android "1.5 CUPCAKE 150240":

-----

    final MediaPlayer mp = new MediaPlayer ();
    try
        {
        // motion jpeg (I tried this too, but don't think Android
supports motion jpeg)
        //mp.setDataSource ("http://server/axis-cgi/mjpg/video.cgi");

        // h264
        mp.setDataSource ("rtsp://server/axis-media/media.amp?
videocodec=h264");
        mp.prepare ();
        mp.start ();
        }
    catch (final IOException ioe)
        {
        AlertDialog.Builder builder = new AlertDialog.Builder (this);
        builder.setMessage (ioe.toString ()).setCancelable
(false).setPositiveButton (
            "OK", new DialogInterface.OnClickListener ()
                {
                    public void onClick(
                        DialogInterface dialog, int id )
                        {
                        dialog.cancel ();
                        }
                });
        AlertDialog alert = builder.create ();
        alert.show ();
        }

-----

What happens is Android just shows "java.io.IOException: Prepare
failed.: status=0x1" in the dialog. When I run Wireshark, I see the
following conversation:

-----

OPTIONS rtsp://192.168.0.61/axis-media/media.amp?videocodec=h264 RTSP/
1.0
CSeq: 0
User-Agent: PVCore/05.02.00.00
ClientChallenge: 9e26d33f2984236010ef6253fb1887f7
PlayerStarttime: [28/03/2003:22:50:23 00:00]
CompanyID: KnKV4M4I/B2FjJ1TToLycw==
GUID: 00000000-0000-0000-0000-000000000000

RTSP/1.0 200 OK
CSeq: 0
Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER,
TEARDOWN
Date: Sun, 21 Dec 2008 16:03:16 GMT

DESCRIBE rtsp://192.168.0.61/axis-media/media.amp?videocodec=h264 RTSP/
1.0
CSeq: 1
User-Agent: PVCore/05.02.00.00
Accept: application/sdp
Accept-Encoding:

RTSP/1.0 200 OK
CSeq: 1
Content-Type: application/sdp
Content-Base: rtsp://192.168.0.61/axis-media/media.amp/
Date: Sun, 21 Dec 2008 16:03:16 GMT
Content-Length: 489

v=0
o=- 1229875396592509 1229875396592509 IN IP4 192.168.0.61
s=Media Presentation
e=NONE
c=IN IP4 0.0.0.0
b=AS:50000
t=0 0
a=control:rtsp://192.168.0.61/axis-media/media.amp?videocodec=h264
a=range:npt=0.000000-
m=video 0 RTP/AVP 96
b=AS:50000
a=framerate:30.0
a=control:rtsp://192.168.0.61/axis-media/media.amp/trackID=1?
videocodec=h264
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=420029; sprop-
parameter-sets=Z0IAKeNQFAe2AtwEBAaQeJEV,aM48gA==

-----

It looks like Android doesn't like something in the DESCRIBE response,
because it never issues a PLAY, but I have no way of knowing what's
wrong.

Shouldn't this work? And to confirm, Android cannot play a motion jpeg
stream via HTTP?

--~--~---------~--~----~------------~-------~--~----~

3. Is it possible to enable the WebKit JavaScript Inspector in Android web browser?

4. support of pixmap and pbuffer surface in EGL

5. How to Run J2SE Code on Android

6. Unable to unlock using keyboard in Android in the desktop screen

7. Today's NYT - Rapid Android Adoption Story