Fix Android lifecycle

This commit is contained in:
Rossen Hristov
2016-12-20 16:11:40 +02:00
parent afe928c029
commit 417064fd38
5 changed files with 19 additions and 15 deletions

View File

@@ -11,7 +11,8 @@
"diagnosticLogging": false,
"emulator": false,
"rebuild": false,
"syncAllFiles": true
"syncAllFiles": true,
"stopOnEntry": true
},
{
"name": "Launch on iOS",
@@ -22,7 +23,8 @@
"sourceMaps": true,
"diagnosticLogging": false,
"emulator": false,
"rebuild": true
"rebuild": true,
"stopOnEntry": true
},
{
"name": "Attach on iOS",
@@ -32,7 +34,8 @@
"appRoot": "${workspaceRoot}",
"sourceMaps": true,
"diagnosticLogging": false,
"emulator": false
"emulator": false,
"stopOnEntry": true
},
{
"name": "Sync on Android",
@@ -44,7 +47,8 @@
"diagnosticLogging": false,
"emulator": false,
"rebuild": false,
"syncAllFiles": true
"syncAllFiles": true,
"stopOnEntry": true
},
{
"name": "Launch on Android",
@@ -55,7 +59,8 @@
"sourceMaps": true,
"diagnosticLogging": false,
"emulator": false,
"rebuild": true
"rebuild": true,
"stopOnEntry": true
},
{
"name": "Attach on Android",
@@ -65,7 +70,8 @@
"appRoot": "${workspaceRoot}",
"sourceMaps": true,
"diagnosticLogging": false,
"emulator": false
"emulator": false,
"stopOnEntry": true
}
]
}

View File

@@ -4,7 +4,6 @@ trace.enable();
trace.setCategories(trace.categories.concat(
trace.categories.NativeLifecycle,
trace.categories.Navigation,
//trace.categories.Animation,
trace.categories.Transition
));
@@ -69,7 +68,7 @@ application.on(application.lowMemoryEvent, function (args: application.Applicati
}
});
application.on(application.uncaughtErrorEvent, function (args: application.ApplicationEventData) {
application.on(application.uncaughtErrorEvent, function (args: application.UnhandledErrorEventData) {
if (args.android) {
// For Android applications, args.android is NativeScriptError.
console.log("### NativeScriptError: " + args.android);