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

调用系统程序打开指定的图片

    File file = new File(advInfo.strFullImagePath);
    if( file != null && file.isFile() == true){
     Intent intent = new Intent();
     intent.setAction(android.content.Intent.ACTION_VIEW);
     intent.setDataAndType(Uri.fromFile(file), "image/*");
     SNAdvView.this.getContext().startActivity(intent);   }    
    }

补充:移动开发 , Android ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,