そば屋なエンジニア

~インフラエンジニアのメモ~

備忘録 ~ Platform と API Level ~

Platform と API Level
PlatformAPI LevelCode Name
Android 1.01BASE
Android 1.12BASE_1_1
Android 1.53CUPCAKE
Android 1.64DONUT
Android 2.05ECLAIR
Android 2.0.16ECLAIR_0_1
Android 2.1.x7ECLAIR_MR1
Android 2.2.x8FROYO
Android 2.39GINGERBREAD
Android 2.3.19GINGERBREAD
Android 2.3.29GINGERBREAD
Android 2.3.310GINGERBREAD_MR1
Android 2.3.410GINGERBREAD_MR1
Android 3.0.x11HONEYCOMB
Android 3.1.x12HONEYCOMB_MR1
Android 3.213HONEYCOMB_MR2
Android 4.014ICE_CREAM_SANDWICH
Android 4.0.114ICE_CREAM_SANDWICH
Android 4.0.214ICE_CREAM_SANDWICH
Android 4.0.315ICE_CREAM_SANDWICH_MR1
Android 4.1.216JELLY_BEAN
Android 4.2.217JELLY_BEAN_MR1
Android 4.3.118JELLY_BEAN_MR2
Android 4.4.219KITKAT
Android 4.4W.220[Android Wear]
Android 5.0.121Lollipop
Android 5.1.122Lollipop
Android 6.023Marshmallow
Android 6.0.123Marshmallow
Android 7.024Nougat

if(Build.VERSION.SDK_INT >= 21){
// ...
}else{
// ...
}

備忘録 ~Google Play services API Description~

https://developers.google.com/android/guides/setup

Google Play services API
Description in build.gradle
Google+com.google.android.gms:play-services-plus:9.6.1
Google Account Logincom.google.android.gms:play-services-auth:9.6.1
Google Actions, Base Client Librarycom.google.android.gms:play-services-base:9.6.1
Google Address APIcom.google.android.gms:play-services-identity:9.6.1
Google App Indexingcom.google.android.gms:play-services-appindexing:9.6.1
Google App Invitescom.google.android.gms:play-services-appinvite:9.6.1
Google Analyticscom.google.android.gms:play-services-analytics:9.6.1
Google Awarenesscom.google.android.gms:play-services-contextmanager:9.6.1
Google Castcom.google.android.gms:play-services-cast:9.6.1
Google Cloud Messagingcom.google.android.gms:play-services-gcm:9.6.1
Google Drivecom.google.android.gms:play-services-drive:9.6.1
Google Fitcom.google.android.gms:play-services-fitness:9.6.1
Google Location and Activity Recognitioncom.google.android.gms:play-services-location:9.6.1
Google Mapscom.google.android.gms:play-services-maps:9.6.1
Google Mobile Adscom.google.android.gms:play-services-ads:9.6.1
Google Placescom.google.android.gms:play-services-places:9.6.1
Mobile Visioncom.google.android.gms:play-services-vision:9.6.1
Google Nearbycom.google.android.gms:play-services-nearby:9.6.1
Google Panorama Viewercom.google.android.gms:play-services-panorama:9.6.1
Google Play Game servicescom.google.android.gms:play-services-games:9.6.1
SafetyNetcom.google.android.gms:play-services-safetynet:9.6.1
Android Paycom.google.android.gms:play-services-wallet:9.6.1
Android Wearcom.google.android.gms:play-services-wearable:9.6.1

備忘録 ~GCM KeepAlive~

wifiの場合、15分毎
3G/4Gの場合、28分毎(53分毎と言う情報もあり)

以下のインテントを投げる実装をすることで、コネクションを維持できるかも?
context.sendBroadcast(new Intent("com.google.android.intent.action.GTALK_HEARTBEAT"));
context.sendBroadcast(new Intent("com.google.android.intent.action.MCS_HEARTBEAT"));


詳しくは、こちらを参照
ランキング参加中~ポチッと応援よろしく
ギャラリー
  • 【自作アプリ】 – グラくる - インフラはこんな風になってます