In onResume(), your activity is in the running state, and will be in that state until onPause is called. In this state, it's safe to invoke a new activity. Your code in onResume: Intent intent = new Intent(android.content.Intent.
ACTION_VIEW); final Uri data = Uri. Parse(videoURL); startActivity(intent) is fine (although obviously you should do something with the uri). This will cause the main activity to pause and start the video activity.
Putting that in a different activity is largely unnecessary; however, since you want to know when the video finishes, you could use a VideoView in your VideoPlayback activity, rather than launching it in a new intent. Then you can attach a setOnCompletionListener (MediaPlayer. OnCompletionListener l) to be informed when the video completes, and return a result to the main intent (which would invoke VideoPlayback using startActivityForResult, and receive its completion notification in onActivityResult.
In onResume(), your activity is in the running state, and will be in that state until onPause is called. In this state, it's safe to invoke a new activity. Your code in onResume: Intent intent = new Intent(android.content.Intent.
ACTION_VIEW); final Uri data = Uri. Parse(videoURL); startActivity(intent); is fine (although obviously you should do something with the uri). This will cause the main activity to pause and start the video activity.
Putting that in a different activity is largely unnecessary; however, since you want to know when the video finishes, you could use a VideoView in your VideoPlayback activity, rather than launching it in a new intent. Then you can attach a setOnCompletionListener (MediaPlayer. OnCompletionListener l) to be informed when the video completes, and return a result to the main intent (which would invoke VideoPlayback using startActivityForResult, and receive its completion notification in onActivityResult.
I think it's correct – Peeyush Aug 3 at 3:52 Although it seems that my code is valid, it wasn't enough. I still needed to add additional activities; one for choosing and one for a video. Anyway, thank you for the answer!
– Searching... Aug 3 at 6:54.
Native activity is started (without quotes):. Start native activity.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.