Hi,
I would like to show the event calendar in out application. So I am using corona enterprise to access the event view from lua. Here is the code:-
android.os.Handler handler = fParentActivity.getHandler();
if (handler != null) {
handler.post( new Runnable() {
public void run() {
if (null == fParentActivity) return;
Intent calIntent = new Intent(Intent.ACTION_INSERT);
calIntent.setData(Uri.parse(getCalendarUriBase()+“events”));
calIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME,Long.valueOf(startDate));
calIntent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME,Long.valueOf(endDate));
fParentActivity.startActivity(calIntent);
}
} );
}
The issue is after i press save button, it is supposed to come back to my immediately, instead of that the screen blacks out from 1 sec and then my app will be shown. For the user it looks bad. I have other UI activities called from lua and all of them have the same issue.
Could you guys please give me a solution for this.
regards,
Karim.