video - Is it possible to create an activity under another activity in android? -
i want play video file on full screen , have created activity , put button closing after video finished.
but, think if create separate activity each video create storage problem in future.
possible create activity inside main activity?
my second question is: possible create activity on runtime on demand?
also, after finishing work can destroy space allocated object activity?
if can in android how?
0% accepted rate?
form questions bit better please, have no idea if got right
videoviewdemo shows you can change video path, , video shown.
mvideoview.setvideopath(path);
this done while app running, need 1 activity videos.
this how video path between activities:
main activity:
intent intent = new intent(this, videoactivity.class); bundle b = new bundle(); b.putint("video_url", "your_video_url"); b.putstring("video_name", "teh video"); intent.putextras(b); startactivity(intent);
and catch in videoactivity in oncreate:
bundle b = getintent().getextras(); string path = b.getstring("video_url"); string video_name = b.getstring("video_name");
Comments
Post a Comment