Posts

Showing posts with the label Google

Android Firebase: Integrate Google Login in Your App

Image
Android Firebase: Integrate Google Login in Your App Firebase  is one of the excellent announcement from the latest Google I/O. Firebase is easy to use, and there are numerous amount of features provided including Auth, database, storage, analytics, etc. This post covers the integration of Google Authentication in android application. There are multiple authentication options like Email & Password, GitHub, Facebook, Twitter and Anonymous. You can find the details about them on their website.  Firebase separates the user credentials from your application data and lets you focus on the user interface and experience for your app. Firebase uses NoSQL databases, if you are familiar with NoSQL databases then you can go for it anytime. It reduces the server side coding complexities. Many android applications need authentication and providing Google Sign - in option is the basic and most easy thing to do. Every android user has an google account...

Android Development : Aksing user to turn on the GPS

Image
  Dialog box :  Turn on the GPS      Recently, in one of my android project work, I needed GPS location of the user device. I wanted it to look like the dialog box which appears in the Google Maps when we turn in on. This is how Google asks user permission for GPS access: So, after referring the Google's official documentation and some more modifications following code worked like a charm. I had integrated the map and the code somewhat goes like this: First you have to add manifest permissions: <uses-permission android:name = "android.permission.READ_PHONE_STATE" /> <uses-permission android:name = "android.permission.INTERNET" /> <uses-permission android:name = "android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name = "android.permission.ACCESS_COARSE_LOCATION" /> Then edit your MainActivity like this : public class MainActivity extends AppCompatActivity implements ...