Skip to content

Instantly share code, notes, and snippets.

@hitesh-dhamshaniya
Created October 28, 2015 10:37
Show Gist options
  • Save hitesh-dhamshaniya/4d309c95a76c4be064c3 to your computer and use it in GitHub Desktop.
Save hitesh-dhamshaniya/4d309c95a76c4be064c3 to your computer and use it in GitHub Desktop.
Uri imageUri = Uri.parse("/sdcard/Aa.png");
//Uri imageUri = Uri.parse("/storage/emulated/0/designapp/Aa.png");
Intent intent = new Intent(Intent.ACTION_ATTACH_DATA);
intent.setDataAndType(imageUri, "image/*");
intent.putExtra("png", "image/*");
startActivityForResult(Intent.createChooser(intent,"Set AS"), 1000);
User for Set Image as wallpaper, Contact Picture and other....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment