- Add the
build_pull_request.shto the root of your git repository; - Add the
android.ymlfile to.github/workflows/; - Make
build_pull_request.shexecutable using:chmod +x build_pull_request.sh; - Commit your code and push the changes
# MIT License
| val imageView: ImageView | |
| val imageRef = storageRef.child("users/me/profile.png") | |
| imageView.load(imageRef) |
| val imageView: ImageView | |
| val storageRef = FirebaseStorage.getInstance().reference | |
| val imageRef = storageRef.child("users/me/profile.png") | |
| imageRef.downloadUrl.addOnSuccessListener { url -> | |
| imageView.load(url) | |
| }.addOnFailureListener { | |
| // Handle any errors | |
| } |
| android { | |
| // ... all the other configurations | |
| compileOptions { | |
| sourceCompatibility JavaVersion.VERSION_1_8 | |
| targetCompatibility JavaVersion.VERSION_1_8 | |
| } | |
| } | |
| tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { |
| val firebaseAuth = Firebase.auth // Equivalent to FirebaseAuth.getInstance() | |
| // Update a user's profile | |
| // https://firebase.google.com/docs/auth/android/manage-users#update_a_users_profile | |
| firebaseAuth.currentUser?.updateProfile(userProfileChangeRequest { | |
| displayName = "Jane Doe" | |
| photoUri = Uri.parse("https://profile.picture.url") | |
| }) | |
| // Passing state/continue URL in email actions |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| { | |
| "utilizadores":{ | |
| "uid1":{ | |
| "nome":"Rosário" | |
| }, | |
| "uid2":{ | |
| "nome":"Paulo" | |
| }, | |
| "uid3":{ | |
| "nome":"Superman" |
| public class NotificationJobService extends JobService{ | |
| private final String TAG = NotificationJobService.class.getSimpleName(); | |
| private AsyncTask backgroundTask; | |
| @Override | |
| public boolean onStartJob(JobParameters job) { | |
| //Executar todo trabalho no background | |
| backgroundTask = new AsyncTask() | |
| { |
| public class MyJobService extends JobService{ | |
| @Override | |
| public boolean onStartJob(JobParameters job) { | |
| jobFinished(job,false); | |
| return false; //Ainda há algo a ser executado? | |
| } | |
| @Override | |
| public boolean onStopJob(JobParameters job) { |
| package io.github.rosariopfernandes.aac; | |
| import android.arch.persistence.room.Database; | |
| import android.arch.persistence.room.Room; | |
| import android.arch.persistence.room.RoomDatabase; | |
| import android.content.Context; | |
| /** | |
| * Created by rosariopfernandes on 6/15/17. | |
| */ |