简体   繁体   English

如何知道意图在android中完成与否

[英]how to know the intent is finished or not in android

hai every one .嗨每一位。 im my project while displaying a page if there are some buttons for displaying videos then if i click on it then the video should play and when i stop the video then i should get the original page with image button.我在显示页面时显示我的项目,如果有一些按钮用于显示视频,那么如果我点击它,那么视频应该播放,当我停止视频时,我应该获得带有图像按钮的原始页面。 i wrote the code as .......我把代码写成......

 Uri uri = Uri.parse(myPath);    
 Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);    
 myContext.startActivity(intent);

In place of mypath i gave the path where the video is located.代替 mypath 我给出了视频所在的路径。

Actually my problem is when the video playing is finished , i am not getting the original page with buttons but empty page with image button.实际上我的问题是当视频播放完成时,我没有得到带有按钮的原始页面,而是带有图像按钮的空页面。 can any body tel where the exasct problem is.. thank you in advance任何身体电话都可以解决 exasct 问题.. 在此先感谢您

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM