-
Notifications
You must be signed in to change notification settings - Fork 3
Project Setup Android Studio
im-ade edited this page May 29, 2018
·
4 revisions
プロジェクトの lib フォルダに、 maio.jar をドラッグ&ドロップしてください。
Android SDK より、 SDK Tools の Google Repository をダウンロードします。
build.gradle 内の dependencies に以下の記述がなければ追加します。
compile 'com.google.android.gms:play-services:+'
Android Manifest に以下の<activity>
タグを追加してください。
サンプル
<?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:configChanges="orientation|screenLayout|screenSize|smallestScreenSize"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</activity>
<activity
android:name="jp.maio.sdk.android.HtmlBasedAdActivity"
android:configChanges="keyboardHidden|orientation|screenSize|screenLayout"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</activity>
<!-- ここまで -->
</application>
</manifest>
※ Google Play Services の設定とパーミッションの設定は Android Studio によって自動的に行われます。
https://github.com/imobile-maio/maio-Android-SDK/wiki/Implementation