Android Class for Google Login

Google Sample Import Classes import com.google.android.gms.auth.api.signin.GoogleSignIn; import com.google.android.gms.auth.api.signin.GoogleSignInAccount; import com.google.android.gms.auth.api.signin.GoogleSignInClient; import com.google.android.gms.auth.api.signin.GoogleSignInOptions; import com.google.android.gms.common.SignInButton; import com.google.android.gms.common.api.ApiException; import com.google.android.gms.tasks.OnCompleteListener; import com.google.android.gms.tasks.Task; Implement View.OnClickListener /** * Activity to demonstrate basic retrieval of the Google user's ID, email address, and basic * profile. */ public class SignInActivity extends AppCompatActivity implements View.OnClickListener { Set up Java classes for login…

Android App Development : Using Google App Scripts API

Some usefull links are in Google Official Documentation https://blog.heron.me/executing-functions-using-the-apps-script-api-47c822681e5d Good class to use as starting point https://ctrlq.org/google.apps.script/docs/guides/rest/quickstart/android.html Phase 1 : instatiate Credential static final int REQUEST_ACCOUNT_PICKER = 1000; static final int REQUEST_AUTHORIZATION = 1001; static final int REQUEST_GOOGLE_PLAY_SERVICES = 1002; private static final String PREF_ACCOUNT_NAME = "accountName"; private static final String[] SCOPES = { "https://www.googleapis.com/auth/drive"…

Android App Development : Google Sign In/Login

Integrating Google Sign-In into Your Android App Try Android Sample Project Configure a Google API Console project and set up your Android Studio project Integrating Google Sign-In into Your Android App Additional Scopes OAuth2 involves authentication and authorisation Authentication and Authorization frontend and backend workflow OAuth2 workflow Source of the above image is linked to…

Android App Development : Nuances

Points Covered Layout Type Observer and Observable Activity Click Listener MVC Material Design Components App Bar, Action Bar & Tool Bar Layout Types Official Doc Linear Layout LinearLayout is a view group that aligns all children in a single direction, vertically or horizontally. Relative Layout RelativeLayout is a view group that displays child views in…

Android App Development : Quick Tips

Points Covered Data Types Async Tasks Logging DialogBox WebView SuppressLint Data types Array Equivalent // declaring a list of integer private List List; // reserving the space for list elements List = new ArrayList(3); ArrayList nameValuePairs = new ArrayList(); nameValuePairs.add(new BasicNameValuePair("Your_var_1", value)); nameValuePairs.add(new BasicNameValuePair("Your_var_2", value)); Map<String, List> assocArr = { ‘title1’: [‘haha’, ‘hehe’], ‘huhuh3’: [‘hihihi’,…

Android App Development : Activity Life Cycle

Activity Life Cycle Official Documentation Activity class provides a core set of six callbacks: onCreate(), onStart(), onResume(), onPause(), onStop(), and onDestroy(). The system invokes each of these callbacks as an activity enters a new state. Orientation Changes Nice Tutorial on Handling Orientation Changes Fragment Life Cycle Normal Behaviour If you rotate your device when you…

Android App Development : Fundamentals

App fundamentals Official Documentation Official Tutorails Manifest and Gradle Manifest what is gradle in android studio? Android Studio uses Gradle, an advanced build toolkit, to automate and manage the build process while letting you define flexible, custom build configurations. Each build configuration can define its own set of code and resources while reusing the parts…

Android App Development : Introduction

Getting a hang of Android Studio Official Intro Installation Official Documentation Requirements Min 4GB RAM Min 100GB free hard disk Download https://developer.android.com/studio Install Keep using default options, make sure C:\ drive has enough space(eg: 500GB free) Configure Android Studio https://developer.android.com/studio/intro/studio-config JDK Version Install Java Install the latest Java for windows 64 from oracle link, which…