문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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.
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top