View Point.ts
class Point {
value: number;
idx: number;
}
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="__PACKAGE__"
android:versionCode="1"
android:versionName="1.0">
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
View app.ts
// referente ao fork do plugin em: https://github.com/carlosdelfino/nativescript-sqlite/tree/2.0.1-TypeScript-TEMP
// código padrão de iniciação da aplicação no entry point.
eventsManager.on(app.launchEvent, (args: ApplicationEventData) => {
myTrace.write("######################################");
myTrace.write("app.js: Inicializnado DatabaseManager");
SQLite.getInstance().checkDatabase().
.then((db:SQLite) => {
myTrace.write("App: initDefaultDatabase: " + db.isOpen());
}, (reason: any) => {
View model
import {Observable} from 'data/observable';
export class HelloWorldModel extends Observable {
private _counter1: number;
private _counter2: number;
private _id1: number;
private _id2: number;
constructor() {
View app..android.js
if (app.android) {
let btStateChanged = (context,intent) => {
myTrace.write("###################");
myTrace.write("app.js: Modo Bluetooth Adapter Alterado!");
var state = intent.getBooleanExtra(android.bluetooth.BluetoothAdapter.ACTION_STATE,false);
myTrace.write("app.js: Estado: " + state);
};
app.android.registerBroadcastReceiver(android.bluetooth.BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED,btStateChanged);
var airplaneModeChanged = (context,intent) => {
myTrace.write("###################");
View Trace Dump
Successfully synced application br.com.ritech.MobileECG.mobile.client on device LQ4325B15008.
JS: Handler onNavigatingTo navigatingTo
JS: 2017-07-31T14:20:13.788Z Debug: Modulo aplicação carregado e TraceManager inicializado!
JS: 2017-07-31T14:20:13.806Z Debug: Obtendo Instância do MobileManager!
JS: 2017-07-31T14:20:13.807Z Debug: Obtendo Instância do MobileManager!
JS: 2017-07-31T14:20:13.808Z Debug: Inicializando Aplicação
JS: 2017-07-31T14:20:13.808Z Debug: APP Version: 0.0.003
JS: 2017-07-31T14:20:13.808Z Debug: Managers Version: 0.0.1
JS: 2017-07-31T14:20:16.486Z Debug: Carreando conteudo página principal
JS: 2017-07-31T14:20:16.487Z Debug: Image<logo>@file:///app/pages/home/home.xml:26:10;
View StackTrace for Error
An uncaught Exception occurred on "main" thread.
java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.fullservice.MobileAPP.mobile.client/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
Calling js method onCreate failed
Error: Building UI from XML. @file:///app/pages/home/home.xml:35:7
> Module '/data/data/br.com.fullservice.MobileAPP.mobile.client/files/app/widgets/menu' not found for element 'widgets/menu:SideMenu'.
> Unexpected identifier
File: "file:///data/data/br.com.fullservice.MobileAPP.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js, line: 195, column: 20
StackTrace:
View 1.trace
This file has been truncated, but you can view the full file.
Last login: Fri Jun 16 18:06:03 on console
#### START BASH_PROFILE ###
#### START BASHRC ####
#### BASHRC ####
#### START PROFILE ####
#### END PROFILE ####
#### END BASH_PROFILE ###
estudio-1:~ carlosdelfino$ cd workspace/MobileECG/mobileecg_mobile_client
estudio-1:mobileecg_mobile_client carlosdelfino$ rm -rf platforms node_modules hooks
View gist:417aa38090ae68ed94c3d91affc0797a
estudio-1:mobileecg_mobile_client carlosdelfino$ tns device run
I/RESPONSE(16600): pVZbb+I4FP4rFc9DHEBz60vFFnaF1E5HtDsvuyvrxHbhTJ04YzuQmar/fU4ubA0EaNUXiI997t+5/PPYA28xKbzpnfckeBhrrywIML13vRVoY4k+/MjiT2wwGozOB6M/5ne9p3dbfNp8B5NpzBQvrOb0UZQBO9O4ssb1JS7QAzp2cXk147PJv0Ucj+QjyqcjAnPlfhToYBgIrBiHH76Or8bf5uPbL4NWkFelN0/NJaawUMOobK7iLeLPlnjCjTVmb3MCswcukfgX3JnEqkDa0vv8nLH1eh05sIAriIRJo8R2CsmtkdVxm9+RgMYaHVXGgUXYFsamcwVS2VtlVygUqxxklans0dUk83Q8Bm/yX8iM1xFPK1EJuI4AYLo47sKu0CU6byxZTte5Bf7Dy9qwQPRol6dKpjTrTBuQlBCBJiNFhueek4I9m07EdFdA9AvzPddNdo82Ba5KoXmCiUbjlYBAmcN0l6sz7gFSXhYhSjhfGV2kVDsgHij+HDNHDmkVOsu+1W8cG0+mZ8MoZpPG7bOpRE8Ouop4NttwRvnD4hg2OcpA+MFyqIpZCeQpZkvgTtFvB6oPO8uEyrwFvfmPpNZMZSt6V8m68LmncsOsQWVNi5Y+7bTFFcBNjhmCeU289wpBKixVn6T1W2kHNcL3QsKbdDnABPopffZtXdpduqgmZCXJF6DxV6hw8H4PLblGUbV7DtoXVFCUGSragOfDMSYNdtHJ9WkYdwFTlUoUHlZKt6AEGQafjfNadA1ANpYmUWdduIwgz9mlyTyhwLFrEDe3B14faUqE3G3QEoF3ANdjqkzhyUet0XGqbVVuxTSO93x97nuhdzvteNL2JDa7/osd0v5KY4P+jbJwWyV/sCo3NdwOhZDl0JzwKs0NX6EETkhYKvrNTyCN0t+MxNbtjs7b3kRQ5bKqAZYXCatPm7as
View dmesg 26 de Março de 2017 10:30 - problemas HD
[ 727.031759] usb 1-1: USB disconnect, device number 2
[ 729.732216] usb 1-1: new high-speed USB device number 5 using ehci-pci
[ 729.865242] usb 1-1: New USB device found, idVendor=1058, idProduct=0740
[ 729.865256] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[ 729.865265] usb 1-1: Product: My Passport 0740
[ 729.865272] usb 1-1: Manufacturer: Western Digital
[ 729.865279] usb 1-1: SerialNumber: 575835314139313237393632
[ 729.866315] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 729.867408] scsi host3: usb-storage 1-1:1.0
[ 730.865067] scsi 3:0:0:0: Direct-Access WD My Passport 0740 1003 PQ: 0 ANSI: 6