GTU MCA SLMC Program 1 : Android HelloWorld Tutorial

GTU MCA SLMC Program 1 : Create “Hello World” application. That will display “Hello World” in the middle of the screen in the red color with white background

GTU MCA SLMC Program 1

Welcome to the New World of Android Programming! Here I have explained how to start programming using Android. Here in the SLMC Program 1 is practical subject for gtu mca semester 5 mobile computing. In Mobile computing subject of gtu mc semester 5, there is a detailed explanation of the how to built android apps. Practical subject code for the mobile computing is 2650019 : Software Lab in Mobile computing.

Great You are reached to Andriod tutorial which contains lots of article on android, java, servlet, JSP, C, JavaScript and more, must check out using above links or at the end of this article.

Before you start programming in android you need to aware of few terminology and tools. I suggest the best website for learning android programming is Its official website by Android. don’t forget to check out android tips and tricks

Tools required to develop and run your Android Program.

Android ADT Bundle (adt-bundle-windows-x86-20140702) : This tools contains major 2 folders. 1) Eclipse (Ide for development) and 2) SDK (Libraries for Android)

Here is complete hellow world android tutorial by video


Android Hello World Example Code

Location: res\layout

FileName: activity_main.xml


<RelativeLayout xmlns:android=””
tools:context=”gtu.moc.prog01.MainActivity” >

android:text=”GTU MOC Program 1 by Adarsh Patel” />



Location : src\package\

FileName :


package gtu.moc.prog01;

* GTU MCA SLMC Program 1
* Create “Hello World” application. That will display “Hello World” in the middle of the
* screen in the red color with white background

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends Activity {

protected void onCreate(Bundle savedInstanceState) {

public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(, menu);
return true;

public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == {
return true;
return super.onOptionsItemSelected(item);



Output of GTU MCA SLMC Program 1

GTU MCA SLMC Program 1

1 thought on “GTU MCA SLMC Program 1 : Android HelloWorld Tutorial

  1. Pingback: Android Quiz 1 : Android Test : Test Your Android Knowledge - Adarsh Patel (MCA)

Comments are closed.