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

Generally to build applications for Android we should have Java Development Kit (JDK), Android SDK, and a development environment. The Android SDK is compatible with Windows, Mac, and Linux operating systems to build android applications based on our requirements. We can set up an Android development environment using the followingContinue Reading

Android architecture is a software stack of components to support mobile device needs. Android software stack contains a Linux Kernel, collection of c/c++ libraries which are exposed through an application framework services, runtime, and application. Following are main components of android architecture those are Applications Android Framework Android Runtime Platform LibrariesContinue Reading