rz Android Hello World Tutorial
The Android Project created in this tutorial was developed using www.programmr.com online compiler.
1) Create Android Project
project name: rzAndroidHelloWorld
package name: com.example.rzAndroidHelloWorld
2) Source Codes
| 
AndroidManifest.xml | 
| 
<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
      package="com.example.rzAndroidHelloWorld" 
      android:versionCode="1" 
      android:versionName="1.0"> 
    <application android:label="@string/app_name" android:icon="@drawable/ic_launcher"> 
        <activity android:name="rzAndroidHelloWorld" 
                  android:label="@string/app_name"> 
            <intent-filter> 
                <action android:name="android.intent.action.MAIN" /> 
                <category android:name="android.intent.category.LAUNCHER" /> 
            </intent-filter> 
        </activity> 
    </application> 
<uses-sdk android:minSdkVersion="8" /> 
</manifest> | 
| 
rzAndroidHelloWorld.java | 
| 
package com.example.rzAndroidHelloWorld;       
import android.app.Activity;       
import android.os.Bundle;       
public class rzAndroidHelloWorld extends Activity       
{       
    /** Called when the activity is first created. */       
    @Override       
    public void onCreate(Bundle savedInstanceState)       
    {       
        super.onCreate(savedInstanceState);       
        setContentView(R.layout.main); 
    }       
}         | 
| 
main.xml | 
| 
package com.example.rzAndroidHelloWorld;       
import android.app.Activity;       
import android.os.Bundle;       
public class rzAndroidHelloWorld extends Activity       
{       
    /** Called when the activity is first created. */       
    @Override       
    public void onCreate(Bundle savedInstanceState)       
    {       
        super.onCreate(savedInstanceState);       
        setContentView(R.layout.main); 
    }       
}         | 
4) Running On Programmr
5) Download
5.1) Source Codes
5.2) APK--
 
 
 
 
 
 
 
 
 
0 Comments