Saturday, January 10, 2015

101-Learn Android On Programmr

101-Learn Android On Programmr provides a learning platform for beginners to learn Android Apps Development without having to install anything on their computer.
You need to register an account with before start using the platform.
After registration is done, go to the URL to create an Android Project.

1) Create a new Android Project

A new Android Project has been created.
You get a simple code editor, compiler and emulator to test your Android Project now.

2) Check the important files

There are three important files that will be further edited as we develop our Android Apps namely and main.xml. The name AndroidManifest.xml is fixed ie cannot be changed into other names. However, the name and main.xml can be changed into other names provided that you know how to perform the changes correctly.
AndroidManifest.xml contains the important configuration for the Android Apps. contains the codes to control the Android program flow.
main.xml contains the codes for Android screen layout.

3) Observe the file content

How are these three files related?
AndroidManifest.xml tells the Android OS to find the controller file ie MyAndroid tells the Android OS to load the layout from R.layout.main.xml
File Name: AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
    <application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
        <activity android:name="MyAndroid"
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
<uses-sdk android:minSdkVersion="8" />
File Name:
package com.example.MyAndroid;      
import android.os.Bundle;      
public class MyAndroid extends Activity      
    /** Called when the activity is first created. */      
    public void onCreate(Bundle savedInstanceState)      
FIle Name: res/layout/main.xml
<?xml version="1.0" encoding="utf-8"?>    
<LinearLayout xmlns:android=""    
    android:text="Hello MyAndroid"    

4) Run Android Apps on Emulator

Programmr provides an online Emulator to run and test the functionality of an Android apps.
First, click the Compile button to compile and see if there is any syntax error.
Then, click the Run button to run the apps.

5) What are the languages that we need to learn in order to develop Android Apps?

Developing Android Apps through this way requires a person to know Java and XML. Both languages have their own complexity and learning curve.
A simple approach to learn Android Apps development easily is to start with XML first.
Learn to create some layouts using XML.
As you see your Apps running, you may gain more interests and motivation to learn Java as well.

No comments:

Post a Comment