Skip to content
Advertisement

My app is gets back to previous page without updating data to database. (Using Android studio + Firebase)

My app is gets back to previous page without updating data to database. (Using Android studio + Firebase) This is the java code for the activity

JavaScript

This is the log at that time, I had already tried to debug but couldn’t get any solution……………………………………………………………………………..

JavaScript

Advertisement

Answer

You should initialize your storage reference before you call its child, so inside your uploadImage(), add 2 lines at the begining:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement