[android-developers] Video skipping frames continuously

2013-10-30 Thread mmj
Hi,

I am developing an android app for Google TV Api level 13. I have a 
videoview which plays .mp4 video from raw folder.
Sometimes the video playes properly.
But sometimes i can observe lot of frame drops.
And logcat message shows *:AwesomePlayer(789): we're much too late (0.50 
secs), video skipping ahead*

Here is my code:

 VideoView mVideoView = (VideoView) findViewById(R.id.videoView1);
 String path = "android.resource://" + getPackageName() + "/" + R.raw.test;
 mVideoView.setVideoURI(Uri.parse(path));
 mVideoView.start();

MediaController mc = new MediaController(this, true);
mc.setMediaPlayer(mVideoView);
mc.setAnchorView(mVideoView);

mVideoView.setMediaController(mc);
mVideoView.requestFocus();

I am testing with google tv emulator.

How can i fix this issue?

-- 
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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: How to add external static libraries to Android.mk?

2009-09-24 Thread mmj

Anyone who knows the reason please help.It is very urgent.
Please be kind enough to share your insights!!!

On Sep 24, 8:14 pm, mmj  wrote:
> Hi,
>
> I have a few pre-compiled static libraries,*.a files.How to add them
> inAndroid.mkfile?Finally i have to get a .so file .
> Here is theAndroid.mkfile I am having:
>
> **
> LOCAL_PATH:= $(call my-dir)
>
> include $(CLEAR_VARS)
>
> LOCAL_MODULE := abc
> LOCAL_SRC_FILES := display.c
> include $(BUILD_STATIC_LIBRARY)
>
> include $(CLEAR_VARS)
> LOCAL_PREBUILT_LIBS := lib1.a lib2.a lib3.a
> include $(BUILD_MULTI_PREBUILT)
>
> include $(CLEAR_VARS)
> LOCAL_MODULE :=pqr
> LOCAL_SRC_FILES := pqr_jni.c
> LOCAL_STATIC_LIBRARIES = libabc lib1 lib2 lib3
> include $(BUILD_SHARED_LIBRARY)
> **
> But i get error like:
> "make: *** No rule to make target `out/apps/app_name/android-1-5-arm/
> lib1', needed by `out/apps/app_name/android-1-5-arm/pqr.so'. Stop"
>
> What changes should i make inAndroid.mk?
> Please respond.
>
> Thanks in advance.
--~--~-~--~~~---~--~~
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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to add external static libraries to Android.mk?

2009-09-24 Thread mmj

Hi,

I have a few pre-compiled static libraries,*.a files.How to add them
in Android.mk file?Finally i have to get a .so file .
Here is the Android.mk file I am having:

**
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := abc
LOCAL_SRC_FILES := display.c
include $(BUILD_STATIC_LIBRARY)


include $(CLEAR_VARS)
LOCAL_PREBUILT_LIBS := lib1.a lib2.a lib3.a
include $(BUILD_MULTI_PREBUILT)


include $(CLEAR_VARS)
LOCAL_MODULE :=pqr
LOCAL_SRC_FILES := pqr_jni.c
LOCAL_STATIC_LIBRARIES = libabc lib1 lib2 lib3
include $(BUILD_SHARED_LIBRARY)
**
But i get error like:
"make: *** No rule to make target `out/apps/app_name/android-1-5-arm/
lib1', needed by `out/apps/app_name/android-1-5-arm/pqr.so'. Stop"

What changes should i make in Android.mk?
Please respond.

Thanks in advance.

--~--~-~--~~~---~--~~
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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to hide dialer application after establishing call?

2009-08-03 Thread mmj

Hi all,

I am with an application that will establish a call from it and do
something else after that.Establishing call from my application is
working fine using Intent.Action_Call.But after that the control is
going to the native dialer application.I want to bring the control
back to my application after few seconds.Even though i start a new
activity depending on the call states obtained by the
PhoneStatelistener, it is launching the new activity in that
application.But it is all happening at the background because as soon
as dialer comes into picture,my application is minimized.

I need the control to be back to my application from the dialer after
some time and call established should be there until the user is
disconnecting it.

Can anyone help me in implementing the same?

Thanks in advance

--~--~-~--~~~---~--~~
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 group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---