0% found this document useful (0 votes)
116 views

Android App Development NTCC

This document provides details about an in-house practical training project on Android app development submitted by Vikas Kumar, a student of B.Tech Computer Science at Amity School of Engineering & Technology. The project covers topics such as what is an app, Android versions, features of Android, how to create an Android Virtual Device in Android Studio, building a first Android app, and some common UI widgets in Android like buttons, toggles, checkboxes etc. It also includes code for a digital stopwatch and local time clock project and concepts for a digital alarm clock app.

Uploaded by

kanta devi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
116 views

Android App Development NTCC

This document provides details about an in-house practical training project on Android app development submitted by Vikas Kumar, a student of B.Tech Computer Science at Amity School of Engineering & Technology. The project covers topics such as what is an app, Android versions, features of Android, how to create an Android Virtual Device in Android Studio, building a first Android app, and some common UI widgets in Android like buttons, toggles, checkboxes etc. It also includes code for a digital stopwatch and local time clock project and concepts for a digital alarm clock app.

Uploaded by

kanta devi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

AMITY SCHOOL OF ENGINEERING & TECHNOLOGY

In-House Practical Training

On

Android App Development


Submitted by

Vikas Kumar
A41105219017
B.TECH (C.S.E)

Faulty Guide: Ms. Swati Vashisht


__________________________________ Introduction________________________________
What is an app?
App_is_also_know_as_"application"._An_aspplication_or_an_“app”_is_a_software_program__that_is
designed_for_a_specific_function_directly_for_the_user_which_can_be_access_easily_and_user_frie
ndly.

What is an Android? ____________________________________________

Android Version:
1. Android_1.0, 1.1(Base) 20.Android _10.0 (Android 10)
2. Android_1.5(Cupcake)
3. Android_1.6(Donut)
4. Android_2.0(Eclair)
5. Android_2.0.1(Eclair_0_1)
6. Android_2.1.x(Eclair_MR1)
7. Android_2.2.x(Froyo)
8. Android _2.3 - 2.3.2(Gingerbread)
9. Android _2.3.3 - 2.3.4(Gingerbread_MR1)
10. Android _3.0.x, 3.1.x, 3.2(HoneyComb)
11. Android _4.0 - 4.0.2, 4.0.3 4.0.4((Ice_Cream_Sandwich)
12. Android _4.1 - 4.1.1, 4.2 - 4.2.2,4.3(Jelly_Bean)
13. Android _4.4, 4.4W (Kitkat)
14. Android _5.0, 5.1(Lollipop)
15. Android _6.0 (Marshmallow)
16. Android _7.0 (Nougat)
17.Android _7.1.0 - 7.1.2 (Nougat)
18.Android _8.0-8.1 (Oreo)
19.Android _9.0 (Pie)
KNOWINNG ANDROID

Android App Development.


Android app is a set of different source code in a single place whose action
can be performed just by a single touch.
Android_programming_is_based_on_java_programming_language_so_if_we_have_basic_
understanding_on_Java_programming_then_it_will_be_a_fun_to_study_Android_app_
development.

Java in Android App Development.

Android Software Development Kit(Android_SDK) :

What is API Level ?


API (Application Programming /interface Level
is_an__integer_value_that_uniquely_identifies_the_framework_API_revision_
offered_by_a_version_of_the_Android_platform.

-----------------------------------------------------------------------------------------------------------------------------
Features of Android :
It_is_an_open_source_user_friendly_software
It_has_beautiful_user_interface
It _reduced_the_cost_of_development
It_has_rich_development_environment
It_support_single_and_bi-directional text
It_uses_Dalvik_virtual_machine- optimized_version_for_mobile..
-----------------------------------------------------------------------------------------------------------------------------

Android Application :

-----------------------------------------------------------------------------------------------------------------------------


____________________STARTING WITH ANDROID STUDIO_____________________
Android Virtual Device:

An_Android_Virtual_Device (AVD) is_a_configuration_that_defines_the_characteristics


of_an_Android_phone, tablet, Wear_OS, Android_TV,
or_Automotive_OS_device_that_you_want_to_simulate_in_the_Android_Emulator. The_
AVD_Manager_is_an_interface_you_can_launch_from_Android_Studio_that_helps_you
create_and_manage_AVDs.

How To Create a AVD

1. Open_the_AVD_(Android_Virtual_Device)_Manager_and_then_clicking_Tools -> AVD


_Manager.
2. Click_on_Create Virtual Device_ at_the_right-bottom_of_the_AVD_Manager_dialog-
window.
3. Choose_a_hardware_setup_ and_then_click_Next.
4. Select_the_system_image_for_a_particular_API_level_and_then_click_Next.
5. Change_AVD_properties_as_needed_and_then_click_Finish.

Build Your First App:


Additional Components:

Now_take_a_moment_to_review_the_most_important_files.

First,_be_sure_the_Project_window_is_open_(select View->ToolWindows-
>Project)_and_the_Android_view_is_selected_from_the_drop-
down_list_at_the_top_of_that_window._You_can_then_see_the_following_files:
_______________________SOME UI WIDGET IN ANDROID____________________

There_are_given_a_lot_of_android_widgets_with_simplified_examples_such_as_Bu
tton,_ToggleButton,_DatePicker,_TimePicker,_ProgressBar_etc.

Android widgets are easy to learn. The Mostly used android widgets with examples are
given below:

Android Button
Android Button is a clickable button with customizable colour,shape and buttons’s image;

Android Toast

It displays information for the short duration of time.

Toggle Button

ToggleButton is like a switch . It has two states ON/OFF.

Check Box

CheckBox is like a list-Button . If it is checked means true else False;


______________Digital Stopwatch-and-Local Time Clock Project_____________

This project implements the basics of Java TimeDate Class. Designed a Stopwatch with Lap
recorder using Java .

/
**************************************************************************/
public class stopwatch extends javax.swing.JFrame {
int i=0,j=0,k=0,l=0,dt=0,hr=0,min=0,sd=0,ms=0,cnt=0;
/**
* Creates new form stopwatch
*/
private Timer timer,t2;
public stopwatch() {
initComponents();

String s="",a="";

private void initComponents() {

jPanel_1 = new javax.jswing.J_Panel();


star_pause = new javax.Jswing.JToggle_Button();
lap_= new javax.swing.J_Button();
jScroll_Pane1 = new javax.jswing.JScroll_Panel();
j_ta_ = new javax.swing.JText_Area();
j_hours_ = new javax.jswing.J_Label();
j_mins_ = new javax.jswing.J_Label();
sec_ = new javax.jswing.J_Label();
jmsec_ = new javax.jswing.J_Label();
date_ = new javax.jswing.J_Label();
jMenuBar_1 = new javax.jswing.JMenu_Bar();
j_Menu1 = new javax.jswing.J_Menu();
jsave_ = new javax.jswing.JMenu_Item();
j_Menu2 = new javax.jswing.J_Menu();
j_MenuItem1 = new javax.jswing.JMenu_Item();

setDefaultClose_Operation(javax.swing.Window_Constants.EXIT_ON_CLOSE);
set_Title("Digital Watch & Stopwatch");
set_Background(new java.awt.Color(0, 0, 0));
addWindow_Listener(new java.awt.event.Window_Adapter() {
public void window_Opened(java.awt.event.WindowEvent evt) {
formWindow_Opened(evt);
}
});

startpause.setFont(new java.awt.Font("Rockwell", 0, 18)); // NOI18N


startpause.setForeground(new java.awt.Color(0, 204, 0));
startpause.setText("Start");
startpause.addAction_Listener(new java.awt.event.Action_Listener() {
public void actionPerformed(java.awt.event.Action_Event evt) {
startpauseActionPerformed(evt);
}
});

lap.setFont(new java.awt.Font("Rockwell", 0, 18)); // NOI18N


lap.setForeground(new java.awt.Color(0, 204, 0));
lap.setText("Reset");
lap.addAction_Listener(new java.awt.jevent.Action_Listener() {
public void actionPerformed(java.awt.jevent.Action_Event evt) {
lapActionPerformed(evt);
}
});

ta.setEditable(false);
ta.setColumns(20);
ta.setRows(5);
jScroll_Pane1.set_ViewportView(ta);

.DEFAULT_SIZE, 520, Short.MAX_VALUE))


.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(33, 33, 33)
.addComponent(startpause,
javax.swing.GroupLayout.PREFERRED_SIZE, 206,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPl
acement.RELATED, 93, Short.MAX_VALUE)
.addComponent(lap,
javax.swing.GroupLayout.PREFERRED_SIZE, 198,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Grou
pLayout.Alignment.BASELINE)
.addComponent(startpause,
javax.jswing.GroupLayout.PREFERRED_SIZE, 57,
javax.jswing.GroupLayout.PREFERRED_SIZE)
.addComponent(lap,
javax.jswing.GroupLayout.PREFERRED_SIZE, 57,
javax.jswing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(jScrollPane1,
javax.jswing.GroupLayout.PREFERRED_SIZE,
javax.jswing.GroupLayout.DEFAULT_SIZE, javax.j
swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);

private void lapActionPerformed(java.awt.event.ActionEvent evt) {


if(startpause.isSelected())
{
hr=Integer.parseInt(hours.getText());
min=Integer.parseInt(mins.getText());
sd=Integer.parseInt(sec.getText());
ms=Integer.parseInt(msec.getText());
cnt++;
ta.append("#"+cnt+" "+hours.getText()+":"+mins.getText()
+":"+sec.getText()+":"+msec.getText()+"\n");
}
else
{
cnt=0;
ta.setText("");
hours.setText("00");
mins.setText("00");
sec.setText("00");
msec.setText("00");
i=j=k=l=0;
}

_____________________________________User-Interface View: ___________________________________


_____________________Digital-Alarm-Clock-Project__________________________

Digital-Alarm-Clock android application is to provide a user to manage your daily schedules


Timetable for your work.
The main objective of this project is to learn how android studio works and the flow of
process cycle . How to manage files while designing an app ,etc.
Not only this you can set up your stopwatch while you are at workouts. Also, you can set the
Alarm for short interval during your work or office hours.
/**************************************************************************/

public class View: _ extends Fragment Activity {


protected static final String SCREEN_OFF = "screen off";
private final Store store =
InjectKt.global_Inject(Store.class).getValue();
private final IAlarmsManager alarmsManager =
InjectKt.global_Inject(IAlarmsManager.class).getValue();
private final Prefs sp = InjectKt.globalInject(Prefs.class).getValue();
private final Logger logger =
InjectKt.global_Logger("AlarmAlertFullScreen").getValue();
private final DynamicThemeHandler dynamicThemeHandler =
InjectKt.globalInject(DynamicThemeHandler.class).getValue();

protected Alarm mAlarm;

private boolean long_ClickToDismiss;

private Disposable disposableDialog = Disposables.disposed();


private Disposable subscription;

@Override
protected void on_Create(Bundle icicle) {
setTheme(dynamic_Theme_Handler.getIdForName(getClassName()));
super.onCreate(icicle);

if (getResources().get_Boolean(R.bool.isTablet)) {
// preserve initial rotation and disable rotation change
if (getResources().getConfiguration().orientation ==
Confi_guration.ORIENTATION_PORTRAIT) {
set_Requested_rOrientation(get_RequestedOrientation());
} else {

set_Requested_Orientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
} else {

set_Requested_Orientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}

final int id = getIntent().getIntExtra(Intents.EXTRA_ID, -1);


try {
mAlarm = alarmsManager.getAlarm(id);
final Window win = getWindow();
win.addFlags(Window_Manager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
// Turnon_the_screen_unless_we_are_being_launched_from_the

if (!get_Intent().get_Boolean_Extra(SCREEN_OFF, false)) {

win.addFlags(Window_Manager.Layout_Params.FLAG_KEEP_SCREEN_ON
| Window_Manager.Layout_Params.FLAG_TURN_SCREEN_ON
|
Window__Manager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON);
}

updateLayout();

subscription = store.getEvents()
.filter(new Predicate<Event>() {
@Override
public boolean test(Event event) throws Exception {
return (event instanceof Event.SnoozedEvent &&
((Event.SnoozedEvent) event).getId() == id)
|| (event instanceof Event.DismissEvent
&& ((Event.DismissEvent) event).getId() == id)
|| (event instanceof Event.Autosilenced
&& ((Event.Autosilenced) event).getId() == id);
}
}).subscribe(new Consumer<Event>() {
@Override
public void accept(Event event) throws Exception {
finish();
}
});
} catch_ (Exception e) {
_logger.e("Alarm not found", e);
}
}

private void set_Title() {


final String title_Text = mAlarm.getLabel_OrDefault();
set_Title(titleText);
Text_View Text_View = findViewById(R.id.alarm_alert_label);
textView.setText(titleText);
}

protected int getLayout_ResId() {


return R.layout.alert_fullscreen;
}

protected String getClass_Name() {


return Alarm_Alert_FullScreen.class.getName();
}

private void update_Layout() {


Layout_Inflater inflater = Layout_Inflater.from(this);

set_Content_View(inflater.inflate(getLayoutResId(), null));

final Button dismissButton = (Button)


findViewById(R.id.alert_button_dismiss);
dismissButton.setOn_Click_Listener(new Button.OnClickListener() {
@Override
public void on_Click(View v) {
if (longClickToDismiss) {

dismiss_Button.setText(getString(R.string.alarm_alert_hold_the_button_text))
;
} else {
dismiss();
}
}
});

dismiss_Button.set_OnLong_ClickListener(new
Button.OnLong_ClickListener() {
@Override
public boolean onLongClick(View v) {
dismiss();
return true;
}
});

/* Set the title from the passed in alarm */


set_Title();

_____________________________App’s User-Interface View: ___________________________


________________________________ CONCLUSION________________________________

________________________________ Bibliography ________________________________

-----------------------------------------------------------------------------------------------------------------------------

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy