UFCFX5-15-3Mobile Device Development Android Development SDKs and Publishing.

Slides:



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

Ando-it-yourself droid Praveen Kumar Pendyala. Outline Brief intro to the Droid developement Setting up the Life saviors - Development tools Hello Droid.
DISTRIBUTING NATIVE MOBILE APPS
Chapter 1: Voilà! Meet the Android
Objectives Overview Define an operating system
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Android Tutorial Larry Walters OOSE Fall References This tutorial is a brief overview of some major concepts…Android is much richer and more complex.
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
© Strategic Mapping & Data Services LLC – Dr. Michael Stachiw – February 2012© Strategic Mapping & Data Services LLC Android Programming Dr. Michael A.
Android Programming Day best Android Apps Lzo&feature=fvwrel.
Android Programming. Outline Preparation Create new project Build and Run a project Debug a project Deploy on devices.
UFCFX5-15-3Mobile Device Development Commercial Trends and Competitive Initiatives.
Cosc 5/4730 Sign, convert, and install Android files on Blackberry Playbook.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Introduction to Android Programming Content Basic environmental structure Building a simple app Debugging.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 9: Customize! Navigating with a Master/Detail.
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
CS5103 Software Engineering Lecture 08 Android Development II.
Chapter 12: Finale! Publishing Your Android App. Objectives In this chapter, you learn to: Understand Google Play Target various device configurations.
Operating system for mobile devices with a Java programming interface. Provides tools, e.g. a compiler, debugger, device emulator, and its own Java Virtual.
PARSING FACEBOOK DATA FOR ANDROID 1. Step by Step  Import Android SDK  Get the hash key  Create a new app  Create a new project in Eclipse 
Basic Android Tutorial USF’s Association for Computing Machinery.
DUE Hello World on the Android Platform.
CS378 - Mobile Computing Intents.
Explain the purpose of an operating system
Android for Java Developers Denver Java Users Group Jan 11, Mike
Chapter 12: Finale! Publishing Your Android App
© 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.
How to publish your app 1 CS440. Step 1: Remove any debug logging  Good practice: comment out any debug logging  Why? CS440 2.
Overview of Android Application Development
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
Android Boot Camp for Developers Using Java, 3E
MUzima INSTALLATION BY RUTH KEITANY 10/29/20151 mUzima Installation.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
First Venture into the Android World Chapter 1 Part 2.
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
資管碩一 段怡安. 2.1 Introduction 2.2 Building Great Android Apps 2.3 Android Best Practices Compatibility Supporting Multiple Screens Android.
TIBCO BusinessWorks.  Generating the key   You will have to create a certificate as you own the server.  The ‘Keytool’ is a utility provided in the.
Chapter 9 Operating Systems Discovering Computers Technology in a World of Computers, Mobile Devices, and the Internet.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
© 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.
GOOGLE PLAY By William Cook April 14, GOOGLE PLAY Marketplace for apps for android Androids “app store” You must make an account on the developer.
Enis Microsoft Avoiding common Windows Phone and Windows Store app certification failures.
Preparing Your Apps for Publication Test your app thoroughly on a variety of devices. The app might work perfectly using the emulator on your.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
Submitted By: Tarun Tyagi Website- - Enable USB Debugging.
CHAPTER 1 part 1 Introduction. Chapter objectives: Understand Android Learn the differences between Java and Android Java Examine the Android project.
How to Publish Android Application on Google Play Store?
Android Programming.
Mobile Device Development
Mobile Applications (Android Programming)
Android 01: Fundamentals
Android Runtime – Dalvik VM
Android.
Development-Introduction
Sensors, maps and fragments:
CA16R405 - Mobile Application Development (Theory)
Anatomy of an Android Application
SE4S701 Mobile Application Development
CS5103 Software Engineering
Android Developer Fundamentals V2
Android Application Development
Mobile Programming Dr. Mohsin Ali Memon.
CA16R405 - Mobile Application Development (Theory)
CA16R405 - Mobile Application Development (Theory)
Presentation transcript:

UFCFX5-15-3Mobile Device Development Android Development SDKs and Publishing

UFCFX5-15-3Mobile Device Development Agenda Create an Android Project with Eclipse User interface design Start Another Activity Saving and loading Data Access to website Building, Testing and Debugging Preparing marketing materials for publishing Publish app to Google play

UFCFX5-15-3Mobile Device Development Create a Project with Eclipse

UFCFX5-15-3Mobile Device Development Project Basic Setting Application name: Should be checked with Google play first. Can be changed after publishing Package name: Unique and permanent. Can not be changed after publishing Minimum required SDK: Should be as low as possible to support more devices. Target SDK: Should be the latest version of android or most popular android version

UFCFX5-15-3Mobile Device Development Android Manifest File Filename: AndroidManifest.xml Declaring permissions Declaring activity Declaring version code and number Declaring device filters

UFCFX5-15-3Mobile Device Development Design UI Using Graphical Layout  Drag & Drop  Visual Design  No coding is required

UFCFX5-15-3Mobile Device Development Supporting Multiple Screens Screen Size Metrics Physical screen size (10, 7, 5, 4, 3.5 inches ) Screen density in dpi (dots per inch): low, medium, high, and extra high Screen resolution Filter out devices (minimum screen size) Different layouts for different screen sizes Different bitmap drawables (e.g. icons) for different screen densities Different layouts for different screen orientation

UFCFX5-15-3Mobile Device Development Create Another Activity

UFCFX5-15-3Mobile Device Development Start Another Activity Triggers for starting Button pressed Hand gestures Key pressed HelpBtn.setOnClickListener(new View.OnClickListener() public void onClick(View v) { Intent intent; intent.putExtra("LanguageChoice",LangChoice); intent = new Intent(AnatomyQuizLite.this, HelpActivity.class); startActivity(intent); } });

UFCFX5-15-3Mobile Device Development Android storage spaces Internal storage Always available No permission needed Files saved here are accessible by only your app by default When the user uninstalls your app, the system removes all your app's files from internal storage. External storage (SD card or USB storage) It's NOT always available Writing permission must be declared It's world-readable, so files saved here may be read outside of your control. When the user uninstalls your app, the system removes your app's files from here only if you save them in the directory from getExternalFilesDir()

UFCFX5-15-3Mobile Device Development Write and read in internal storage Write a file FileOutputStream fOut = openFileOutput("test.txt", Context.MODE_PRIVATE); String str = "data"; fOut.write(str.getBytes()); fOut.close(); Read a file FileInputStream fis; fis = openFileInput("test.txt"); StringBuffer fileContent = new StringBuffer(""); byte[] buffer = new byte[1024]; while ((n = fis.read(buffer)) != -1) { fileContent.append(new String(buffer, 0, n)); } Fis.Close();

UFCFX5-15-3Mobile Device Development External Storage Directory Find the base directory File baseDir = Environment.getExternalStorageDirectory(); Create App data folder File StoreDir = new File (baseDir.getAbsolutePath() + "/AppName/"); if( !StoreDir.exists() ) StoreDir.mkdirs(); Create a filename with absolute data folder path File dataFile = new File(StoreDir, ”test.txt”);

UFCFX5-15-3Mobile Device Development Access to Website The simple way is to use Intent String text = “Android”; Intent intent = new Intent(Intent.ACTION_VIEW); String url = " url += text; intent.setData(Uri.parse(url)); startActivity(intent); Use Webview webView = (WebView) findViewById(R.id.webView1); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl("

UFCFX5-15-3Mobile Device Development Building the app Use command prompt to build the app Export App as an unsigned apk file from Eclipse Create a signing key file using keytool keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize validity Sign the apk file jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name Align the apk file zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk

UFCFX5-15-3Mobile Device Development Testing the app Distribute App to test users Use ADB to install from PC to android devices adb -d install YOURAPK.apk the apk to test users Need to set permission for installing app from the unknown source Use Alfa or Beta option in Google developer console Tests using real devices Run through as many devices as possible (different manufacturer, different screen size, low-end and high-end devices) Memory consumption tests using DDMS Screen orientation test Phone call test

UFCFX5-15-3Mobile Device Development Preparing marketing materals Screenshots Use monitor.bat to capture screenshots from devices Device art generator (from Google) to warp app screen shot in real device artwork Can add promotion texts in the screen shot Description texts Short description with key features Use special characters as bullet points Include as many as keywords Include good user reviews

UFCFX5-15-3Mobile Device Development Publish app in Google Play Register as an individual developer A valid credit card for verification purpose One-off $25 registration fee Publish free and paid apps Set up a website for your app Facebook page is OK Need to be mobile compatible website Understand Google play policy No adult content No Spam keywords No fake reviews

UFCFX5-15-3Mobile Device Development Using Google Services Use Admob as advertisement platform Use Google Game service leaderboards Unlock achievements Use Google App licensing service Use multiple APK support Use Apk expansion files

UFCFX5-15-3Mobile Device Development Android Development Resources Official android development resource API guides Example projects Tutorials Technical questions Get answer from Google Watch for stackoverflow.com for answers XDA developer Android forum

UFCFX5-15-3Mobile Device Development Publish other markets Amazon appstore Submit the android app without modification except links to Google play Majority devices are Kindle fire tablets (Kindle phone?) Allow price promotion Samsung apps Submit the android app without modification except links to Google play (before 1 st July, 2014) Have to rewrite some of codes in Samsung SDK. BlackBerry App World Accept android app but the app have to be resigned

UFCFX5-15-3Mobile Device Development Summary Eclipse have android project wizard and activity wizard to help developer to generate a skeleton android project. Developers have to consider different screen sizes for the design of user interface. Multiple UI layouts are encouraged for tablets and phones. Also if the app supports both portrait and landscape views, two different UI layouts should be used. Store private data in internal storage. But they will be eased if users uninstall the app. To make android users happy, you have to run through as many android devices as possible to test your app. The device list should include tablets and phones, devices without SD cards and devices have low memory and slow CPU.