and-nd-firebase
and-nd-firebase copied to clipboard
Course code repository for Firebase in a Weekend by Google: Android
Implementing Updated Storage Put File and .getDownloadUrl() ```if(requestCode==RC_PHOTO_PICKER && resultCode==RESULT_OK) { Uri uri=data.getData(); final StorageReference picref= mstorageReference.child(uri.getLastPathSegment()); UploadTask uploadTask=picref.putFile(uri); Task task=uploadTask.continueWithTask(new Continuation() { @Override public Task then(@NonNull Task task) throws...

StorageReference filepath=mStorage.child("T_image").child(mImageUri.getLastPathSegment()); filepath.putFile(mImageUri).addOnSuccessListener(new OnSuccessListener() { @Override public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) { Toast.makeText(upload_teach_info.this, "success", Toast.LENGTH_SHORT).show(); DatabaseReference new_add=mDatabase.push(); new_add.child("Name").setValue(mName); new_add.child("Email").setValue(mEmail); new_add.child("Desciption").setValue(mDesc); new_add.child("Image").setValue(downloadUri.toString()); } }) .addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception...
Hola llevo un tiempo buscando como obtener el url https: de Storage pero lo único que encuentro solo es para sacar el gs: Como puedo obtener este url en código...
Update to gradle 4.6 Update Build Tools to 28.0.3 Update to Android Plugin 3.2.1 Update design to v 27.1.1 Update appcompat-v7:27.1.1 Update github glide to 4.8.0 Update miniSdkVersion to 21...
estou com problema meu codigo whastapp clone esta dando erro Uri url = taskSnapshot.getDownloadUrl(); salva foto banco faribase nao fixa foto perfil whastapp clone package br.com.whatsappandroid.android.whatsapp.activity; import android.Manifest; import android.content.DialogInterface;...
https://github.com/udacity/and-nd-firebase/blob/a8b875ac763f0b2d845154b5faace9e685d2326f/app/src/main/java/com/google/firebase/udacity/friendlychat/MainActivity.java#L202 I believe solution is @Override public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) { Task urlTask = taskSnapshot.getStorage().getDownloadUrl(); while (!urlTask.isSuccessful()); Uri downloadUrl = urlTask.getResult(); //rest }
I'm setting up the firebase project exactly following the instructions. I keep getting the above error on syncing with gradle. Updating gradle version does not help. Idea's are welcome.
Trying to run the app I came across the following problem: The setProviders method cannot be resolved. Instead of the code provided in the example code `setProviders( AuthUI.EMAIL_PROVIDER, AuthUI.GOOGLE_PROVIDER)` we...
I just tried to run the app and it crashed with the aforementioned message. The quick solution was to add permissions in the AndroidManifest.xml file like this: ` ` Do...