Tutorial by Examples: android

In your build.gradle you need to add the below dependencies: debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1' releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' In your Application class yo...
Prerequisites you should have fuse installed (https://www.fusetools.com/downloads) you should have done the introduction tutorial in terminal: fuse install android in terminal: uno install Fuse.Views Step 1 git clone https://github.com/fusetools/hikr Step 2 : Add package reference to ...
Create a New Project on Google Developer Console To integrate Android application with Google Drive, create the credentials of project in the Google Developers Console. So, we need to create a project on Google Developer console. To create a project on Google Developer Console, follow these steps:...
This example will show you back navigation which is expected generally in most of the flows. You will have to add following code to every screen depending on expected behavior. There are 2 cases: If there are more than 1 screen on stack, device back button will show previous screen. If there is ...
To enable disk persistence you should enable the flag persistenceEnabled in the FirebaseDatabaseInstance object of your application: Android FirebaseDatabase.getInstance().setPersistenceEnabled(true); iOS Database.database().isPersistenceEnabled = true //Swift [FIRDatabase database].persisten...
Firebase synchronizes and stores a local copy of the data for active listeners when used on mobile devices. In addition, you can keep specific locations in sync. Android : DatabaseReference workoutsRef = FirebaseDatabase.getInstance().getReference("workouts"); scoresRef.keepSynced(true)...
Let's assume we have a Dogs application, then our model will be a Dog class. DatabaseReference reference = FirebaseDatabase.getInstance().getReference().child("dogs"); This is how to send a Dog to the database, a new unique dog and set the dog with the key. String key = reference.push...
Using Intents to Load the Image from Gallery. Initially you need to have the permission <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> Use the Following Code to have the layout as designed follows. <?xml version="1.0" enco...

Page 7 of 7