Question

I am developing android app using Titanium Studio 3.2.1, but here when I am changing my tabs app getting crash. So jumped into Ti 3.1.3, here when I am changing my tabs first time it is showing some flash blank screen, second time onwards it is working fine.

Issues are, it doesn't show flash blank screen, even in the first time and second one is when I am using android back button it is getting crash.

I am using MAC-OS, Android device Nexus-7 and any emulator also happening same.using JavaScript.

Thanks in Advance.

Was it helpful?

Solution

There are two types of windows like, lightweight and heavyweight. If you create a lightweight window in Titanium android than on back button press it will exist from your application.

You can achieve what you want by creating heavyweight window. You can create heavyweight window in titanium by open it as modal window. So put the parameter modal:true when you create a new window. New window will be created as modal window (heavyweight window for titanium android). And then after if you will press back button it will not exit from application.

OTHER TIPS

You can disable android back button or handle it.

window.addEventListener('android:back', function (e) 
{
   // Do whatever you want on android back button press.
   // Or leave implementation blank to disable device back button.
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top