Nullpointerexception: Uristring
I have received an unexpected error while trying to load my Activity Single Item activity. In brief, this activity is suppose to populate JSON data into the application. Below is t
Solution 1:
do a null check like this to avoid exception:
Uriurisingle= Uri.parse(i.getStringExtra("single_list_item_bac"));
if(urisingle!=null){
doSomething()....
}
Solution 2:
When you send data with intent you should check first:
if(Uri != null)
// you can sent image as string
in.putExtra("image", imageUri);
Post a Comment for "Nullpointerexception: Uristring"