Posts by Bruno Azevedo • 1 point
2 posts
-
0
votes1
answer154
viewsA: Error adding image to URI - "cannot find Symbol class fromFile"
I discovered the bug. In the excerpt: Uri localFoto = new Uri.fromFile(arquivo); There is no "new". Just take it out it worked. Hugs
-
0
votes1
answer154
viewsQ: Error adding image to URI - "cannot find Symbol class fromFile"
Guys, I can’t find the reason why Android Studio does not recognize the method Uri.fromFile(). I searched several places but nothing. My code is like this: foto.setOnClickListener(new…