Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

Problem with Android native extension

$
0
0

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, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Initi alize starting:  1");

        MMSDK.setLogLevel(MMSDK.LOG_LEVEL_VERBOSE);

        MMSDK.initialize(context);

        Log.d(TAG, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Initi alize 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.


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>