Hi
The use case is to run two instances of PV Player (default android
player) simultaneously.
When user leaves the area of the First PVPlayer it should not get
paused.
The default android behaviour is to pause an foreground activity
when either some other activity
comes to foreground or when user leaves the activity area.
I want to know if this pause can be avoided.
There is a fucntion in ActivityThread.java where the activity
pause, resume etc is handled.
will it be a good idea to skip the pause if the activity is what i
am interested in
also, since in android by default an application is launched full
screen, changes have been made
to launch mutiple windows.
1. To launch two PV Players from Image gallery activity,
I have changed the following code in Imagegallery.java
public void onImageClicked(int index) {
........
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_MULTIPLE_TASK |
Intent.FLAG_ACTIVITY_SINGLE_TOP);
.........
.........
}
2. 3. In packages/apps/gallery/Androidmanifest.xml , for the
MovieView activity
a) the task affinity is set to ""
b) android:launchMode="standard"
Please let me know, if there is any other way to launch mutiple
instances of an activity and also if
the activity pause can be avoided , so that I have two videos running
simultaneously
regards
MSK
--
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