View MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.droidmentor.chromecustomtab; | |
import android.app.PendingIntent; | |
import android.content.Intent; | |
import android.graphics.BitmapFactory; | |
import android.net.Uri; | |
import android.os.Bundle; | |
import android.support.customtabs.CustomTabsIntent; | |
import android.support.v4.content.res.ResourcesCompat; | |
import android.support.v7.app.AppCompatActivity; |
View FirebaseAuthPhone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implementation 'com.google.android.gms:play-services-auth:17.0.0' | |
implementation 'com.google.firebase:firebase-auth:19.2.0' | |
<uses-permission android:name="android.permission.INTERNET"/> | |
// Initialize Firebase Auth | |
FirebaseAuth mAuth; |
View FirebaseAuth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implementation 'com.google.android.gms:play-services-auth:17.0.0' | |
implementation 'com.google.firebase:firebase-auth:19.2.0' | |
<uses-permission android:name="android.permission.INTERNET"/> | |
private FirebaseAuth mAuth; | |
mAuth = FirebaseAuth.getInstance(); |
View AlertDialogHelper1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.os.Looper; | |
import android.support.v7.app.AlertDialog; | |
import android.text.TextUtils; | |
import android.view.View; | |
import android.widget.Button; | |
/** |
View build.gradle (Module : app)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
ext.majorVersion = 1 | |
ext.minorVersion = 0 | |
ext.patchVersion = 1 | |
ext.preRelease = "Alpha" | |
ext.minSdkVersion = 16 | |
android { |
View FaceDetection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implementation 'com.google.firebase:firebase-ml-vision:18.0.1' | |
implementation 'com.google.firebase:firebase-ml-vision-face-model:17.0.2' | |
<meta-data | |
android:name="com.google.firebase.ml.vision.DEPENDENCIES" | |
android:value="face" /> | |
// To initialise the detector |
View BarCodeScannerDemo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implementation 'com.google.firebase:firebase-ml-vision:18.0.1' | |
<meta-data | |
android:name="com.google.firebase.ml.vision.DEPENDENCIES" | |
android:value="barcode" /> | |
// To initialise the detector |
View APIHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make HTTP Calls | |
implementation 'com.squareup.retrofit2:retrofit:2.3.0' | |
// Used to convert Java Objects into their JSON | |
implementation 'com.squareup.retrofit2:converter-gson:2.3.0' | |
public class UserDetails { | |
private Details details; |
NewerOlder