Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.4 integrate with master #34

Draft
wants to merge 222 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
7334e28
remove Dex workaround for including external lib under javax
theastrowolfe Jan 4, 2019
b8b81df
Merge remote-tracking branch 'origin' into sofwerx
theastrowolfe Jan 7, 2019
f16ff5a
test adding jetty upon updating config
theastrowolfe Jan 7, 2019
ab72e6e
update to auto import vs manual import
theastrowolfe Jan 7, 2019
2deb144
test HTTP Server config and SOS config in sensorhub config
theastrowolfe Jan 15, 2019
ce7c4f0
wip
theastrowolfe Jan 15, 2019
8745ab9
implement sensorhub http server and sos service
theastrowolfe Jan 16, 2019
9f644d3
add h2 support
theastrowolfe Jan 23, 2019
65ad7a4
wip for adding video
theastrowolfe Jan 23, 2019
dd98183
alex defaulted quat orientation
theastrowolfe Jan 28, 2019
bcdaa94
remove old SOS options from settings
theastrowolfe Jan 29, 2019
151be07
test new settings ui
theastrowolfe Jan 29, 2019
caeeb2c
wip refactoring configs for sensorhubconfig
theastrowolfe Jan 29, 2019
b8123bf
Merge branch 'master' into sofwerx
theastrowolfe Jan 29, 2019
ed8162a
wip storage
theastrowolfe Jan 29, 2019
c174069
wip storage not working
theastrowolfe Jan 29, 2019
e870748
fix typo in comment
theastrowolfe Jan 29, 2019
f874b40
wip; post weekly tagup
theastrowolfe Jan 29, 2019
be1567b
refactor settings for different data pushing options, and troubleshoo…
theastrowolfe Feb 1, 2019
48a8271
fix storage and stream storage config
theastrowolfe Feb 5, 2019
bb47d6b
cronjob
theastrowolfe Feb 5, 2019
0fbb6a8
test using one config for each simple sensor
theastrowolfe Feb 6, 2019
b365ec0
test using one config only
theastrowolfe Feb 6, 2019
1be9277
use one androidSensorsConfig
theastrowolfe Feb 6, 2019
9b8a9d5
cronjob
theastrowolfe Feb 6, 2019
4e71054
add methods for addStorageConfig and addSosServerConfig
theastrowolfe Feb 8, 2019
eaf279d
add methods for addStorageConfig and addSosServerConfig
theastrowolfe Feb 8, 2019
b7132ab
comment out for testing
theastrowolfe Feb 11, 2019
8b198fd
example for receiving org.sofwerx.ogc.ACTION_SOS broadcast
theastrowolfe Feb 11, 2019
80ed54a
uncomment adding excluded outputs to storageConf and DataProviderConf
theastrowolfe Feb 11, 2019
786063a
prevent wakeup/no-wakeup sensors from being added and duping data
theastrowolfe Feb 11, 2019
b491905
refactor new way of getting sensorName for excludedOutputs
theastrowolfe Feb 11, 2019
f5b095c
wip
theastrowolfe Feb 14, 2019
0c99135
add check to ignore non-wakeup sensors
theastrowolfe Feb 14, 2019
ee9e752
add better proof of concept for handling IPC
theastrowolfe Feb 19, 2019
0669f00
fix realtime not show up in capabilities output
theastrowolfe Feb 19, 2019
329c3da
change logic for selecting wake sensor
theastrowolfe Feb 19, 2019
4c47e50
Add IP Address to general settings preference.
theastrowolfe Feb 19, 2019
be399a4
clean up unused imports and add current TODOs
theastrowolfe Feb 19, 2019
6464d43
add wake/nonwake logic at beginning of looping through sensors
theastrowolfe Feb 26, 2019
e2141af
add more logging to excludes output and base logic entirely off of pr…
theastrowolfe Feb 26, 2019
7d5ca37
cleanly and properly cleanup the HttpServer
theastrowolfe Feb 28, 2019
d1854d7
wip - IPC BroadcastReceiver registered programatically not via manifest
theastrowolfe Mar 5, 2019
4d6cc13
wip - IPC create SOSConfig to hold android context
theastrowolfe Mar 5, 2019
d7fb50c
WIP to fix cloning/crashing/stackoverflow error
theastrowolfe Mar 7, 2019
9b966d2
WIP to fix cloning/crashing/stackoverflow error
theastrowolfe Mar 7, 2019
d18e6b7
add transient
theastrowolfe Mar 7, 2019
18f7a01
WIP for androidContext for IPC and storage for new sensors via SOS-T
theastrowolfe Mar 12, 2019
f8b7d1e
update build and settings for sensorhub-service-swe and video stuff
theastrowolfe Mar 12, 2019
0bd2a31
Merge branch 'master' into sofwerx
theastrowolfe Mar 13, 2019
ddc47b6
clean code some
theastrowolfe Mar 19, 2019
77bbee4
revert SOSServiceWithIPC.java
theastrowolfe Mar 19, 2019
83ceaeb
fix broken import
theastrowolfe Mar 19, 2019
5038e18
use getApplicationContext
theastrowolfe Mar 19, 2019
f334cde
fix cloning bug that keeps crashing app
theastrowolfe Mar 20, 2019
6c2156a
add initial IPC handler
theastrowolfe Mar 26, 2019
ea83876
clean up code
theastrowolfe Mar 26, 2019
6fb270e
extrct payload for response
theastrowolfe Mar 26, 2019
6c4e725
add IPC response
theastrowolfe Mar 26, 2019
b26629a
check if pushing sensor before adding SOS-T Config
theastrowolfe Apr 9, 2019
1f942d2
change default port to 8585
theastrowolfe Apr 9, 2019
990d90a
update trupulse sensor settings and fuctionality to new datasource an…
theastrowolfe Apr 22, 2019
a46b612
clean code
theastrowolfe Apr 22, 2019
0fbd2cf
add sqan situational awareness broadcast listener
theastrowolfe May 20, 2019
3a17c80
add SOS-T interface
theastrowolfe May 20, 2019
13f0869
wip
theastrowolfe Jun 18, 2019
f1f08a8
import basic usage of ProxySensor
theastrowolfe Jun 19, 2019
e02d525
import basic usage of ProxySensor
theastrowolfe Jun 19, 2019
bd1281c
Start building modified start method
ChainReaction31 Jun 21, 2019
2a1ede0
WIP: Proxy Sensor testing
ChainReaction31 Jun 24, 2019
e93c5d7
working wip
theastrowolfe Jun 25, 2019
f219835
Merge remote-tracking branch 'origin/sofwerx-registerListener' into s…
ChainReaction31 Jun 25, 2019
fa05e1c
add ui element for testing proxy broadcast
theastrowolfe Jun 25, 2019
b0827e0
Merge remote-tracking branch 'origin/sofwerx-registerListener' into s…
ChainReaction31 Jun 25, 2019
bb1cb0a
WIP: Auto Hub Restart on Proxy Add
ChainReaction31 Jun 27, 2019
25588db
Update Config in Place
ChainReaction31 Jun 27, 2019
d203c2b
Start Proxy Sensor Stream on GetResult
ChainReaction31 Jul 10, 2019
4510ec6
Stop Proxy Sensor stream manually
ChainReaction31 Jul 10, 2019
38a9f91
Fix proxy sensor time error, remove autorestart
ChainReaction31 Jul 10, 2019
85e28bf
Merge remote-tracking branch 'origin/swrx-proxy-hub-restart' into swr…
ChainReaction31 Jul 11, 2019
53353a3
Fix PhenomTime error.
ChainReaction31 Jul 12, 2019
70d5912
Reinstate Auto Restart + small refactoring
ChainReaction31 Jul 12, 2019
b73bf6b
Stop streams on unregisterListener
ChainReaction31 Jul 12, 2019
d2ded85
Testing BLE Beacon Usage
ChainReaction31 Sep 24, 2019
9e419e3
Implementing BLE Beacon Sensor Driver
ChainReaction31 Oct 3, 2019
b6b567b
Migrate previous code into BLEBeaconRawOutput for ease of handling fo…
ChainReaction31 Oct 3, 2019
61fb7dc
Add BLE Beacon to MainActivity
ChainReaction31 Oct 3, 2019
0af5001
Pull BLE back out, trying to resolve dependency duplication issues
ChainReaction31 Oct 4, 2019
85b1bee
Updated Gradle config to make it compile
alexrobin Oct 4, 2019
f48a8f2
Added BLE beacon driver
alexrobin Oct 4, 2019
eea2af8
Merge pull request #22 from alexrobin/scira-ble
ChainReaction31 Oct 4, 2019
0492fd8
fix crash on startup
ChainReaction31 Oct 8, 2019
9b97d6b
change ble_beacon unique id to actually be unique
ChainReaction31 Oct 8, 2019
1ff73c8
Migrate some code from BLERawOutput to the driver itself
ChainReaction31 Oct 9, 2019
80405bf
Location Output appears, but no data
ChainReaction31 Oct 10, 2019
ab7d4a5
Fix Encoding error caused by incorrect time data.
ChainReaction31 Oct 10, 2019
8716142
wip: implement simple selection of best available beacons.
ChainReaction31 Oct 12, 2019
dafa754
WIP: add trilatertion algorithm adapted from Trek1000 sensor
ChainReaction31 Oct 15, 2019
cc69cc9
Implemented two forms of trilateration, both either error out, or giv…
ChainReaction31 Oct 16, 2019
105a2c6
WIP: implementing conversion from decimal degrees to ECEF
ChainReaction31 Oct 18, 2019
43565b4
Fixed conversion issue caused by incorrect LLA values
ChainReaction31 Oct 21, 2019
be64cb3
Fixed another conversion issue caused by incorrect LLA values
ChainReaction31 Oct 22, 2019
93d6011
Change structure of output for better ease of use.
ChainReaction31 Oct 23, 2019
56ec929
WIP: handle excess beacons
ChainReaction31 Oct 29, 2019
dd3d31f
Implement handling more than three beacons
ChainReaction31 Oct 30, 2019
c0027e9
Updated Gradle config to make it compile
alexrobin Oct 4, 2019
0321126
WIP: Add clampToNearest flag to BLEBeaconConfig
ChainReaction31 Oct 30, 2019
6fb8eb2
Fix sublist issue
ChainReaction31 Oct 30, 2019
10fd74e
Merge remote-tracking branch 'origin/scira-ble' into scira-ble
ChainReaction31 Oct 30, 2019
81da4c0
Add output for nearest beacon
ChainReaction31 Oct 30, 2019
b2eb58b
Fix index error in NearestBeaconOutput
ChainReaction31 Oct 31, 2019
346a899
(Untested) Add time checking for old beacons to make sure they are pu…
ChainReaction31 Nov 4, 2019
db76e14
change distance calc away from ABL
ChainReaction31 Nov 4, 2019
19bd5fc
tweak distance calculations further
ChainReaction31 Nov 4, 2019
db5db52
moving to a shorter running avg for rssi comparison
ChainReaction31 Nov 4, 2019
7ad21d6
Change averaging window for RSSI
ChainReaction31 Nov 5, 2019
8a1b06a
Update UI with options for BLE sensor
ChainReaction31 Nov 5, 2019
e0eb3eb
Update Main Activity to enable BLE through UI(WIP)
ChainReaction31 Nov 6, 2019
ab5a69c
Update Main Activity to enable BLE through UI (working)
ChainReaction31 Nov 6, 2019
4b9a112
Update Average sampling time for the BLE Location Driver so the UI do…
ChainReaction31 Nov 6, 2019
ce2b0c2
Fix crash on app startup caused by null reference to boundservice
ChainReaction31 Nov 6, 2019
47e7ae2
Fix typos, comment out unused code
ChainReaction31 Nov 7, 2019
3667c4e
Initial modifications to support Recon activity
nickgaray Nov 7, 2019
ecfe888
Renamed activity to SpotReport
nickgaray Nov 8, 2019
25b3c70
Implemented SpotReport driver
nickgaray Nov 11, 2019
4a13649
Fix build of SpotReport
nickgaray Nov 11, 2019
9ed326d
Fix build of SpotReport
nickgaray Nov 11, 2019
799c3da
Work in progress, driver output
nickgaray Nov 13, 2019
2536d80
Cleanup code to send only imageUri as a string or null
nickgaray Nov 13, 2019
cd8a549
Attempting to fix encoding and packaging of data
nickgaray Nov 14, 2019
afabcd2
Attempting to fix encoding and packaging of data
nickgaray Nov 14, 2019
0732e6d
Fixed encoding and packaging of payload.
nickgaray Nov 15, 2019
4585e59
Remove image width and height from config, setup these values in output.
nickgaray Nov 18, 2019
2c05778
Remove image width and height from config, setup these values in output.
nickgaray Nov 18, 2019
83ba9f3
Remove duplicate permission.
nickgaray Nov 19, 2019
f64641a
Cleanup code
nickgaray Nov 19, 2019
8f0c64f
Add LRF to choices of spot report location sources
nickgaray Nov 20, 2019
f2ae74d
Merge branch 'scira-ble' into integration
nickgaray Dec 22, 2019
8b35b8c
Change runtime version support or app
nickgaray Dec 22, 2019
917c25a
Implement forms for Responder Spot Report
nickgaray Dec 24, 2019
b9494d4
Implement forms for Responder Spot Report - Updates to fix warnings a…
nickgaray Dec 24, 2019
9974a35
Implement forms for Responder Spot Report - Finish forms and improve …
nickgaray Dec 26, 2019
42e7e23
Separate forms into individual layout files
nickgaray Dec 26, 2019
b12a1b9
Added layout for image capture
nickgaray Dec 26, 2019
4b7b7ea
Updates to allow gps text to be seen properly
nickgaray Dec 26, 2019
454f11b
Tied submit report button to various layouts, ready for construction …
nickgaray Dec 26, 2019
0fcee3d
Create Outputs for Spot Reports
nickgaray Dec 27, 2019
3377078
Fix resource id for street closure radius
nickgaray Dec 28, 2019
ffd66be
Correct issues preventing outputs from registering due to exception i…
nickgaray Dec 31, 2019
78f8e29
Fix issues packing data into SWE data struct
nickgaray Dec 31, 2019
b0de094
Fix issue with successful submission of reports.
nickgaray Dec 31, 2019
91ebc4f
Fix incorrect data struct type for vital signs measure component of o…
nickgaray Jan 1, 2020
add45cd
Make output names friendly
nickgaray Jan 1, 2020
c127029
Add Preference Setting to change the BLE Beacon Config URL
ChainReaction31 Jan 5, 2020
9f36bc6
Update position of Spot Report on Menu
nickgaray Jan 6, 2020
7cd2554
Changes to Support Spot Reports
nickgaray Jan 9, 2020
3a390e0
Bridge SpotReport Tracks with other location outputs
nickgaray Jan 9, 2020
8331efd
Bridge SpotReport Tracks with other location outputs - fixes to inten…
nickgaray Jan 9, 2020
195db26
Add MQTT Service
nickgaray Jan 10, 2020
258dc41
Add support for a roomDesc field from the config file as well as the …
ChainReaction31 Jan 10, 2020
e6de4ac
Connecting with MQTT
nickgaray Jan 10, 2020
30fb695
Adding feature reference to Track Spot Report
nickgaray Jan 10, 2020
8aa666d
Merge remote-tracking branch 'origin/responder_app' into ble-output-a…
ChainReaction31 Jan 10, 2020
c216a6e
Fixed MQTT to connect and receive messages...more work to be done
nickgaray Jan 11, 2020
31f55fc
Fixed MQTT to connect and receive messages...more work to be done
nickgaray Jan 11, 2020
d221d0a
Fixed MQTT to connect and receive messages...more work to be done
nickgaray Jan 11, 2020
8ee85b5
Added headers, fixed signature on function call
nickgaray Jan 11, 2020
1f04826
Refactored
nickgaray Jan 12, 2020
c4c85e7
Allow message handler to use android os messaging mechanics
nickgaray Jan 12, 2020
caad77b
Add method to connect to MQTT Service with no AUTH
nickgaray Jan 13, 2020
0867b85
Remove old ChromeWebview logic
nickgaray Jan 13, 2020
e2308b9
Changes to SWE data blocks supporting action elements
nickgaray Jan 14, 2020
c16b80b
Changes to ui layouts
nickgaray Jan 14, 2020
6aa5b0f
Changes to ui layouts - disable reference id if not selecting a close…
nickgaray Jan 14, 2020
69c498d
Enable MQTT to COmpusult Hub Connection
nickgaray Jan 14, 2020
4f87f80
Modifications to send back updated statuses on messages
nickgaray Jan 14, 2020
d4f02c2
Persist reports
nickgaray Jan 14, 2020
03da35c
Merge remote-tracking branch 'origin/ble-output-additions' into respo…
nickgaray Jan 14, 2020
0d4f719
Throttle Spot Reports Down
nickgaray Jan 14, 2020
23d2ace
tentative fix for Broken Pipe/Error in SWE Data
ChainReaction31 Jan 15, 2020
c45677c
Fix ID for track reports
ChainReaction31 Jan 15, 2020
1cec0ef
Remove references to Spot Reports and related files, update version n…
ChainReaction31 Feb 27, 2020
673e465
Add automatic request for user permissions (Location, Camera, Storage)
ChainReaction31 Feb 27, 2020
93bb527
Fixed support for TruPulse simulated data and geolocation
alexrobin Mar 11, 2020
2c67bd0
Add back EulerOrientationOutputs
ChainReaction31 Mar 12, 2020
e0a3125
Merge branch 'app-v1.4.0a-trupulse-fix' into app-v1.4.0a
ChainReaction31 Mar 12, 2020
a654538
Initial support for AAC audio stream
alexrobin Mar 23, 2021
7403292
Compute exact timestamps based on number of recorded samples
alexrobin Apr 12, 2021
5a73ac3
Added support for OPUS audio codec
alexrobin Apr 12, 2021
5db1e32
Video data being transmitted, no preview
ChainReaction31 Apr 27, 2021
2ebf452
Merge remote-tracking branch 'origin/app-v1.4.0a' into 1.4_integrate_…
ChainReaction31 Sep 7, 2021
a3a0abc
update build files as necessary to remove errors, move proxy sensor t…
ChainReaction31 Sep 8, 2021
318b0ec
update module names for ProxySensor and SOS IPC
ChainReaction31 Sep 8, 2021
d0819a9
[WIP] Update to add HTTPServerConfig to Main and SensorHubService
ChainReaction31 Sep 10, 2021
d0a9051
Merge remote-tracking branch 'origin/master' into 1.4_integrate_with_…
ChainReaction31 Sep 13, 2021
f55c8c2
add things necessary for sos configuration and setup
ChainReaction31 Sep 15, 2021
c1d2c51
fixes issue causing SOST clients to not be created
ChainReaction31 Sep 16, 2021
ffe10ce
[WIP] going to reimplement SOS w/ IPC module to hopefully get the ful…
ChainReaction31 Sep 18, 2021
83c530f
[WIP] move SOS w/ IPC back. Currently won't start as expected.
ChainReaction31 Sep 21, 2021
a8b4df3
SOS service and http server now start as expected
ChainReaction31 Sep 21, 2021
6465324
Update UI to account for push/store options
ChainReaction31 Sep 22, 2021
19bb6cf
Update methods in MainActivity to reflect names of preferences properly
ChainReaction31 Sep 23, 2021
333127d
Add mock for Status View and add Camera Selection UI elements
ChainReaction31 Sep 29, 2021
9298828
selecting other cameras works, though without properly orienting the …
ChainReaction31 Sep 30, 2021
2b1066d
Force camera preview orientation to 90 degrees
ChainReaction31 Sep 30, 2021
d13f286
Add prompt for permissions
ChainReaction31 Oct 5, 2021
8f8dd8e
App Status screen will show basic status of modules
ChainReaction31 Oct 7, 2021
cef1d89
improve status text alignment
ChainReaction31 Oct 7, 2021
4a1c47e
change status text to N/A when the hub has not been created or is oth…
ChainReaction31 Oct 7, 2021
3ee1dca
add back support for showing the ip address of the android device in …
ChainReaction31 Oct 7, 2021
77544bd
move back to using sosService instead of with IPC by default
ChainReaction31 Oct 8, 2021
8d95960
start bringing in files from audio support branch
ChainReaction31 Oct 15, 2021
33e1f4e
Merge branch 'audio_support' into 1.4_integrate_with_master
ChainReaction31 Oct 15, 2021
76de183
audio enabled and pushing data
ChainReaction31 Oct 18, 2021
a604d77
ask for recording permission for audio
ChainReaction31 Oct 18, 2021
92da675
allow user to choose to enable or disable hub and hub storage
ChainReaction31 Oct 21, 2021
d19bd1f
make starting modules automatic based on sensor options selected
ChainReaction31 Oct 23, 2021
4851005
Show a status message when no sensors are pushing remotely just to no…
ChainReaction31 Nov 2, 2021
00977ee
update todo list
ChainReaction31 Nov 4, 2021
7e30cdb
change offeringID to match procedureID
ChainReaction31 Nov 4, 2021
560e0a3
change how permissions are requested to prevent a crash when changing…
ChainReaction31 Nov 4, 2021
592fb7a
fix bug causing audio output to always get created
ChainReaction31 Nov 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext.oshCoreVersion = '1.4.0'
ext.compileSdkVersion = 21
ext.minSdkVersion = 21
ext.targetSdkVersion = 21
ext.compileSdkVersion = 31
ext.minSdkVersion = 26
ext.targetSdkVersion = 26
ext.buildToolsVersion = "30.0.2"
version = oshCoreVersion

Expand Down
46 changes: 33 additions & 13 deletions sensorhub-android-app/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,57 @@
<uses-feature android:name="android.hardware.location" />
<uses-feature android:name="android.hardware.sensor.compass" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.usb.accessory" android:required="true" />
<uses-feature
android:name="android.hardware.usb.accessory"
android:required="true" />
<uses-feature
android:name="android.hardware.bluetooth_le"
android:required="true" />

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO"/>

<uses-feature android:name="android.hardware.camera2.full" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
android:largeHeap="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:configChanges="orientation|screenSize"
android:screenOrientation="portrait"
android:label="@string/app_name" >
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".UserSettingsActivity"
android:label="@string/title_activity_user_settings" >
</activity>
<service
android:enabled="true"
android:name=".SensorHubService">
</service>
android:label="@string/title_activity_user_settings" />
<activity
android:name=".AppStatusActivity"
android:label="App Status"
android:theme="@style/Theme.AppCompat.DayNight"/>
<!-- <activity android:name=".spotreport.SpotReportActivity" -->
<!-- android:configChanges="orientation|screenSize"> -->

<service
android:name=".SensorHubService"
android:enabled="true" />
</application>

</manifest>
</manifest>
20 changes: 20 additions & 0 deletions sensorhub-android-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,25 @@ apply plugin: 'com.android.application'
description = 'OSH Demo Android App'
ext.details = 'OSH demo app for Android'

repositories {
maven {
url "https://repo.eclipse.org/content/repositories/paho-releases/"
}
}

dependencies {
api project(':sensorhub-android-lib')

implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0'
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation 'android.arch.navigation:navigation-fragment:1.0.0'
implementation 'android.arch.navigation:navigation-ui:1.0.0'
implementation 'com.android.support:support-v4:26.1.0'
// implementation project(path: ':sensorhub-android-sos-ipc')
// implementation project(path: ':sensorhub-storage-h2')
}

android {
Expand Down Expand Up @@ -41,5 +58,8 @@ android {
lintOptions {
abortOnError false
}
buildFeatures {
viewBinding true
}
}

Binary file modified sensorhub-android-app/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sensorhub-android-app/res/drawable-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sensorhub-android-app/res/drawable-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sensorhub-android-app/res/drawable-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sensorhub-android-app/res/drawable-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 108 additions & 0 deletions sensorhub-android-app/res/layout/activity_app_status.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".AppStatusActivity">

<TextView
android:id="@+id/sos_service_status_label"
android:layout_width="215dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:padding="10dp"
android:text="@string/sosServiceStatusLabel"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/sos_service_state"
android:layout_width="0dp"
android:layout_height="0dp"
android:padding="10dp"
android:text="TextView"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="@+id/sos_service_status_label"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/sos_service_status_label"
app:layout_constraintTop_toTopOf="@+id/sos_service_status_label" />

<TextView
android:id="@+id/http_server_status_label"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:padding="10dp"
android:text="@string/httpServerStatusLabel"
app:layout_constraintEnd_toEndOf="@+id/sos_service_status_label"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/sos_service_status_label" />

<TextView
android:id="@+id/http_service_state"
android:layout_width="0dp"
android:layout_height="0dp"
android:padding="10dp"
android:text="TextView"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="@+id/http_server_status_label"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/http_server_status_label"
app:layout_constraintTop_toTopOf="@+id/http_server_status_label" />

<TextView
android:id="@+id/android_sensor_status_label"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_below="@+id/http_server_status_label"
android:layout_marginStart="8dp"
android:padding="10dp"
android:text="@string/sensorServiceStatusLabel"
app:layout_constraintEnd_toEndOf="@+id/http_server_status_label"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/http_server_status_label" />

<TextView
android:id="@+id/sensor_service_state"
android:layout_width="0dp"
android:layout_height="0dp"
android:padding="10dp"
android:text="TextView"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="@+id/android_sensor_status_label"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/android_sensor_status_label"
app:layout_constraintTop_toTopOf="@+id/android_sensor_status_label" />

<TextView
android:id="@+id/storage_service_status_label"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_below="@+id/android_sensor_status_label"
android:layout_marginStart="8dp"
android:padding="10dp"
android:text="@string/storageServiceStatusLabel"
app:layout_constraintEnd_toEndOf="@+id/android_sensor_status_label"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/android_sensor_status_label" />

<TextView
android:id="@+id/storage_service_state"
android:layout_width="0dp"
android:layout_height="0dp"
android:padding="10dp"
android:text="TextView"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="@+id/storage_service_status_label"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/storage_service_status_label"
app:layout_constraintTop_toTopOf="@+id/storage_service_status_label" />


</android.support.constraint.ConstraintLayout>
8 changes: 7 additions & 1 deletion sensorhub-android-app/res/menu/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@
android:title="@string/action_stop"/>

<item
android:id="@+id/action_about"
android:id="@+id/action_status"
android:orderInCategory="103"
android:showAsAction="never"
android:title="@string/action_status"/>

<item
android:id="@+id/action_about"
android:orderInCategory="110"
android:showAsAction="never"
android:title="@string/action_about"/>

</menu>
Loading