share Message - intent send

What i want to have the share popup (android.intent.action.SEND) on android, i dont know how.
I have a native build of solar 2d.

I tried this one:

public int shareActivityText(LuaState L) {
final String shareTitle = L.toString(1);
final String shareSubTitle = L.toString(2);
final String shareText = L.toString(3);

com.ansca.corona.CoronaEnvironment.getCoronaActivity().runOnUiThread(new Runnable() {
    @Override
    public void run() {
        CoronaActivity activity = CoronaEnvironment.getCoronaActivity();
        Intent shareIntent = new Intent(activity, CoronaActivity.class);
        shareIntent.setAction(Intent.ACTION_SEND);
        shareIntent.setType("text/plain");
        shareIntent.putExtra(Intent.EXTRA_SUBJECT, shareSubTitle);
        shareIntent.putExtra(Intent.EXTRA_TEXT, shareText);
        Toast.makeText(activity, "Hello", Toast.LENGTH_SHORT).show();
        final Intent chooser = Intent.createChooser(shareIntent, shareTitle);
        activity.startActivity(chooser);
    }
});


return 0;

}
GOT:
Can’t create handler inside thread Thread[GLThread 40791,5,main] that has not called Looper.prepare()

I tried many things but it will not working.