Android tutorials-28-Firebase #4. Upload image to Firebase Storage
У вашего броузера проблема в совместимости с HTML5
In this tutorial I will show you how to upload an image from android app to Google Firebase Storage.
Step1: Android app must requires uses-permissions : INTERNET, CAMERA, READ_PHONE_STATE
Step2. After received image from onActivityResult, it will upload to Firebase Storage through Storage Reference.
Step3. The uploading process begins, it has 2 callback functions for checking result:
- onDataChange(snapshot): Snapshot is received object, you can converted it to our Flower object using getValue() method, then cast to Map(key is string, value is Object)
-onCancelled: called when the uploading process failed.
After received callback method
SUBSCRIBE TO CHANNEL:
https://www.youtube.com/c/NguyenDucHoang
Twitter: https://twitter.com/NguyenD97601913
Facebook: https://www.facebook.com/nguyen.duc.hoang.bk