Articles

Affichage des articles associés au libellé android for beginners

Android Tutorial : Using Intent to move from one activity to another and sending data via putExtra

Image
We talked in a previous tutorial on using Buttons and how to trigger an action following a button click. This tutorial is the fulfillment of the previous tutorial: Android tutorial for beginners:using Button, Listener and Toast . In the previous tutorial we have seen how to use a button and how to add listener to the button to trigger actions.We have seen how to show a toast (a short pop up message) after clicking the button. In this tutorial we will see how to move from an activity to another after clicking the button. Create a new project in your eclipse (File ==> New ==> Android Application Poject) and give the name of 'Intention' to your project. In your activity_main.xml put this code : <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:

Android User Interface Development for beginners

Image
The strength of Android is to have models of devices for all needs:  small screen's phones, big screen's phone, tablets,PDA,Smart TV etc. This is an advantage for users but a problem for android application developers. The problem with the screen size is a  burden for web developers, and Android apps developers will not escape the rule.  To define our user interfaces we need to use layouts that make up the  base class for containers of visual elements. They contain other views (buttons, lists, checkboxes, etc.) or other layouts.  Interfaces are defined using XML files. This format allows to have a graphical interface editor and to have a real separation between your Java (behavior) code and your interface. Everything that is done in XML could also be done in Java, though the code would be much more  complex to maintain.  The layout XML file All XML layout files must be placed in the /res/layout directory of your Android  project in order for the Android packa

Android programming first tutorial

Image
  Android is an "open source" operating system.It was created to allow developers to take full advantage of all that can offer a mobile device.  Android is dedicated to mobile devices, smartphones and tablets, Smart TV etc. In the year 2005, Google acquired Android Inc., a small startup in Palo Alto. Android is essentially based on the Linux kernel, but its interface was developed in Java.  Android is supported by a consortium made up of very diverse businesses, operators (T-Mobile, Bouygues Telecom, etc.), manufacturers (Samsung, LG, HTC, etc.) and many other company (eg smelters, with Intel, Qualcomm or Nvidia). This consortium is called the Open Handset Alliance (OHA). I. Development Environment  You can download the entire developement environment from this link : http://developer.android.com/sdk/index.html To develop an Android application you will need:  • The Eclipse code editor . • To develop Android programs with Eclipse, it must integrate the A