- Allow USB debugging on the device
-
Install Nativescript.
-
cd to the appication root directory "AudioMoth9"
-
Run the following commands to install the required plug-ins:
tns plugin add nativescript-task-dispatcher tns plugin add nativescript-dna-deviceinfo ns plugin add nativescript-audio tns plugin add nativescript-geolocation
-
Run the following commands to install the app:
ns clean ns run android
cd platform-tools
adb shell
run-as org.nativescript.AudioMoth9 ls /data/user/0/org.nativescript.AudioMoth9/files
- create new app
ns create AudioMoth
- Copy the code in the following files in 'AudioMoth9':
- home-view-model.ts
- home-page.ts
- AndroidManifest.xml
- Copy the tasks folder into your 'src' directory
- Navigate to the app.gradle file and change minSDK version to 21
- Install the same plug-ins as before
- The start button is set to be disabled after it is clicked. Refreshing the app is required to start a new recording session, this is to avoid event collisions. We need to firgure out how to avoid event collisions when "start" is clicked
- Audio permissions are requested at the start of the first recording, so we need to figure out how to explicitly ask the user for permissions at the same time as the others
- Internal temperture sensor remains undetected (could be dependent on device)