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

    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);   }     
    }

你可能感兴趣的:(File,null)