I'm trying to start and activity from a FREFunction to use facebooks's SSO on my flex application.
I did in my FREFunction:
@Override
public FREObject call(FREContext context, FREObject[] args) {
Intent myIntent = new Intent(context.getActivity(), FacebookSSO.class);
context.getActivity().startActivity(myIntent);
return null;
}
I get with logcat:
I/ActivityManager( 1322): Starting activity:
Intent{ cmp=air.testapp/com.test.android.ane.activity.FacebookSSO } from pid...
But my log calls in the onCreate method of are FacebookSSO.java are not displayed:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);
Log.d("FacebookSSO", "onCreate BEGIN.");
Log.d("FacebookSSO", "onCreate END.");
}
I tried creating myIntent in different ways, like using setClass. What am I doing wrong?