[Java for Android App Development] crazy4creationstudios:
Codes

Im using API level 17 the Rev. is 2 im using the latest version for x86 systems (32-bit)

My strings file looks like this:

<resources>

<string name="title_activity_socialpage1">Socialpage1</string>

<string name="action_settings">Settings</string>

</resources>

And my Main xml:

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

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

package="c4cs.try4.everydayagian"

android:versionCode="1"

android:versionName="1.0" >

<uses-sdk

android:minSdkVersion="8"

android:targetSdkVersion="8" />

<application

android:allowBackup="true"

android:icon="@drawable/ic_launcher"

android:label="@string/app_name"

android:theme="@style/AppTheme" >

<activity

android:name="c4cs.try4.everydayagian.MainActivity"

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

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

</activity>

<activity

android:name="c4cs.try4.everydayagian.Socialpage1"

android:label="@string/title_activity_socialpage1"

android:parentActivityName="c4cs.try4.everydayagian.MainActivity" >

<meta-data

android:name="android.support.PARENT_ACTIVITY"

android:value="c4cs.try4.everydayagian.MainActivity" />

<intent-filter>

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

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

</intent-filter>

</activity>

</application>

</manifest>

And finally, my Activity_main's XML:

<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"

android:paddingBottom="@dimen/activity_vertical_margin"

android:paddingLeft="@dimen/activity_horizontal_margin"

android:paddingRight="@dimen/activity_horizontal_margin"

android:paddingTop="@dimen/activity_vertical_margin"

tools:context=".MainActivity" >

<Button

android:id="@+id/button1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignParentLeft="true"

android:layout_alignParentTop="true"

android:layout_marginLeft="32dp"

android:text="Web" />

<Button

android:id="@+id/button2"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignBottom="@+id/button1"

android:layout_alignParentRight="true"

android:layout_marginRight="46dp"

android:text="Social" />

<Button

android:id="@+id/button3"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignLeft="@+id/button1"

android:layout_below="@+id/button1"

android:layout_marginTop="41dp"

android:text="To Do" />

<Button

android:id="@+id/button4"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignBaseline="@+id/button3"

android:layout_alignBottom="@+id/button3"

android:layout_alignRight="@+id/button2"

android:text="News" />

<Button

android:id="@+id/button5"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignRight="@+id/button3"

android:layout_below="@+id/button3"

android:layout_marginTop="48dp"

android:text="Weather" />

<Button

android:id="@+id/button6"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignBottom="@+id/button5"

android:layout_alignRight="@+id/button4"

android:text="Button" />

</RelativeLayout>