![]()
TOTAL: 60 PERIODS OUTCOMES: At the end of the course, the student should be able to:
LIST OF EQUIPMENT FOR A BATCH OF 30 STUDENTS
Standalone desktops with Windows or Android or iOS or Equivalent Mobile Application Development Tools with appropriate emulators and debuggers - 30 Nos.
Aim: To Develop an application that uses GUI components, Font and Colours
List of Apparatus Hardware: 1 Personal Computer /user Software: 1. Eclipse 2. Andriod SDK 3. Java runtime Environment 1.
Principle App’s user interface is everything that the user can see and interact with. Android provides a variety of pre-build UI components such as structured layout objects and UI controls that allow us to build the graphical user interface for our app. Android also provides other UI modules for special interfaces such as dialogs, notifications, and menus.
Steps Step 1:Open Eclipse and select new andriod project Step 2: Give Project name and Select next Step 3: Choose the andriod version. Choose lowest andriod version. Step 4: Enter Package name. packagename must be two word separated by comma and click finish. Step 5:Go to package Explorer and select our project. Step 6: Click res directory -> layout -> activity_main -> Design Step 7: Insert the GUI components to Design (or) write xml code in activity_main Step 8: Click src directory -> Main_activity and write java code Step 9: Run the android application and the output is present in the android emulator
MainActivity package com.example;
import android.os; import android.app; import android.graphics; import android.view; import android.widget; import android.widget;
setContentView(R.layout_main); final TextView t1=(TextView)findViewById(R.id); Button b1=(Button) findViewById(R.id); Button b2=(Button) findViewById(R.id); b1(new View()
Aim: To develop an application that uses Layout Managers and event listeners.
List of Apparatus Hardware: 1 Personal Computer /user Software: 1. Eclipse 2. Andriod SDK 3. Java runtime Environment 1.
Principle A layout defines the visual structure for a user interface, such as the UI for an activity or app widget. Events are a useful way to collect data about user's interaction with interactive components of applications like button press, screen touch etc. The android framework maintains an event queue as first-in, first-out (FIFO) basis. Algorithm:
Step 1:Open Eclipse and select new andriod project Step 2: Give Project name and Select next Step 3: Choose the andriod version. Choose lowest andriod version. Step 4: Enter Package name. packagename must be two word separated by comma and click finish. Step 5:Go to package Explorer and select our project. Step 6: Click res directory -> layout -> activity_main -> Design Step 7: Insert the GUI components to Design (or) write xml code in activity_main Step 8: Click src directory -> Main_activity and write java code Step 9: Run the android application and the output is present in the android emulator
zero(this); nine(this); eig(this); sev(this); six(this); fiv(this); four(this); thr(this); two(this); one(this); dot(this); plus(this); mins(this); div(this); mul(this); eq(this); cl(this); et(this); >
case R.id: case R.id: case R.id: case R.id: case R.id: case R.id: case R.id:
String inDigit = ((Button) v).getText().toString(); if (s("0")) < s = inDigit; >else < s += inDigit; >et(s); if (lO == '=') < result = 0; lO = ' '; >break; case R.id: compute(); lO = '+'; break; case R.id: compute(); lO = '-'; break; case R.id: compute(); lO = '/'; break; case R.id: compute(); lO = '*'; break; case R.id: compute(); lO = '='; break; case R.id: result = 0; s = "0"; lO = ' '; et("0"); break; > >