Posts

Connect your android app with firebase

Connect your app to Firebase Install the Firebase SDK . In the  Firebase console , add your app to your Firebase project. Add the Real-time Database to your app Add the dependency for Real-time Database to your app-level  build.gradle  file:   implementation 'com.google.firebase:firebase-database:16.0.5' Configure Firebase Database Rules The Real-time Database provides a declarative rules language that allows you to define how your data should be structured, how it should be indexed, and when your data can be read from and written to. By default, read and write access to your database is restricted so only authenticated users can read or write data. To get started without setting up  Authentication , you can  configure your rules for public access . This does make your database open to anyone, even people not using your app, so be sure to restrict your database again when you set up authentication. Write to your database Retrieve an instance of your

What is an API?

Image
Android API Levels As you develop your application on Android, it's useful to understand the platform's general approach to API change management. It's also important to understand the API Level identifier and the role it plays in ensuring your application's compatibility with devices on which it may be installed. The sections below provide information about API Level and how it affects your applications. For information about how to use the "Filter by API Level" control available in the API reference documentation, see  Filtering the documentation  at the end of this document. What is API Level? API Level is an integer value that uniquely identifies the framework API revision offered by a version of the Android platform. The Android platform provides a framework API that applications can use to interact with the underlying Android system. The framework API consists of: A core set of packages and classes A set of XML elements and attributes

Networking with the Volley Library

Image
Android Volley Library Overview Volley is a library that makes networking for Android apps easier and most importantly, faster. Volley Library was announced by  Ficus Kirkpatrick  at Google I/O '13. It was first used by the Play Store team in Play Store Application and then they released it as an open source library. Although it is part of the Android Open Source Project (AOSP), Google announced in January 2017 that Volley will move to a  standalone library .  Why Volley? Volley can pretty much do everything with that has to do with Networking in Android. Volley automatically schedules all network requests such as fetching responses for image from web. Volley provides transparent disk and memory caching. Volley provides powerful cancellation request API for canceling a single request or you can set blocks of requests to cancel. Volley provides powerful customization abilities. Volley provides debugging and tracing tools. Setup Volley Adding Volley to our