-
Code4ReferenceA list of Android Tutorials
Android tutorials This page contains a list of Android tutorials. These tutorials ranges from basic to advance topics. It covers various topics of Android platform. Very Basic Fundamentals of Android Intermediate and advance topics
-
Code4ReferenceTutorial on Android widget with Alarmmanager
This is a follow up tutorial on Android widget. If you haven’t read it till now then please go through it before starting this tutorial. You may be aware that AppWidgetProvider’s lowest interval is 30 mins. In this tutorial we will learn to create widget with update interval less than 30 mins using AlarmManager. In…
-
Code4ReferenceHow to access SQLite database on Android
How to access SQLite database file in Android. As we know that Android has inbuilt database called SQLite where application can store their data. SQLite was mainly developed for embedded devices. I am not going to discuss here about SQLite database but I am going to demonstrate how Android developer can access the SQLite database.…
-
Code4ReferenceCan you really swap Integers' value in java?
One of the favorite basic questions asked by the interviewers: Q. Write a function to swap two integers? A “C” programmer will write function similar to . void swap(int *a, int *b){ int temp = *a; *a=*b; *b=temp; } But what if you are asked to implement the same method in Java, then you will answer that…
-
Code4ReferenceTutorial on customization of Android Activity Animation
If you are thinking on customizing the animation of Activity transition then probably you would look for ActivityOptions class introduced in Android 4.1 (Jelly bean). This class has provided three methods which can help you to customize the Activity Animation. These are given in the table below. ActivityOptions Class Methods Function Name Description makeCustomAnimation This…
-
Code4ReferenceAndroid source code browsing
As an engineer, most of the time you spend on browsing peers’ code in your company. Sometimes we think that how these platforms(i.e Android, Java, etc.) have been written? Is there anyway of getting access of source code? Is there any advantage of this? Well, there can be certainly some advantages. I would say, you…
-
Code4ReferenceHandcrafted Hello world web-application in Java
Recently I was given a task to write a web-application. I didn’t have prior knowledge of web-application, so I started looking for simple Hello world!! tutorial. I found many tutorials, all of them were using some kind of IDE to write the application(and no wonder most of them were using Eclipse). But I was inclined…
-
Code4ReferenceGradle custom plugin (part-2)
This tutorial is followup of the gradle custom plugin tutorial part-1. If you haven’t gone through it yet, then I would recommend you to first read it in order to get the better context. In this tutorial we will cover the following topics. Project info : Project name : Gradle custom plugin Gradle version :…
-
Code4ReferenceAndroid orientation specific layouts
Sometimes the same layout doesn’t scale well for both the orientations i.e landscape and portrait. It’s always suggested to have different layout file for different screen orientation. Managing two layout for different orientations is quite easy. You can manage in two different ways. By using resource/layout folder. By dynamically set the layout. resource/layout folder This…
-
Code4ReferenceUbuntu commands that developers should know
Ubuntu Commands that developer should know cp Copies the file scp Copies file from one host machine to another host machine. mv Moves the file/folder from one place to other. touch Creates the file mkdir Creates the directory. If you want to create a chain of parent and child directory you can use with…