Download ppt on android

Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.

 Each project contains  Activities  Layouts  XML files  AndroidManifest.xml Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 15 build  Autogenerated files  No need to modify them  Some are autogenerated  Each/ project contains  Activities  Layouts  XML files  AndroidManifest.xml Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 16 src  All the code of your application  The java folder contains… the java/


Programming with Android: Application Resources Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.

as dithering and tiling. Some properties of an XMLBitmap: android:src, android:antialias, android:dither, android:filter, android:gravity Luca Bedogni, Marco Di Felice - Programming with Android – Resources 37 Resources Types: drawable Drawable typeDescription BitMap// drawable-port-notouch-12key/ Resources Alternatives Matching Luca Bedogni, Marco Di Felice - Programming with Android – Resources 48 BEST PRACTICE Resources Alternatives  Provide default resources for your application.  Provide alternative/


Android Programming: Setup for Android Development Based on material from Adam Champion, Xinfeng Li, C. Horstmann [1], J. Bloch [2], C. Collins et al.

, MIPS system images Settings Now you’re ready for Android development! 12 Outline Introduction to Android Getting Started Android Programming 13 14 Android Highlights (1) Android apps execute on Dalvik VM, a “clean-room” implementation/ press “Run” button in toolbar 22 Underlying Source Code package edu.osu.helloandroid; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) /


Presented by Paul Deitel, CEO Deitel & Associates Co-Author of Android How to Program: An App-Driven Approach.

as an extraordinary collection of services— many of which are free  Chapter 11’s Route Tracker app uses the built-in Android Maps APIs to interact with the Google Maps web services  Chapter 14’s Weather Viewer app uses WeatherBug’s web services./Test Item File of short-answer questions  True/False and Fill-in-the-Blank  Solutions Manual  For both the Java and Android content, solutions to the end-of-chapter short-answer exercises  For the Java content, solutions are provided for most of the programming/


SE 390: Software Engineering for Mobile Devices Week 3: Android Studio Copyright © Steven W. Johnson February 1, 2013.

‘Button’ Need an import for each control added Come in grayed out (unused); that will change Lab: EditText 139 import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; Sourcecode.java: ‘Sourcecode’ is class name; file name Activity is the page (in Manifest) ‘screen’ is the/


Chapter 11: Discover! Incorporating Google Maps

ArrayList Customized constructors needed to define default markers Populate() method used to add each pushpin item to the display Android Boot Camp for Developers using Java Adding Overlay Items (continued) private ArrayList mOverlays = new ArrayList (); private Context/ the Internet and connect with the Google mapping feature Google mapping technology relies on the Android MapView class Android Boot Camp for Developers using Java Summary (continued) An instance of MapView uses the setBuiltInZoomControls/


Android – An Overview Mihai Fonoage February 10, 2009.

by another activity) Inactive: activity has not been launched yet or has been killed. 13 Application Components and Lifecycle (cont.) Source: http://code.google.com/android/reference/android/app/Activity.html#ActivityLifecyclehttp://code.google.com/android/reference/android/app/Activity.html#ActivityLifecycle 14 Outline Introduction Application Components and Lifecycle User Interfaces Binding applications and their components Data Storage Background Services Location-Based Services Accessing/


Android 8: Layouts and Input Controls Kirk Scott 1.

use to obtain a reference to the ViewGroup from your application. ViewGroup See more about the value for android:id below.value for android:id 13 android:layout_height Dimension or keyword. Required. The height for the group, as a dimension value (or dimension /use to obtain a reference to the View from your application.View See more about the value for android:id below.value for android:id 17 android:layout_height Dimension or keyword. Required. The height for the element, as a dimension value (or dimension/


Programming with Android: Application Resources Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.

getResources().getDrawable(name)  … Access to Application Resources: Java Luca Bedogni, Marco Di Felice - Programming with Android – Resources 45 Access to Application Resources: Java // Get a string resource named hello String hello=getResources().getString/-ldpi/ drawable-port-notouch-12key/ Resources Alternatives Matching Luca Bedogni, Marco Di Felice - Programming with Android – Resources 55 BEST PRACTICES Resources Alternatives  Provide default resources for your application.  Provide alternative /


Mobile Device Security

Install Limit Sensitive Apps Source: [31], Table 1. Our Work: DiffUser (2) Implement our system on Android using Java Override Android’s “Home” Activity for multi-user authentication, profile configuration Source: [31], Figure 2. From left to right/ of Mobile Devices Mobile Threats and Attacks Mobile Access Control Information Leaking Protection Case Studies iOS Android Android Security (1) Android built on Linux kernel, which provides User permissions model Process isolation Each app is assigned unique/


App Development for Android Prabhaker Mateti. Development Tools (Android) Java – Java is the same. But, not all libs are included. – Unused: Swing, AWT,

, lcdui Eclipse www.eclipse.org/www.eclipse.org/ ADT Plugin for Eclipse developer.android.com/developer.android.com/ Android SDK developer.android.com/developer.android.com/ Android Device Emulator Development Platforms: Linux, Mac OSX, or Windows 2Mateti/Android (Other) Languages and IDEs IntelliJ Idea Android Studio Corona for Android Android Native Development Kit (NDK) Scala 3Mateti/Android Application Runtime Each application is a different “user”. Each application gets a unique Linux/


Android Tutorial Larry Walters OOSE Fall 2011. References This tutorial is a brief overview of some major concepts…Android is much richer and more complex.

‘keystore’ Windows Vista: C:Users .androiddebug.keystore Windows XP: C:Documents and Settings .androiddebug.keystore OS X and Linux: ~/.android/debug.keystore  Use Keytool (comes with Java, in the bin directory with the other Java tools, should put that dir on/ system PATH) to get fingerprint keytool -list –v -alias androiddebugkey -keystore “ ” -storepass android -keypass android  If don’t include –v option, then will probably get only 1 fingerprint, and if it’s not MD5, then /


Chapter 1: Voilà! Meet the Android. Smartphones –Can browse the Web –Allow you to play games –Use business applications –Check e-mail –Play music –Record.

standards –Apps are free or paid (70/30 split between developer and wireless carrier) –Also sold through Amazon (amazon.com/appstore) and iTunes (both charge a $99 registration fee) 9 Android Boot Camp for Developers using Java Building the User Interface –Must be intuitive –Interface must not distract from functionality –Java code or XML layout files are needed XML method is/


One day Workshop on "Android Application Development" Organised by Department of IT, Govt. of Jharkhand Presenters: Chiranjeet Chakraborty Samir Lakra.

compilation and native execution of select frequently executed code segments ("traces") each time an application is launched. Android 4.4 introduced Android Runtime (ART) as a new runtime environment, which uses ahead-of-time (AOT) compilation to / along with any corresponding data so that they can be found and reused by other applications. Application Framework The Android framework includes the following key services:  Activity Manager – Controls all aspects of the application lifecycle and activity stack/


Mono for Android.net for Android HowTo: MultiTargeting-Portability- Interoperability for.netters 2011.06.30

ms(2015, {A,iOS,WP7})=85.5% – just say no! ;) 2011.06.30 MSCommunity.DevUG.Zgmcvjetko@holisticware.net8 Android 1 - Intro Android – Is linux with modified 2.6 kernel – Set of native libs – Application framework written in java Dalvik VM –/ Multiple displays – Different hardware configurations Assets + AssetManager – Makes managing assets easier 2011.06.30 MSCommunity.DevUG.Zgmcvjetko@holisticware.net20 Android 10 – App Fx 8 UI Layouts – Defined in xml (*.axml in VS) like XAML, XHTML – During build generated /


Programming with Android: The Google Maps Library Slides taken from Luca Bedogni Marco Di Felice.

the certificate used to sign the apps. mylaptop:~ marco$ keytool –list -keystore /Users/marcodifelice/.android/debug.keystore - storepass android -keypass android … androiddebugkey, Feb 1, 2011, PrivateKeyEntry, Certificate fingerprint (SHA1): A2:34:B1:A3:A5:BB/ and the onCameraChange(CameraPosition) method. Luca Bedogni, Marco Di Felice - Programming with Android – Google Maps Library (c) Luca Bedogni 2012 20 Android: Customize the Map Developers can handle the events on the Google Map. public class/


1/39 SamSung Electronics – CTO – SAIT – Graphics&OS Group – Linux Tech Part Lim,GeunSik 2008.11.10(Mon) Android Internals & Target.

ES FreeTypeWebkit SGL SSL Bionic Libc (53 pthread) Core Libraries Dalvik VM http://source.android.com.. DisplayDriver BluetoothDriver Flash Driver Binder DriverUSB Driver Keypad Driver CameraDriver WiFi Driver Audio Driver/ of Booting Sequence ☞ Bootchart is a tool for performance analysis and visualization of the GNU/Linux boot process www.bootchart.org 30/39 Android Porting 1– HTC Kaiser * Architecture: QualComm MSM7200A * CPU Core : ARM9 (modem processor) & ARM11 (application processor) 400 MHz Qualcomm/


Welcome to Android!. Let’s review what we know about the web Structure is _________ Presentation is ___________ Behavior is ___________ HTML CSS JavaScript.

its own internal content. Absolute dimension using dp/dip (density independent pixel) units. Example android:layout_width = “match_parent” android:layout_height = “wrap_content” android:layout_width = “120dp” layout_width and layout_height tip Warning!! When declaring a view in XML, / it). gone – Completely hidden, as if the view had not been added. Default Value visible Example android:visibility = “visible” Visibility Example visibility = invisible visibility = gone Many more XML Attributes The View class/


Android development Jinhua Chen 1.2.2011. Outline Introduction –Android features –Android architecture Android Application Development –Installing and.

and build the UI of application directly from source code Drawback: small changes in layout can have a big effect on the source code package com.android.hello; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new/


Android Basic XML Layouts Notes are based on: The Busy Coders Guide to Android Development by Mark L. Murphy Copyright © 2008-2009 CommonsWare, LLC. ISBN:

t cả các widget trong một LinearLayout phải đặt giá trị các thuộc tính kích thước android:layout_width and android:layout_height để cung cấp thông tin giải quyết vấn đề empty space. Các giá trị cho height và/of three columns (columns 1 through 3). 30 Label (URL) EditTextEditText-span Column 0Column 1Column 2 Button Cancel Column 3 Button OK android:layout_span="3" android:layout_columns="2" 31 5. Android – UI – Basic XML Layouts Table Layout 3. Table Layout – Example 31 Skip columns: 0, 1 Strech up to column/


Optimizing Android Performance with GCC Compiler Mar-12-2010, Fri Name - Geunsik Lim - leemgs.at.gmail.com Nick - invain ( 인베인 ) Blog -

locally: 5. Toolchain’s options: -ffunction-sections, -Wl,--gcsections, Thoughtful abstraction & specifications -fvisibility=hidden Linux-arm.mk Android.mk + *.h __attribute__((visibility(“public”))) function decl invain@fedora11$> make -j /tmp/GoOgLe.o: In function foo Bar./ Memory Management Dalvik Dalvik Heap lease object mspace_free new object mspace_calloc 32/43 5 th Korea Android Conference Performance Optimization Various Headrooms for Memory Management Optimizations. Some of them have the same size/


Android Fundamentals and Components Kris Secor Mobile Application Development.

setOrientation(int) Should the layout be a column or a row? Use "horizontal" for a row, "vertical" for a column. android:weightSum Defines the maximum weight sum. android:baselineAligned setBaselineAligned(boolean)android:baselineAlignedChildIndex setBaselineAlignedChildIndex(int)android:gravitysetGravity(int)android:measureWithLargestChildandroid:orientationsetOrientation(int)android:weightSum Control structure of interface, but commonly a sub-area  A view that shows items in a vertically scrolling list/


Welcome. Android Operation System And Security on Android Omar Alaql Salah Alamri Design of Secure Operating System.

all applications. Secure interprocess communication. Application signing. Application- defined and user-granted permissions. Android Architecture Security and privacy in Android Android device owners are not given root access to the operating system and sensitive partitions such / intents. Weakness Points Untrusted third party applications. difficult to identify reputable vendors Rooting. Rooting an Android device is akin to jail-breaking an iPhone. It opens out additional functionality and services to users/


CDD2.3 digest Jan 4, 2011 Jingtao. Android versions

.  CTS(an automatically compatibility test tool) test  Third party application test where is CDD http://source.android.com/compatibility/downloads.html requirement in CDD 3. software API compatibility 4. application packaging compatibility 5. multimedia compatibility/If the current application has explicitly requested that the Camera display be rotated via a call to the android.hardware.Camera.setDisplayOrientation() [Resources, 33] method, the camera preview MUST be mirrored horizontally relative to /


Android Dialog Boxes AlertDialog - Toast Notes are based on: Android Developers 11.

DialogBox The Toast View 28 Example: Showing Fancy Toast views. package cis493.dialogboxes; import android.app.Activity; import android.os.Bundle; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; public class ToastDemo2 extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super/


3 rd Korea Android Seminar 27-Mar(Fri), 2009 Lim,GeunSik OS Group, SAIT, Samsung Electronics.

http://digilander.libero.it/mcostalba/ http://digilander.libero.it/mcostalba/ 39/51 07. Opensource tools to help git 3 rd Korea Android Seminar Front Ends - TortoiseGit It is porting TortoiseSVN to TortoiseGit The latest release 0.4.2.0 This release can complete//tree/master http://github.com/spdr870/gitextensions/tree/master 41/51 07. Opensource tools to help git 3 rd Korea Android Seminar Front Ends - Gerrit Gerrit is a web based code review system, facilitating online code reviews for projects using the/


망고 100 보드로 놀아보자 -18 Android 메뉴 생성 및 아이콘 생성 (SPDIF,WM8960)

find-other-java-files,core/config/debug) else LOCAL_SRC_FILES += $(call find-other-java-files,core/config/ndebug) endif LOCAL_SRC_FILES += ethernet/java/android/net/ethernet/IEthernetManager.aidl soundchange/java/android/util/soundchange/ISoundChangeManager.aidl AIDL 은 Android Interface description language 의 약자 frameworks aseAndroid.mk 파일 수정 Android build (find-other-java-files) http://cafe.naver.com/embeddedcrazyboys define find-other-java-files $(call find-subdir-files,$(1) -name "*.java/


Programming Mobile Applications with Android 22-26 September, Albacete, Spain Jesus Martínez-Gómez.

boolean onKey(View v, int keyCode, KeyEvent event) { if(keyCode==KeyEvent.KEYCODE_ENTER) Toast.makeText(MainActivity.this, "Enter",Toast.LENGTH_LONG).show(); return false; } }); OSSCOM Programming Mobile Applications with Android 35 Programming Mobile Applications with Android ● Events.- View element events – The element of a spinner has been selected final Spinner mySpinner = (Spinner) findViewById(R.id.spinner1); mySpinner.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected/


© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.

®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 13 Android Boot Camp for Developers Using Java, 3rd Ed. Using the String Table in the Translations Editor (continued) © 2016 Cengage Learning/with the Button control. Event listeners such as the OnClickListener method wait for user interaction before executing the remaining code 52 Android Boot Camp for Developers Using Java, 3rd Ed. © 2016 Cengage Learning®. May not be scanned, copied or duplicated,/


Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 2: Simplify! The Android User Interface.

more flexibility in positioning than Linear layouts Must be changed from the linear default 5 Android Boot Camp for Developers Using Java, 2nd Ed. Using the Android User Interface (cont’d) –A Linear Layout organizes layout components in a vertical column/ activities A method is a set of Java statements included in a Java class The onCreate method initializes an Activity 36 Android Boot Camp for Developers Using Java, 2nd Ed. Summary (continued) The setContentView command displays the content on the screen /


Android Security Corrado Aaron Visaggio PhD, docente del Corso di Sicurezza delle Reti e dei Sistemi Software Università degli.

make background phone calls.With the same remote control capability, the destination number can be provided from a remote C&C server, as shown in Geinimi. Corrado Aaron Visaggio - Android Security26 Permissions Android permissions such as INTERNET, READ_PHONE_STATE, ACCESS_NETWORK_STATE, and WRITE_EXTERNAL_STORAGE are widely requested in both malicious and benign apps. SMS-related permissions, such as READ_SMS, WRITE_SMS, RECEIVE_SMS, and SEND_SMS. RECEIVE_BOOT_COMPLETED permission/


Advanced Science and Technology Letters Vol.63 (NGCIT 2014), pp.41-47 The Behavioral Analysis of Android Malware.

is too extensive. 5.2. Behavioral Detection At present, behavioral detection is a common method to detect Android malicious software. Both static behavioral detection and dynamic behavioral detection analyze the characteristic of the malicious software,/learning to establish relevant regulations to distinguish the malicious applications from the normal ones. Now the range of Android application software is continually expanding and its application forms are updated constantly, therefore, to keep its accuracy/


ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.

those for naming packages in the Java programming language). Your package name must be unique across all packages installed on the Android system. You can Edit this value independently from the application name or the company domain. Project location is the directory/Versions 5. Leave all of the other options (TV, Wear, and Glass) unchecked and click Next. CREATING A PROJECT WITH ANDROID STUDIO 6. Under Add an activity to, select Blank Activity and click Next. 7. Under Customize the Activity, change the /


@2015 Dr Faisal Nafie1 Android Introduction  World is contracting with the growth of mobile phone technology. As the number of users is increasing day.

changes, under the GNU General Public License version 2. @2011 Mihail L. Sichitiu4 5 Continue Features of AndroidAndroid is a powerful operating system competing with Apple 4GS and supports great features. Few of them are listed below/must declare all components in the application and should also declare all application requirements, such as the minimum version of Android required and any hardware configurations required  Non-code application resources (images, strings, layout files, etc.) should include/


Top List Of Android Projects Ideas For CSE, MCA And IT Engineering Students.

method is applicable to traffic safety, road navigation, remote business, etc. http://www.elprocus.com/ Top List of Android Projects Ideas for CSE, MCA and IT Engineering Students Automatic Brightness Control of the Hand-held Device Display with Low Illumination/battery and also improves the performance of the system or response time. http://www.elprocus.com/ Top List of Android Projects Ideas for CSE, MCA and IT Engineering Students  Many mobile applications retrieve content from remote servers via user/


Android Programming: Setup for Android Development Based on material from Adam Champion, Xinfeng Li, C. Horstmann [1], J. Bloch [2], C. Collins et al.

, MIPS system images Settings Now you’re ready for Android development! 12 Outline Introduction to Android Getting Started Android Programming 13 14 Android Highlights (1) Android apps execute on Dalvik VM, a “clean-room” implementation/ press “Run” button in toolbar 22 Underlying Source Code package edu.osu.helloandroid; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) /


Android Application Development with Java SCSR 3243 (NetCentric Computing) 2014/15-2 Mohd Soperi

global address lookup, calendar sync, remote wipe Bluetooth support for voice dialing and contact sharing Android Milestone Android version SDK release*Notable updates 2.3 Gingerbread December 2010 Redesigned copy/paste WebM video compression support/% 5.1220.7% Ice cream Sandwich Android 4.0+ Jelly Bean Android 4.1.1 Gingerbread Android 2.3 Android Application Development Eclipse IDE/ Android Studio Android SDK Android Emulator Android Mobile Device Writing Android App using Java No public static void main/


Unit IV Android Overview. WHAT IS ANDROID?  A Software platform and operating system for mobile.  Based on the Linux kernel.  An open source  Android.

plugins.  Uses Linux to provide core system services Security Memory management Process management Power management Hardware drivers Android Features 6 FeatureDescription Beautiful UIAndroid OS basic screen provides a beautiful and intuitive user interface. ConnectivityGSM/EDGE, / & configurations across devices  Making source code available to everyone inevitably invites the attention of hackers.  Android operating system uses more amount of battery as compared to normal mobile phones.  As there are so /


Android App Development. Android Architecture Linux kernel Libraries Android Runtime Application Framework Applications Application Components Activities.

create View and ViewGroup objects (and manipulate their properties) programmatically. Building & running Android app Components of Android App App Component Purpose ActivitiesUI and handle the user interaction to the smartphone screen(/ packages, except 2.Android specific packages. Below are android specific packages available for all Android apps import android.app.Activity; import android.content.*; import android.os.*; import android.util.Log; import android.view.*; import android.widget.*; A radio /


Android Internet Content Part 1 – RSS Feeds 18 Victor Matos Cleveland State University Notes are based on: Android Developers

org.xml.sax.SAXException; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.DialogInterface.OnClickListener; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import android.widget.AdapterView.OnItemClickListener; 37/


Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Scienze dellInformazione Università di Bologna.

Tools This will make a virtual bridge between eclipse and the SDK Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 9 Create a Project Create it under Eclipse Assign an SDK target Choose an/(and cheap) to test application on different configurations/resolutions/storage Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 11 Hello World, Android! Anatomy of an application: Activity – what is started View – what is seen Intent – how to /


Programming with Android: Module Overview

of single applications … 5 Android … How? The Android Project Android Architecture and Components Android Component: Activities Android Component: Intents Android Resources System Android Layout: View and ViewGroups Android Event Management Systems Android Animation, Menu, Dialog Android Data Management 9 Android … How? Android Network Management System Android and Google Maps Android Gesture and TextSpeech Android System Services Android and Bluetooth Android for Tablets 10 Android … How? Textbook Author/


Tutorial for black box newcomers

specifications, and traditional smartphone layouts Storage SQLite, a lightweight relational database, is used for data storage purposes Connectivity Android supports connectivity technologies including GSM/EDGE, IDEN, CDMA, EV- DO, UMTS, Bluetooth, Wi-Fi, LTE, / 2D bit blits (with hardware orientation, scaling, pixel format conversion) and accelerated 3D graphics. Features Multi-touch Android has native support for multi-touch which was initially made available in handsets such as the HTC Hero. The feature/


Android Overview and Android Development Environment

system services Security Memory management Process management Power management Hardware drivers http://developer.android.com/guide/basics/what-is-android.html Android Features Application framework enabling reuse and replacement of components Dalvik virtual machine optimized/ claim 50,000,000,000 downloads Whats old is new - Mac vs. PC iPhone vs. Android??? iPhone vs. Android Developer Revenues Business Strategy: attract developers with comparison of revenue generated by applications, average revenue per /


Intro to Android Development. Getting started 1.Install Android SDK (includes Eclipse; 2.If using Windows.

( "andy1", "MainActivity.sendMessage: hello" ); d – debug e – error i – information v – verbose w – warning Accessing the log file via eclipse ANDROID WIDGETS Android widget classes More than 100! – See http://developer.android.com/reference/android/widget/package- summary.html.http://developer.android.com/reference/android/widget/package- summary.html Button EditText ImageButton ImageView NumberPicker PopupMenu RadioButton, RadioGroup Toast ToggleButton LAYOUT EDITOR Palette contents disappear when Show/


Programming with Android: Activities and Intents Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.

the file: AndroidManifest.xml  Add a child element to the tag: Luca Bedogni, Marco Di Felice - Programming with Android – Intents 6 Activities and AndroidManifest.xml  Each activity has its Java class and layout file. public class FirstActivity /of the wireless interfaces ACTION_DISPLAY_SETTINGSOpen the system setting of the display Luca Bedogni, Marco Di Felice - Programming with Android – Intents 19 Intent Components  Example of Implicit Intent that initiates a web search. public void doSearch(String /


Programming with Android: Activities and Intents Luca Bedogni Marco Di Felice Dipartimento di Informatica – Scienza e Ingegneria Università di Bologna.

Layout file  Lifecycle with dif fere nt states  XML Tag in AndroidManifest.xml More on Activities: Saving resources MyActivity.java activity_main.xml ACTIVEPAUSEDSTOPPED Luca Bedogni, Marco Di Felice - Programming with Android – Intents 7 Activities and AndroidManifest.xml public class FirstActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_first); } public class SecondActivity extends Activity { public void/


Programming with Android: Widgets and Events Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.

Bedogni 2012 7  Widgets can be created in the XML layout files Widgets: Java and XML code < TextView android:id="@+id/textLabel” android:width=“100dp” android:height=“100dp” android:layout_width="match_parent" android:layout_height="wrap_content” android:visibility="visible” android:enabled="true” android:scrollbars="vertical” …. /> Luca Bedogni, Marco Di Felice - Programming with Android – Resources (c) Luca Bedogni 2012 8  Widgets can be created in Java  Widgets can be created in XML/


Mobile Application Development with ANDROID Mobile Application Development with ANDROID d.

Sony Ericsson @2010 Mihail L. Sichitiu9 Tablets Velocity Micro Cruz Gome FlyTouchAcer beTouch Dawa D7 Toshiba Android SmartBook Cisco Android Tablet Hardware Android is not a single piece of hardware; its a complete, end-to- end software platform that/of hardware configurations. Everything is there, from the bootloader all the way up to the applications. Platform Google Android Android’s Context: Mobile Market Player$ Stakeholders: Mobile network operators want to lock down their networks, controlling and /


Android Application Development Tutorial Accessing Sensors and the Network Deepa Shinde and Cindy Atherton.

txtPhoneNo and txtMessage ◦Add the button ID "Send SMS“ SMS Sending Step 3 Import Classes and Interfaces import android.app.Activity; import android.app.PendingIntent; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsManager; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; SMS Sending Step 4 Write the SMS class public class SMS extends Activity { Button btnSendSMS; EditText/


Ads by Google