How to use Realm for Android – Replacing SQLite with Realm (Part-1)

Android Realm

Realm Java enables you to efficiently write your app’s model layer in a safe, persisted and fast way. Realm is a mobile database that runs directly inside phones, tablets or wearables. This repository holds the source code for the Java version of Realm, which currently runs only on Android. It’s not an SQL database, it’s a NoSQL database.

Realm is a replacement for SQLite & Core Data.

Read More

Design and Develop REST API (RESTful Web services: The basics)

What is API

In computer programming, an Application Programming Interface (API) is a set of subroutine definitions, protocols, and tools for building application software. In general terms, it is a set of clearly defined methods of communication between various software components. [Wikipedia]

For www and remote servers, An API isn’t the same as the remote server — rather it is the part of the server that receives requests and sends responses. [By Petr Gazarov –]

Example of some popular API are Google maps  API, YouTube API, Facebook API etc.

What is REST API

History of REST:

REST was defined by Roy Fielding in his 2000 PhD dissertation “Architectural Styles and the Design of Network-based Software Architectures” at UC Irvine. Fielding developed the REST architectural style in parallel with HTTP 1.1 of 1996–1999, based on the existing design of HTTP 1.0 of 1996.

In a retrospective look at the development of REST, Roy Fielding said:

Throughout the HTTP standardization process, I was called on to defend the design choices of the Web. That is an extremely difficult thing to do within a process that accepts proposals from anyone on a topic that was rapidly becoming the center of an entire industry. I had comments from well over 500 developers, many of whom were distinguished engineers with decades of experience, and I had to explain everything from the most abstract notions of Web interaction to the finest details of HTTP syntax. That process honed my model down to a core set of principles, properties, and constraints that are now called REST. – [Wikipedia]


If we take one example of popular Android app : Evernote, all the data of the app is stored in a cloud database and communication between app and the database can be done using a REST API. If we uninstall the app anytime, no loss of data as data is stored in a cloud database and if we install the app and login all our data will be visible. So, REST API is a good architectural option to do the communication between the app and the server, if we want to manages all the user data on a central database.

REST (Representational State Transfer) defines a set of architectural principles by which you can design Web services that focus on a system’s resources, including how resource states are addressed and transferred over HTTP by a wide range of clients written in different languages.

Read More

How to convert any website to an android application

Now you can create an Android app for your website within minutes. Just we have to follow some steps. To convert any website to an android application what we need is WebView.

WebView (from android developers) : A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity. It uses the WebKit rendering engine to display web pages and includes methods to navigate forward and backward through a history, zoom in and out, perform text searches and more. You can download demo application code from Github (Download Code).

YouTube Tutorial:

Note:  To convert any website into an android app, website has to be responsive.

Read More

How to get current location in Android Google Map (FusedLocationProviderApi)

In this tutorial , we will learn how to make a Google Maps App that shows your current location. Best to use the FusedLocationProviderApi now, as it offers less battery drain than the old open source LocationManager API. Also, if you’re already using Google Play Services for Google Maps, there’s no reason not to use it. I have added sample code in Github, you can download the code from here (Download Code).

YouTube Video:


NOTEYou have to provide your own API_KEY in google_maps_api.xml, otherwise location will not display in your application.

Creating new Android Project:

1) Open Android Studio and make a new project with name “Current Location”  and company domain;

2) Click Next and choose android version Lollipop. Again Click Next and Choose Google Maps Activity.

3) Leave all things remaining same and Click Finish.

Now you will be able to see three files:

  • google_maps_api.xml (…/GoogleMapsApp/app/src/debug/res/values/google_maps_api.xml)
  • (…/GoogleMapsApp/app/src/main/java/com/androidtutorialpoint/googlemapsapp/
  • AndroidManifest.xml ( …/GoogleMapsApp/app/src/main/AndroidManifest.xml)
Read More

Android Tutorial for Beginners [Part-1] Introduction – Android Platform

Hello, this is Saidur Rahman. Welcome to the Android Tutorial for Beginners from Throughout this series of tutorial we will learn details regarding Android development from Basic to Advanced level though the name of the tutorial series is Android tutorial for Beginners. I will try to share my knowledge regarding Android application development, Google play store and Android Studio.

What is Android?
Android is an open source and Linux-based operating system for mobile devices such as smartphones and tablet computers. This tutorial will teach you basic Android programming and will also take you through some advance concepts related to Android application development. Android programming is based on Java programming language so if you have basic understanding on Java programming then it will be a fun to learn Android application development.

Read More

The number of method references in a .dex file cannot exceed 64K (multidex issue)

As the Android platform has continued to grow, so has the size of Android apps. When your app and the libraries it references reach a certain size, you encounter build errors that indicate your app has reached a limit of the Android app build architecture. Earlier versions of the build system report this error as follows:

Conversion to Dalvik format failed:
Unable to execute dex: method ID not in [0, 0xffff]: 65536

More recent versions of the Android build system display a different error, which is an indication of the same problem:

trouble writing output:
Too many field references: 131000; max is 65536.
You may try using multi-dex option.

Read More


Android 7.0 Nougat Features

Android 7.0 Nougat is Google’s way of refining what we already have, and adding some essential features to an operating system they were already happy with.

Since Android 5.0 we’ve seen how Google was shifting their design language on the phones they sell themselves and the apps and services that come on your phone. Android itself has followed this trend, and with Marshmallow we saw a flat but bold design that tied everything together.

Read More

Android Application BD Holiday Calendar and IELTS Writing

 Application Name : IELTS Writing
This application emphasizes on basic android application process along with material design. IELTS Writing is a helpful application those who want to study IELTS. That is enough for you to prepare for an IELTS writing test. This application is for academic IELTS test preparation. It will also help for general writing.

Read More


Android M release date, news and features

Android M release date news and features

It’s been a whole year since Android Lollipop was announced at IO 2014, so it’s about time Google took to the stage and announced its successor – and thankfully it’s done just that.

Say hello to Android M, the latest mobile platform from Google, where thousands of bugs have been squashed and a new layer of polish and quality has been applied.

We were live at Google IO 2015 in San Francisco and we’ve updated this page with all the latest news and features.

Latest update: Android M Developer Preview 2 has given us a glance at a new memory manager tool, and some new interface features.

Android M name

Read More

Interesting facts about Android OS and it’s history


Today, it is very difficult not to know android than it is to know the most popular operating system in the smartphone world. Google has brought the operating system a long way to make it the market leader in a very tight market which has surpassed the feature phones.

Also read: What is android operating system

It is safe to say  that Android is dominating the smartphone market. However, there are some facts you may not have heard before about Google’s operating system.

More details :