Hi All,
I am new at Android development.
I have program one small app.
I need help regarding the integration of Fortumo IAP.
I have import the jar file from Fortumo by adding new Module and importing the jar.
Now I am stuck with a make changes in project AndroidManifest.xml
Here is the description from Fortumo web:
https://developers.fortumo.com/in-a...o/in-app-purchasing-on-android/configuration/.
Here is my small program AndroidManifest.xml.
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.example.gorandesktop.miro" >
<applicationandroid:allowBackup="true"android:icon="@Mipmap/ic_launcher"android:label="@String/app_name"android:theme="@Style/AppTheme" >
<activityandroid: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>
</application>
</manifest>
I DO NOT KNOW WHERE TO PUT FORTUMO MANIFEST AND I AM NOT SURE IF I IMPORT THE JAR AS MODULE IS OK.
PLEASE HELP THE NOOB: ) THX.
here is the full example of Fortumo AndroidManifest.xml.
<!-- Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<!-- Define your own permission to protect payment broadcast -->
<permission android:name="com.your.domain.PAYMENT_BROADCAST_PERMISSION"
android:label="Read payment status"
android
rotectionLevel="signature" />
<!-- "signature" permission granted automatically by system, without notifying user. -->
<uses-permission android:name="com.your.domain.PAYMENT_BROADCAST_PERMISSION" />
<application android:icon="@drawable/ic_launcher" android:label="@String/app_name">
<!-- Declare these objects, this is part of Fortumo SDK,
and should not be called directly -->
<receiver android:name="mp.MpSMSReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
<service android:name="mp.MpService" />
<service android:name="mp.StatusUpdateService" />
<activity android:name="mp.MpActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges="orientation|keyboardHidden|screenSize" />
<!-- Implement you own BroadcastReceiver to track payment status,
should be protected by "signature" permission -->
<receiver android:name=".PaymentStatusReceiver"
android
ermission="com.your.domain.PAYMENT_BROADCAST_PERMISSION">
<intent-filter>
<action android:name="mp.info.PAYMENT_STATUS_CHANGED" />
</intent-filter>
</receiver>
<!-- Other application objects -->
<activity android:label="@String/app_name" android:name=".YourActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
...
I am new at Android development.
I have program one small app.
I need help regarding the integration of Fortumo IAP.
I have import the jar file from Fortumo by adding new Module and importing the jar.
Now I am stuck with a make changes in project AndroidManifest.xml
Here is the description from Fortumo web:
https://developers.fortumo.com/in-a...o/in-app-purchasing-on-android/configuration/.
Here is my small program AndroidManifest.xml.
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.example.gorandesktop.miro" >
<applicationandroid:allowBackup="true"android:icon="@Mipmap/ic_launcher"android:label="@String/app_name"android:theme="@Style/AppTheme" >
<activityandroid: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>
</application>
</manifest>
I DO NOT KNOW WHERE TO PUT FORTUMO MANIFEST AND I AM NOT SURE IF I IMPORT THE JAR AS MODULE IS OK.
PLEASE HELP THE NOOB: ) THX.
here is the full example of Fortumo AndroidManifest.xml.
<!-- Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<!-- Define your own permission to protect payment broadcast -->
<permission android:name="com.your.domain.PAYMENT_BROADCAST_PERMISSION"
android:label="Read payment status"
android
rotectionLevel="signature" /><!-- "signature" permission granted automatically by system, without notifying user. -->
<uses-permission android:name="com.your.domain.PAYMENT_BROADCAST_PERMISSION" />
<application android:icon="@drawable/ic_launcher" android:label="@String/app_name">
<!-- Declare these objects, this is part of Fortumo SDK,
and should not be called directly -->
<receiver android:name="mp.MpSMSReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
<service android:name="mp.MpService" />
<service android:name="mp.StatusUpdateService" />
<activity android:name="mp.MpActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges="orientation|keyboardHidden|screenSize" />
<!-- Implement you own BroadcastReceiver to track payment status,
should be protected by "signature" permission -->
<receiver android:name=".PaymentStatusReceiver"
android
ermission="com.your.domain.PAYMENT_BROADCAST_PERMISSION"><intent-filter>
<action android:name="mp.info.PAYMENT_STATUS_CHANGED" />
</intent-filter>
</receiver>
<!-- Other application objects -->
<activity android:label="@String/app_name" android:name=".YourActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
...