This is the piece where it probably goes wrong: authGet is an asynchronous function that closes the loading window (and if error -> opens error) and displays the content on complete ($.main.open()). However, when I quickly use the backbutton on my Android device when the page has loaded (so when the loading page seems to have disappeared) the loading page is still there, however when I do this after waiting several more seconds and 'then' press the backbutton, it all works as implied.
Alloy.Globals.cpApi.authGet('job/' + args.query.id, {}, function(err, value) { Alloy.Globals.loading.getView().close({animated: false}); if (!err) { fillView(value.data); $.main.open(); } else { //Handle error: show error message Alloy.Globals.error.getView().open({animated: false}); } });The reason i'm using Alloy.Globals for loading/error is because that way I can reuse the controller and view easily (and set a view message/variable through a controller export function).
My terminal shows:
[ERROR] SQLiteLog: (14) cannot open file at line 32516 of [00bb9c9ce4] [ERROR] SQLiteLog: (14) os_unix.c:32516: (2) open(/NotificationPermissions.db) -...I dont recall coding anything related to notificationpermissions.db (I dont even know where this file should be located)
Also when installing on my device (Galaxy S3) it outputs:
[ERROR] E/ : Device driver API match [ERROR] E/ : Device driver API version: 23 [ERROR] E/ : User space API version: 23 [ERROR] E/ : mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Wed Oct 9 21:05:57 KST 2013Any directions?