Discussion Forums  >  Mobario Integration

Replies: 2    Views: 160

CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
10/06/13 07:02 PM (10 years ago)

Mobario android sdk integration

Has anyone successfully integrated Mobario. I need help. My app keeps crashing after integration. Is there any buzztouch specific integration instructions available anywhere?? Thank you Christopher Coffee
 
Mobario Man
Android Fan
Profile
Posts: 58
Reg: Jul 15, 2013
Zurich
880
like
10/07/13 05:36 AM (10 years ago)
I will show you how to easily integrate this new SDK into your apps. Prerequisites: Eclipse - and a knowledge of Your app Mobario SDK files - obtained once you sign up and add your app to the dashboard. Step 1: Sign up with Mobario and add your app to the dashboard. Here you will get your needed app id. Step 2: Open your app in Eclipse just as before when adding any other ad types. Step 3: Add the Mobario SDK file Mobario-SDK.jar (obtained from downloaded zip file from Mobario) to your libs folder. (Remember click copy files not link to files!) Step 4: Update your manifest file with the following permissions: Code (text): <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.GET_TASKS" /> <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.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> If you have advertisements already you may have some of these permissions. If you do just copy the ones you do not have. Add the following code under the application tag in your manifest file (before the application tag closes): Code (text): <activity android:name="com.mobariosdk.UpdateStatusActivity" android:label="Select Application:" android:theme="@android:style/Theme.Dialog" > </activity> <activity android:name="com.mobariosdk.FB.FbLogin" > </activity> <service android:name="com.mobariosdk.InAppService" android:enabled="true" > <intent-filter> <action android:name=".InAppService" /> </intent-filter> </service> <receiver android:name="com.mobariosdk.receiver.BootReceiver" > <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter> </receiver> <activity android:name="com.mobariosdk.Twitter.OnAuthListener" android:theme="@android:style/Theme.Translucent.NoTitleBar"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="oauth" android:host="t4jsample"/> </intent-filter> </activity> Step 5: Add the following code to your Splash.java file (Since most of us are using splash screens now this is the best place to start the SDK and show the user the EULA) After this line: Code (text): super.onCreate(savedInstanceState); Add this code: Including your app id you get from the dashboard. Code (text): MobarioService.init (this, YOUR_APP_ID, true); Hover your mouse over the code line you just added and select import com.mobariosdk.MobarioService; to fix the errors. Now Save everything and export your app as before and test it out! Notes: This integration is straight forward, You will see some yellow warnings in your manifest telling you to use $ instead of . when dealing with internal packages. These warnings can be ignored for now and do not negatively impact anything as of now. This SDK can be completely customized by the end user. This means they can choose which shortcut links show up on the widget, close the widget, pause it, and turn it off for good. This is a plus for user experience.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
10/07/13 08:17 AM (10 years ago)
Cool thank you
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.