Android App Development NTCC
Android App Development NTCC
On
Vikas Kumar
A41105219017
B.TECH (C.S.E)
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
-----------------------------------------------------------------------------------------------------------------------------
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:
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
Toggle Button
Check Box
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="";
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);
}
});
ta.setEditable(false);
ta.setColumns(20);
ta.setRows(5);
jScroll_Pane1.set_ViewportView(ta);
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())
);
@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);
}
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);
}
}
set_Content_View(inflater.inflate(getLayoutResId(), null));
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;
}
});
-----------------------------------------------------------------------------------------------------------------------------