Skip to main content
Participant
January 28, 2014
Question

Problem with Android native extension

  • January 28, 2014
  • 1 reply
  • 509 views

Hello all,

I am facing a strange problem when developing ANE for InMobi and Millennial media for Android

the problem is that both the SDK need to be initialised with Activity and Context respectively, But when i initialise them the processess get hanged.

what i have done.

(InMobi)

public FREObject call(FREContext context, FREObject[] argv) {

        Log.d("Android Inmobi", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~inobi will start");

        InMobi.setLogLevel(InMobi.LOG_LEVEL.DEBUG);

        InMobi.initialize(context.getActivity(), "MY_PROPERTY_ID");

        Log.d("Android Inmobi", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~inobi will complete");

        return null;

}

(MMedia)

public FREObject call(FREContext frecontext, FREObject[] args) {

        Context context = frecontext.getActivity().getApplicationContext();

        Log.d(TAG, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Initialize starting:  1");

        MMSDK.setLogLevel(MMSDK.LOG_LEVEL_VERBOSE);

        MMSDK.initialize(context);

        Log.d(TAG, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Initialize starting:  2");

        return null;

}

in both the cases only the first debug get printed not the second one. The execution never get passed the initialize block no matter where i define it.

Thank you all.

This topic has been closed for replies.

1 reply

Participant
January 29, 2014

Hey

Sohan from InMobi here.

Can you please provide the logs for the query, when the progress hang when integrating with InMobi ?