Skip to content

android denaCN

DeNA大陆商店包的开发方法

本文档将说明如何使您的应用使用DeNA自营大陆商店来进行登录和支付。

1.在AndroidManifest.xml中增加以下配置:

<!-- ############################# DenaStoreCn START ############################# -->
<activity
    android:name="com.denachina.lcm.store.dena.cn.payment.ui.PaymentPickerActivity"
    android:configChanges="orientation|keyboardHidden|screenSize"
    android:theme="@style/Theme.Dialog.NoTitleBar" />
<!-- AliPay Web -->
<activity
   android:name="com.alipay.sdk.app.H5PayActivity"
   android:configChanges="orientation|keyboardHidden|navigation|screenSize"
   android:exported="false"
   android:screenOrientation="behind"
   android:windowSoftInputMode="adjustResize|stateHidden" >
</activity>
<!-- Wechat Login -->
<!-- wxapi一定要在包名下面,{your packageName}.wxapi.WXEntryActivity -->
<activity
          android:name=".wxapi.WXEntryActivity"
          android:configChanges="keyboardHidden|screenSize|orientation"
          android:exported="true"
   android:launchMode="singleTop"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" >
      </activity>
<!-- Wechat Pay -->
<!-- wxapi一定要在包名下面,{your packageName}.wxapi.WXPayEntryActivity -->
<activity
   android:name=".wxapi.WXPayEntryActivity"
   android:configChanges="keyboardHidden|screenSize|orientation"
   android:exported="true"
   android:launchMode="singleTop"/>
<!-- Wechat app id (used for wechat login & wechat pay) -->
<meta-data android:name="wechatAppId" android:value="@string/wechatAppId"/>

<activity android:name="com.denachina.lcm.store.dena.cn.settings.accountinfo.AccountInfoActivity"
   android:configChanges="keyboardHidden|orientation|screenSize"
   android:screenOrientation="portrait"
   android:theme="@android:style/Theme.NoTitleBar" >
   <intent-filter>
      <action android:name="com.dena.lcm.account"/>
      <category android:name="android.intent.category.DEFAULT"/>
   </intent-filter>
</activity>
<activity android:name="com.denachina.lcm.store.dena.cn.settings.setpassword.SetPasswordActivity"
        android:launchMode="singleTop"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar"/>
<activity android:name="com.denachina.lcm.store.dena.cn.settings.setpassword.ModifyPasswordActivity"
        android:launchMode="singleTop"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar"/>
<activity android:name="com.denachina.lcm.store.dena.cn.settings.bindmobile.BindMobileActivity"
        android:launchMode="singleTop"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar"/>
<activity android:name="com.denachina.lcm.store.dena.cn.settings.bindmobile.ModifyMobileActivity"
        android:launchMode="singleTop"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar"/>
<activity android:name="com.denachina.lcm.store.dena.cn.settings.bindemail.BindEmailActivity"
        android:launchMode="singleTop"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar"/>
<activity android:name="com.denachina.lcm.store.dena.cn.settings.bindemail.ModifyEmailActivity"
        android:launchMode="singleTop"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar"/>
<activity android:name="com.denachina.lcm.store.dena.cn.realname.RealNameAuthenticationActivity"
    android:configChanges="keyboardHidden|orientation|screenSize"
    android:screenOrientation="portrait"
    android:launchMode="singleTop"
    android:windowSoftInputMode="adjustResize"
    android:theme="@android:style/Theme.NoTitleBar" >
</activity>
<activity android:name="com.denachina.lcm.store.dena.cn.settings.realname.RealNameInfoDisplayAcitivity"
    android:launchMode="singleTop"
    android:screenOrientation="portrait"
    android:theme="@android:style/Theme.NoTitleBar" >
</activity>
<!-- ############################# DenaStoreCn END ############################# -->

客服模块需要加入以下配置

<activity
    android:name="com.denachina.lcm.customerserviceprovider.views.LcmCustomMainActivity"
    android:configChanges="orientation|screenSize|keyboardHidden"
    android:theme="@android:style/Theme.NoTitleBar">
</activity>
关于AliPay和WeChat的相关Activity,还会在后续的相关部分中讲到,此处配置后,后续不需要再重复配置

2.关于商店的环境设置,需要说明一下。

DeNA大陆自营商店

appinfo.conf的region字段 appinfo.conf的sand字段 L的域名
cn true https://lcm-sand-cn-live.mobage.cn
cn false https://lcm-prod-cn-live.mobage.cn
Back to top