运行代码,包括另一个类中的上下文

时间:2015-05-02 09:30:26

标签: android android-context

我希望在下载完成后在我的DownloadService课程中运行以下代码:

Intent localIntent = new Intent("android.intent.action.ATTACH_DATA");
localIntent.setDataAndType(Uri.fromFile(new File(imagePath)), "image/jpg");
localIntent.putExtra("mimeType", "image/jpg");      
localIntent.addCategory(Intent.CATEGORY_DEFAULT);
FullImage.this.startActivityForResult(Intent.createChooser(localIntent, "set as"), 200);

你有什么机会解决我的问题?

0 个答案:

没有答案
相关问题