「Android/広告組込/Amoad」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→You need to use a Theme.AppCompat theme (or descendant) with this activity.エラーが出る場合) |
(→reward確認) |
||
| 行5: | 行5: | ||
#サンプルプロジェクトを起動しinterstitialafioを動かす | #サンプルプロジェクトを起動しinterstitialafioを動かす | ||
#sid入力欄にamoad指定のsidを入力する | #sid入力欄にamoad指定のsidを入力する | ||
| + | ==You need to use a Theme.AppCompat theme (or descendant) with this activity.エラーが出る場合== | ||
| + | @style/AppThemeをAndroidManifest.xmlのapplicationタグに追加する | ||
| + | app/res/values/styles.xmlにAppThemeを追加 | ||
| + | |||
| + | <application | ||
| + | android:label="@string/app_name" | ||
| + | android:allowBackup="true" | ||
| + | android:icon="@mipmap/ic_launcher"> | ||
| + | ↓ | ||
| + | <application | ||
| + | android:label="@string/app_name" | ||
| + | android:allowBackup="true" | ||
| + | android:icon="@mipmap/ic_launcher" | ||
| + | android:theme="@style/AppTheme" | ||
| + | > | ||
| + | |||
| + | app/res/values/styles.xml | ||
| + | <pre> | ||
| + | <resources> | ||
| + | <!-- Base application theme. --> | ||
| + | <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | ||
| + | <!-- Customize your theme here. --> | ||
| + | <item name="colorPrimary">@color/colorPrimary</item> | ||
| + | <item name="colorPrimaryDark">@color/colorPrimaryDark</item> | ||
| + | <item name="colorAccent">@color/colorAccent</item> | ||
| + | </style> | ||
| + | </resources> | ||
| + | </pre> | ||
2018年9月27日 (木) 15:03時点における最新版
sdkダウンロード
https://github.com/amoad/amoad-android-sdk
reward確認
- サンプルプロジェクトを起動しinterstitialafioを動かす
- sid入力欄にamoad指定のsidを入力する
You need to use a Theme.AppCompat theme (or descendant) with this activity.エラーが出る場合
@style/AppThemeをAndroidManifest.xmlのapplicationタグに追加する app/res/values/styles.xmlにAppThemeを追加
<application
android:label="@string/app_name"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher">
↓
<application
android:label="@string/app_name"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:theme="@style/AppTheme"
>
app/res/values/styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
