Hi All,
When I play a video file from gallery, before the actual video starts
playing, there is a black screen with a small triangle on the top
right corner appears on the screen. Why does it happen, how can it be
resolved.
When I debugged the code the intermediate screen is launched at this
point:
**************
public static void playVideo(final Context context, final MediaItem
item) {
// this is a video
((Gallery) context).getHandler().post(new Runnable() {
public void run() {
try {
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse(item.mContentUri));
intent.setDataAndType(Uri.parse(item.mContentUri),
item.mMimeType);
->>> context.startActivity(intent); //after this
call black screen is launched.
} catch (ActivityNotFoundException e) {
Toast.makeText(context,
context.getResources().getString(R.string.video_err),
Toast.LENGTH_SHORT).show();
}
}
});
}
*****************************
context.startActivity(intent); //after this call black screen is
launched.
Is it a problem in the framework or application level?
Please give some guidance about how the issue can be solved.
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en