This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

outputFileUri returns null?

 
L Vasquez
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For some reason outputFileUri returns null in my onActivityResult:


I don't understand why. Please take a look at my code and see where I go wrong. I let the user take 4 images by choosing from gallery or using the camera. The ones that the user takes with the camera won't show presumably because their uri is null. outputFileUri is a class variable!

`takePictureIntent()`:

   


`onActivityResult()`:

  

My createImageFile():

   
 
Norm Radder
Rancher
Posts: 1628
21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you trying to debug the code to see what it is doing?  I don't see any print statements to display the values of variables as they are used and given values.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!