[Galaxy Y GT-S5360 Themes and Apps] Afrizal Firmansyah:
Today I Will Tell

[HOW TO MAKE A SIMPLE APPLICATION TO ADD BACKGROUND IMAGE IN THE FORM MENU]

Okay Direct Only

Software required:

- Eclipse Gallileo

- Android SDK windows (in this practice, Raqheel not use the SDK bundle)

- ADT 10:00

- Jdk-6u10-windows-i586

The steps:

- Open Eclipse Gallileo, then select the Help menu, select Install New Software.

- Locate the directory where the ADT in your directory by selecting the Archive ... button, then name the new software that will be installed in the Eclipse Gallileo. Here Afrizal love Android Plugins name. Then click OK, and follow the further instructions until installation is complete and appears request to restart Eclipse Gallileo.

- Select Window - Preferences, select the Android menu, then enter the location of the directory where the SDK is via the Browse ..., then select Apply, and Ok.

- Create an Android Virtual Device (AVD) by using the menu Window - Android SDK and AVD Manager, select New and create a new setting for the virtual device that readers want. Here, Afrizal will create a AVD for Froyo (Android 2.2).

- Once completed, we began to create Android applications with a select menu File - New - Android Project. Form contents with the following conditions:

Project Name: try (name may be customized desires)

Application Name: try (name may be customized desires)

Build Target: Android tick for options 2.2

Package Name: com.num (name may be customized desire, but must start with the word "com. (Name)")

Min SDK Version: 8 (adjust the API target)

Then Finish. 2 Create a new layout in the folder res / layout with numone name and type numtwo with Android XML File. Then create 2 new class in the folder src / com.num with numone name and numtwo with type Class. Then copy the source code below in accordance with the xml name and class of each and then Save.

Source code:

main.xml

<? Xml version = "1.0" encoding = "utf-8"?>

<AbsoluteLayout

android: id = "@ + id/widget0"

android: layout_width = "fill_parent"

android: layout_height = "fill_parent"

android: background = "@ drawable / mypic"

xmlns: android = "http://schemas.android.com/apk/res/android">

<Button

android: id = "@ + id / name"

android: layout_width = "wrap_content"

android: layout_height = "wrap_content"

android: text = "Name"

android: layout_x = "137dp"

android: layout_y = "23dp" />

<Button

android: id = "@ + id / class"

android: layout_width = "fill_parent"

android: layout_height = "wrap_content"

android: text = "Class"

android: layout_x = "0DP"

android: layout_y = "75dp" />

<Button

android: id = "@ + id / NPM"

android: layout_width = "wrap_content"

android: layout_height = "wrap_content"

android: text = "N P M"

android: layout_x = "136dp"

android: layout_y = "128dp" />

</ AbsoluteLayout>

numone.xml

<? Xml version = "1.0" encoding = "utf-8"?>

<AbsoluteLayout

android: id = "@ + id/widget0"

android: layout_width = "fill_parent"

android: layout_height = "fill_parent"

xmlns: android = "http://schemas.android.com/apk/res/android">

<TextView

android: id = "@ + id / txtnama"

android: layout_width = "fill_parent"

android: layout_height = "wrap_content"

android: text = "my name"

android: textSize = "27sp"

android: typeface = "monospace"

android: textStyle = "bold"

android: gravity = "center"

android: layout_x = "0DP"

android: layout_y = "136dp" />

<TextView

android: id = "@ + id / ketsatu"

android: layout_width = "fill_parent"

android: layout_height = "wrap_content"

android: text = "Raqheelcaze"

android: textSize = "27sp"

android: typeface = "monospace"

android: textStyle = "bold"

android: gravity = "center"

android: layout_x = "0DP"

android: layout_y = "179dp" />

</ AbsoluteLayout>

numtwo.xml

<? Xml version = "1.0" encoding = "utf-8"?>

<AbsoluteLayout

android: id = "@ + id/widget0"

android: layout_width = "fill_parent"

android: layout_height = "fill_parent"

xmlns: android = "http://schemas.android.com/apk/res/android">

<TextView

android: id = "@ + id / txtkelas"

android: layout_width = "fill_parent"

android: layout_height = "wrap_content"

android: text = "class I"

android: textSize = "27sp"

android: typeface = "monospace"

android: textStyle = "bold"

android: gravity = "center"

android: layout_x = "0DP"

android: layout_y = "136dp" />

<TextView

android: id = "@ + id / ketdua"

android: layout_width = "fill_parent"

android: layout_height = "wrap_content"

android: text = "4KB04"

android: textSize = "27sp"

android: typeface = "monospace"

android: textStyle = "bold"

android: gravity = "center"

android: layout_x = "0DP"

android: layout_y = "179dp" />

</ AbsoluteLayout>

numthree.xml

<? Xml version = "1.0" encoding = "utf-8"?>

<AbsoluteLayout

android: id = "@ + id/widget0"

android: layout_width = "fill_parent"

android: layout_height = "fill_parent"

xmlns: android = "http://schemas.android.com/apk/res/android">

<TextView

android: id = "@ + id / txtnpm"

android: layout_width = "fill_parent"

android: layout_height = "wrap_content"

android: text = "NPM me"

android: textSize = "27sp"

android: typeface = "monospace"

android: textStyle = "bold"

android: gravity = "center"

android: layout_x = "0DP"

android: layout_y = "136dp" />

<TextView

android: id = "@ + id / kettiga"

android: layout_width = "fill_parent"

android: layout_height = "wrap_content"

android: text = "20109642"

android: textSize = "27sp"

android: typeface = "monospace"

android: textStyle = "bold"

android: gravity = "center"

android: layout_x = "0DP"

android: layout_y = "179dp" />

</ AbsoluteLayout>

coba.java

com.num package;

android.app.Activity import;

android.os.Bundle import;

android.content.Intent import;

android.view.View import;

android.view.View.OnClickListener import;

public class num extends Activity implements OnClickListener {

/ ** Called when the activity is first created. * /

@ Override

public void onCreate (Bundle savedInstanceState) {

super.onCreate (savedInstanceState);

setContentView (R.layout.main);

View name = findViewById (R.id.nama);

nama.setOnClickListener (this);

View class = findViewById (R.id.kelas);

kelas.setOnClickListener (this);

View NPM = findViewById (R.id.npm);

npm.setOnClickListener (this);

}

public void onClick (View v) {

switch (v.getId ()) {

R.id.nama case:

Inten1 intent = new Intent (num.this, numone.class);

num.this.startActivity (inten1);

break;

R.id.kelas case:

Inten2 intent = new Intent (num.this, numtwo.class);

num.this.startActivity (inten2);

break;

R.id.npm case:

Inten3 intent = new Intent (num.this, numthree.class);

num.this.startActivity (inten3);

break;

}}}

numone.java

com.num package;

android.app.Activity import;

android.os.Bundle import;

public class extends Activity {numone

public void onCreate (Bundle savedInstanceState)

{

super.onCreate (savedInstanceState);

setContentView (R.layout.numone);

}}

numtwo.java

com.num package;

android.app.Activity import;

android.os.Bundle import;

public class extends Activity {numtwo

public void onCreate (Bundle savedInstanceState)

{

super.onCreate (savedInstanceState);

setContentView (R.layout.numtwo);

}}

numthree.java

com.num package;

android.app.Activity import;

android.os.Bundle import;

public class extends Activity {numthree

public void onCreate (Bundle savedInstanceState)

{

super.onCreate (savedInstanceState);

setContentView (R.layout.numthree);

}}

*

Create a new folder in the res / layout as the "drawable", then copy the image to be inserted into form. In this project, Raqheel images with mypic name. Sign in to AndroidManifest.xml and then copy the source code to AndroidManifest.xml below.

AndroidManifest.xml

<? Xml version = "1.0" encoding = "utf-8"?>

<Manifest xmlns: android = "http://schemas.android.com/apk/res/android"

package = "com.num"

android: versionCode = "1"

android: versionName = "1.0">

<uses-sdk android:minSdkVersion="8" />

<application android:icon="@drawable/icon" android:label="@string/app_name">

<Activity android: name = ". Num"

android: label = "@ string / APP_NAME">

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />

</ Intent-filter>

</ Activity>

<activity android:name=".numone"> </ activity>

<activity android:name=".numtwo"> </ activity>

<activity android:name=".numthree"> </ activity>

</ Application>

</ Manifest>

Then Save. After that, click Run As - Android Application. Wait until the process is complete, and you can see the results. :D

Thank You For Reading This Guide