Android For Game Developoers Ove verview Limited APIs Window - - PowerPoint PPT Presentation

android for game developoers ove verview
SMART_READER_LITE
LIVE PREVIEW

Android For Game Developoers Ove verview Limited APIs Window - - PowerPoint PPT Presentation

Android For Game Developoers Ove verview Limited APIs Window Management Input File I/O Audio Graphics Define a e an n Android A App pplication Activities Services Content providers Intents


slide-1
SLIDE 1

Android For Game Developoers

slide-2
SLIDE 2

Ove verview

  • Limited APIs
  • Window Management
  • Input
  • File I/O
  • Audio
  • Graphics
slide-3
SLIDE 3

Define a e an n Android A App pplication

  • Activities
  • Services
  • Content providers
  • Intents
  • Broadcast receivers
slide-4
SLIDE 4

Mani nifes est F File

  • The version of our application as displayed and used on Google Play
  • The Android versions on which our application can run
  • Hardware profiles our application requires
  • Permissions for using specific components
slide-5
SLIDE 5

AndroidManifext.xml - <m <manifes est> E > Elem ement

<manifest xmlns:android=http://schemas.android.com/apk/res/android package=“com.helloworld” android:versionCode=“1” android:versionName=“1.0” android:installLocation=“preferExternal”> …… </manifest>

slide-6
SLIDE 6

AndroidManifext.xml - <a <app pplication> E > Elem emen ent

<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > …… </application> *res/values/string.xml

slide-7
SLIDE 7

AndroidManifext.xml - <a <activi vity> E Elem ement

<activity android:name=“.MrNomActivity" android:label=“Mr. Nom" android:screenOrientation=“portrait” android:configChanges="keyboard|keyboardHidden|orientation"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>

slide-8
SLIDE 8

AndroidManifext.xml – ot

  • ther

her E Elem emen ents

  • <uses-permission android:name=“string” />
  • RECORD_AUDIO, INTERNET, WRITE_EXTERNAL_STORAGE, NFC (Near Field Communication),

WAKE_LOCK, …

  • <uses-feature android:name=“string” android:required=[“true” | “false”]

android:glESVersion=“integer” />

  • <uses-feature android:glEsVersion=“0x00020000” android:required=“true” />
  • <uses-feature android:name=“android.hardware.touchscreen.multitouch”

android:required=“true” />

  • <uses-sdk android:minSdkVersion=“3” android:targetSdkVersion=“16” />
slide-9
SLIDE 9

And ndroid G Game e Projec ect Se Setup up

  • Something we want:
  • Newer SDK version
  • Install to the SD card?
  • A single main activity
  • Fixed screen orientation
  • Access the SD card?
  • A wake lock