When we design the user interface of our application, we decide what components we will use and how we will organise those components in the application. To organise our components, we use specialised non visible objects called layout managers. There are several layout managers in Android. A LinearLayout lines up its viewsContinue Reading

According to the Android developer documentation, an Intent is an asynchronous message. It is an abstract description of an operation to be performed. Intents are used to navigate through activities. Activities, services and broadcast receivers are activated through intents. Intents enable loose coupling of code in the application. An Intent is passed to theContinue Reading

A Button class represents a push button widget in Android. The full package path for the button class is android.widgets.Button. Buttons are clicked to perform an action. A button can display text or an icon, or both. Event handlers for Button click events are defined with the android:onClick attribute of the <Button> element or programmatically by setting the setOnClickListener(View.OnClickListener).Continue Reading

What is SQLite? SQLite is an open source database. It supports standard relational database features like SQL syntax, transactions, prepared statement, etc. It has methods to create, delete, execute SQL commands and perform other common database management tasks. SQLite supports following datatypes: Datatype Description TEXT It is similar to StringContinue Reading

Android Application Components (Activities, Intents, Views, Layouts, Services) In android, application components are the basic building blocks of an application and these components will act as an entry point to allow system or user to access our app. The following are the basic core application components that can be used in AndroidContinue Reading

Creating app in Android Studio is very easy. Before starting actual programming make sure you have set your environment and Android SDK path properly. You can follow the steps in this tutorial to do this. Let’s start from the scratch. Creating the Android project Create a new project. Go to File menu => New and then select NewContinue Reading

The application will just display a message on the screen. $ mkdir First $ cd First/ We create a First directory and make it the current working directory. $ android create project –target android-17 –name First \ > –path . –activity MainActivity –package com.shishirkant.first Created directory /home/janbodnar/programming/android/First/src/com/shishirkant/first Added file ./src/com/shishirkant/first/MainActivity.java Created directoryContinue Reading

Developing an Android project, you have to install the Android plug-ins for Eclipse and at least have some knowledge of Java programming. After installing all the plug-ins for an Android file, you can begin to develop an Android application. Android uses packages not only to arrange the code in an application but toContinue Reading

Android Studio As we know Android world is increasing day by day. Billions of Android apps has been published on Google Play store. So it is the need of time that we should learn some basics of Android development. Android Studio is an IDE (Integrated Development Environment) for Android applicationContinue Reading