当前位置:操作系统 > 安卓/Android >>

2.调用第三方app并返回标识

调第三方app--public void startActivityForResult(Intent intent, int requestCode)
Activity activity = (Activity)context;

activity.startActivityForResult(new Intent(Util.REVIEW_ACTION, uri), 1001);


在onActivityResult方法中获取
[java]
@Override 
protected void onActivityResult(int requestCode, int resultCode, Intent data) { 
    super.onActivityResult(requestCode, resultCode, data); 
     
    System.out.println("requestCode " + requestCode); 
     


摘自  WYHuan1030
补充:移动开发 , Android ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,