Android Question Accesing third party SDK with #Additionaljar

No, I couldn't find, but there is everything given with pictures and codes in this guide.

Erel, I send you eclipse demo project for this SDK by email
It was 900kb, and I couln't resize it to 500 for upload here, sorry
 
Upvote 0
Start with adding the ad:
Code: Copy
Dim Ad As JavaObject
Ad.InitializeNewInstance("com.adappter.sdk.banner.AdView", Array (GetContext, "http://show.adappter.mobi/request.php", "your key", true, true))
Activity.AddView(Ad, ...)

'you might also need to add a manager:
Dim manager As JavaObject
manager.InitializeNewInstance(GetContext, "http://show.adappter.mobi/request.php", "your key", true)

Sub GetContext As JavaObject
  Return GetBA.GetField("context")
End Sub

Sub GetBA As JavaObject
  Dim jo As JavaObject
  Dim cls As String = Me
  cls = cls.SubString("class ".Length)
  jo.InitializeStatic(cls)
  Return jo.GetFieldJO("processBA")
End Sub

Make sure to add the jar with AdditionalJar and also add the manifest text with the manifest editor:

Code: Copy
AddApplicationText(
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<activity android:name="com.adappter.sdk.video.RichMediaActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|
uiMode|screenSize|smallestScreenSize"
android:hardwareAccelerated="false" />)
 
Upvote 0
Back
Top