Touch Cloud Subtitle Android SDK th 2013 Ghady

Touch Cloud Subtitle Android SDK th, 2013 Ghady Rayess – Jan 19 touch | Title of presentation | Date DD/MM/YYYY

Introduction to Android Operation System o Android is an operating system based on Linux with a Java programming interface. Subtitle o The Android Software Development Kit (Android SDK) provides all necessary tools to develop Android applications. o This includes a compiler, debugger and a device emulator, as well as its own virtual machine to run Android programs. touch | Title of presentation | Date DD/MM/YYYY

Introduction to Android Google Play o Google Play is the premier store for distributing Android apps. o It’s preinstalled on more than 400 million devices worldwide, a number growing by more than a million every day. Subtitle o Android users have downloaded more than 25 billion apps from Google Play, growing at a rate of more than 1. 5 billion per month. touch | Title of presentation | Date DD/MM/YYYY

Introduction to Android Quick facts Subtitle touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Android versions Version 4. 2 4. 1. x 4. 0. x Subtitle 3. 2 3. 1 2. 3. 3– 2. 3. 7 2. 3– 2. 3. 2 2. 0– 2. 1 1. 6 1. 5 Code name Jelly Bean Ice Cream Sandwich Honeycomb Gingerbread Froyo Eclair Donut Cupcake touch | Title of presentation | Date DD/MM/YYYY Release date 13 -Nov-12 9 -Jul-12 16 -Dec-11 15 -Jul-11 10 -May-11 9 -Feb-11 6 -Dec-10 20 -May-10 26 -Oct-09 15 -Sep-09 30 -Apr-09 API level 17 16 15 13 12 10 9 8 7 4 3 Distribution 0. 80% 5. 90% 27. 50% 1. 20% 0. 40% 50. 60% 0. 20% 10. 30% 2. 70% 0. 30% 0. 10%

Android Development Tools Android SDK o The Android Software Development Kit (SDK) contains the necessary tools to create, compile and package Android application. o The Android SDK also provides an Android device emulator, so that Subtitle Android applications can be tested without a real Android phone. o You can create Android virtual devices (AVD) via the Android SDK, which run in this emulator. o The Android SDK contains the Android debug bridge (adb) tool which allows to connect to an virtual or real Android device. touch | Title of presentation | Date DD/MM/YYYY

Android Development Tools SDK Manager: For managing/updating available SDKs Subtitle touch | Title of presentation | Date DD/MM/YYYY

Android Development Tools AVD Manager: Creating/Managing Virtual Devices Subtitle touch | Title of presentation | Date DD/MM/YYYY

Android Development Tools Android Emulator Subtitle touch | Title of presentation | Date DD/MM/YYYY

Hello World Creating a Project File -> New -> Android Application Project Proceed with default values Subtitle touch | Title of presentation | Date DD/MM/YYYY

Hello World Activities, XML Layout Files, Values: Strings Subtitle touch | Title of presentation | Date DD/MM/YYYY

Hello World Activities Subtitle touch | Title of presentation | Date DD/MM/YYYY

Hello World XML Layout Files: Graphical Layout & xml code Subtitle touch | Title of presentation | Date DD/MM/YYYY

Hello World Resources: Strings Subtitle touch | Title of presentation | Date DD/MM/YYYY

Apstrata Android SDK Apstrata Client Subtitle http: //wiki. apstrata. com/display/doc/Android+SDK touch | Title of presentation | Date DD/MM/YYYY

Apstrata SDK Apstrata Client o Signed with username/password: Apstrata. Client. Android(String base. Url, String key, String user, String password, Auth. Mode auth. Mode) o Signed with secret: Apstrata. Client. Android(String base. Url, String key, String secret, Auth. Mode auth. Mode) Subtitle o Unsigned: Apstrata. Client. Android(String base. Url, String key, Auth. Mode auth. Mode) touch | Title of presentation | Date DD/MM/YYYY

Apstrata SDK API Calls o JSON Response: String call. APIJson(String method. Name, List<Name. Value. Pair> params, Map<String, List<File>> files) o XML Response: Subtitle public String call. APIXml(String method. Name, List<Name. Value. Pair> params, Map<String, List<File>> files) touch | Title of presentation | Date DD/MM/YYYY

Apstrata SDK Parameters o Passed to API Calls as List<Name. Value. Pair> params o Creating a List of <Name. Value. Pair> List<Name. Value. Pair> parameters = new Array. List<Name. Value. Pair>(); Subtitle parameters. add(new Basic. Name. Value. Pair(param 1 Key, param 1 Value)); touch | Title of presentation | Date DD/MM/YYYY

Apstrata SDK Files o Passed to API Calls as Map<String, List<File>> files o Creating a Map of <String, List<File>> List<File> files = new Array. List<File>(); Subtitle list. add(my. File 1); Files. put(files. Key, files); touch | Title of presentation | Date DD/MM/YYYY

Apstrata Example In Hello. World. Project: Part A: Making Apstrata Call – In Main. Activity. java: • Create Apstrata. Client using username and password from previously created Asptrata account • Choose an Apstrata API for testing • Create parameters and files • Call Asptrata API Subtitle • Log Result Part B: Displaying Result in Text. View • Create a new Text. View in activity_main. xml • Obtain reference to Text. View in Main. Activity. java • Display Apstrata API result in Text. View touch | Title of presentation | Date DD/MM/YYYY

Apstrata Example Part 1 Code Subtitle touch | Title of presentation | Date DD/MM/YYYY

Choose a concert Concerts Project Concert A Overview Concert B + Concert C Total Buy tickets # tickets $$ Buy Upload images Subtitle Choose a concert Concert A Concert B Concert C img 1 img 2 img 3 Desc img 4 img 5 Upload an image touch | Title of presentation | Date DD/MM/YYYY Title Tags Save

Concerts Project Exercise 1: Get List of Concerts. Activity • Send Request to get list of concerts in JSON format • Parse received JSON response • Populate a list of Concerts • Show received concerts in List. View Subtitle Concert • key: String • title: String • ticket. Price: double • description: String • date: Date • document. Key: String • picture. Url: String touch | Title of presentation | Date DD/MM/YYYY
![Concerts Project Exercise 1: Get List of Concerts Subtitle Eclipse [String get. Concerts()] touch Concerts Project Exercise 1: Get List of Concerts Subtitle Eclipse [String get. Concerts()] touch](http://slidetodoc.com/presentation_image_h2/dd5ee55080c5ae241e4f8110b133403b/image-24.jpg)
Concerts Project Exercise 1: Get List of Concerts Subtitle Eclipse [String get. Concerts()] touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 1: Get List of Concerts – Solution Subtitle http: //www. foo. mobi/cloud/Concerts. Activity. java touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 1: Get list of concerts – Sample Response {"response": {"metadata": {"request. Id": "8 f 401989 -515 b-4204 -a 539 -7239769 c 93 ce", "status": "success", "status. Code": "200" }, Subtitle "result": {"documents": [{"key": "David. Guatto. Concert", "version. Number": "1. 0", "title": "David Guatto gone wild", "ticket. Price. LL": "80000. 0", "picture": "David. Guatto. Gone. Wild. jpg", "description": "Best Techno event of the year", "date": "2012 -11 -23 T 00: 00+0000", "apsdb. document. Key": "David. Guatto. Concert"}, ……. ] } } touch | Title of presentation | Date DD/MM/YYYY }

Concerts Project Exercise 2: Buy a Concert Ticket Buy. Tickets. Activity • Populate user interface with concert parameters • When user clicks Buy, send request with the following: name, msisdn, unit. Price, quantity, concert. Title Subtitle • Parse received JSON response • Show success or fail message touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 2: Buy a Concert Ticket Subtitle Eclipse [String buy. Concert. Ticket ()] touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 2: Buy a Concert Ticket – Solution Subtitle http: //www. foo. mobi/cloud/Buy. Tickets. Activity. java touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 2: Buy a Concert Ticket – Sample Response {"response": {"metadata": {"request. Id": "181 eef 41 -42 fd-457 f-a 106 -1135379762 a 9", "status": "success", "status. Code": "200" }, "result": Subtitle {"status": "success", "transaction. Id": "b 5077 a 0 f-7 a 10 -45 e 0 -a 97 f-8 d 913281647 d" } } } touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 3: Get Concert Gallery Images Concert. Gallery. Activity 1. Send Request to get list of concert images in JSON format 2. Parse received JSON response 3. Show received images in Grid. View Subtitle Gallery. Image • key: String • title: String • picture. Url: String touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 3: Get Concert Gallery Images Subtitle Eclipse [String get. Concert. Gallery ()] touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 3: Get Concert Gallery Images – Solution Subtitle http: //www. foo. mobi/cloud/Concert. Gallery. Activity. java touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 3: Get Concert Gallery Images – Sample Response {"response": {"metadata": {"request. Id": "8 bfd 1716 -0 e 99 -48 ec-a 4 fd-129 a 04 bf 0 abb", "status": "success", "status. Code": "200" }, Subtitle "result": {"documents": [{"key": "image 4", "version. Number": "1. 0", "picture": "David. Guatto 2. jpg", "title": "pic 4" }, {"key": "image 3", "version. Number": "1. 0", "picture": "David. Guatto 1. jpg", "title": "pic 3" }] } } touch |} Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 4: Upload an Image to a Concert Image. Upload. Activity 1. User captures an image or selects one from phone gallery 2. User fills fields for image title, description, and tags 3. When user clicks Save, send request with the following parameters: title, Subtitle description, tags, concert; and the file: picture 4. Parse received JSON response 5. Show success or fail message touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 4: Upload an Image to a Concert Subtitle Eclipse [String upload. Image. To. Concert ()] touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 4: Upload an Image to a Concert – Solution Subtitle http: //www. foo. mobi/cloud/Image. Upload. Activity. java touch | Title of presentation | Date DD/MM/YYYY

Concerts Project Exercise 4: Upload an Image to a Concert – Sample Response {"response": {"metadata": {"request. Id": "181 eef 41 -42 fd-457 f-a 106 -1135379762 a 9", "status": "success", "status. Code": "200" }, "result": Subtitle {"status": "success", "transaction. Id": "b 5077 a 0 f-7 a 10 -45 e 0 -a 97 f-8 d 913281647 d" } } } touch | Title of presentation | Date DD/MM/YYYY

Subtitle THANK YOU! touch | Title of presentation | Date DD/MM/YYYY

Subtitle touch | Title of presentation | Date DD/MM/YYYY
- Slides: 40