mardi 6 décembre 2016

Show native activity from ane

I am trying to build an ANE file to show a native activity on my Air app.
I have an activity created with name MyActivity.
that is my FreFunction class

public class NotyFun implements FREFunction {

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

        Intent i1 = new Intent (contex.getActivity(), MyActivity.class);

        return null;


and added this line to Air app Manifest

<activity android:name="com.hs.noty.MainActivity">

but when i call the function from the Air app nothing happens.
i am sure i am missing something here but i do not know what it is.

Aucun commentaire:

Enregistrer un commentaire