public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FirebaseStorage storage = FirebaseStorage.getInstance(); StorageReference ref = storage.getReference("images/myimage.jpg"); ref.putFile(Uri.parse("file:///path/to/image.jpg")); } }
import com.google.firebase.storage.FirebaseStorage; mastering firebase for android development epub
Firebase is a mobile and web application development platform that provides a suite of tools and services to help developers build, test, and deploy high-quality applications quickly and efficiently. Firebase was founded in 2011 and acquired by Google in 2014. FirebaseStorage storage = FirebaseStorage.getInstance()
exports.myFunction = functions.database.ref('users/{userId}') .onWrite((change, context) => { const userId = context.params.userId; const data = change.after.val(); console.log(`User ${userId} updated: ${data}`); }); } } import com.google.firebase.storage.FirebaseStorage
class User { private String name; private String email;
You can download the ePub version of this guide from the following link: [insert link]
public User(String name, String email) { this.name = name; this.email = email; } }