-
Notifications
You must be signed in to change notification settings - Fork 3
Project Setup Eclipse
im-matsu06 edited this page Jul 22, 2016
·
4 revisions
プロジェクトの lib フォルダに、 maio.jar をドラッグ&ドロップしてください。
Android SDK Manager を開き、 Google Play Services をインストールします。
Google Play services, revision ** にチェックを入れます。
Accept License をクリックします。
作成したプロジェクトを右クリック後、インポートをクリックし、
「 Android 」 の 「 Existing Android Code Into Workspace 」 をクリックして、次へをクリックします。
[参照...]をクリックし、ライブラリプロジェクトを選択した後、
google-play-services_lib は以下のフォルダにインストールされています。
"ANDROID_HOME"/extras/google/google_play_services/libproject
プロジェクトのプロパティを開き、 [Android] を選択し、ライブラリーセクションの[追加]をクリックします。
google-play-services_lib を選択し、[OK]をクリックします。
以下の画面の状態になっていれば、 Google Play Services の導入は完了です。
Eclipse では MaioSDK アクティビティ、 Google Play Services 、パーミッションの追加を行います。
サンプル
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.test"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="23" />
<application android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat" >
<activity android:name=".MainActivity" android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!--MaioSDKアクティビティの設定追加-->
<activity
android:name="jp.maio.sdk.android.AdFullscreenActivity"
android:label="maiosdk"
android:configChanges="orientation|screenLayout|screenSize|smallestScreenSize"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter>
<data android:scheme="jp.maio.sdk.android"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
<!--Google Play Services の設定追加-->
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</application>
<!--パーミッションの追加-->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
https://github.com/imobile-maio/maio-Android-SDK/wiki/Implementation