Hello everyone, i'm in need of some of the experts help, i'm currently wrapping a library for the TapJoy ads.
however i'm not an expert in Java and i need some help.
this is the code in their document to initialize a connection
this is my code in Java, but i need help initializing the object
Any help will be appreciated guys.
thanks,
Walter
however i'm not an expert in Java and i need some help.
this is the code in their document to initialize a connection
B4X:
TapjoyConnect.requestTapjoyConnect(Context context, String appID, String secretKey);
this is my code in Java, but i need help initializing the object
B4X:
public class TapJoyAds extends Activity{
public String eventname;
public TapjoyConnect banner;
public void Initialize(final BA ba, String EventName, String tapjoyAppID, String tapjoySecretKey){
Hashtable<String, String> flags = new Hashtable<String, String>();
flags.put(TapjoyConnectFlag.ENABLE_LOGGING, "true");
eventname = EventName.toLowerCase(BA.cul);
TapjoyConnect.requestTapjoyConnect(ba.context.getApplicationContext(), tapjoyAppID, tapjoySecretKey, flags, new TapjoyConnectNotifier(){
@Override
public void connectFail() {
// TODO Auto-generated method stub
//ba.raiseEvent(getObject(), eventname + "_connectFailed"); 'This won't work unless I Initialize the object
}
@Override
public void connectSuccess() {
// TODO Auto-generated method stub
}
});
}}
Any help will be appreciated guys.
thanks,
Walter