added permission support for USB & established a connection using service

This commit is contained in:
vsuryakumar
2023-01-23 23:02:39 +05:30
parent 37545a82e1
commit dc52b14335
31 changed files with 541 additions and 156 deletions

View File

@@ -9,7 +9,7 @@
android:id="@+id/fl_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".presentation.TestRight.TestRightActivity">
tools:context=".presentation.testRight.TestRightActivity">
</FrameLayout>

View File

@@ -2,7 +2,7 @@
<layout 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"
tools:context=".presentation.TestRight.TestRightExpReference">
tools:context=".presentation.testRight.TestRightExpReference">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
@@ -23,9 +23,21 @@
android:layout_height="wrap_content"
android:text="@string/set_reference"
android:layout_margin="16dp"
android:clickable="false"
app:layout_constraintTop_toBottomOf="@id/tv_title"
app:layout_constraintStart_toStartOf="parent" />
<Button
android:id="@+id/btn_read"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/read"
android:layout_margin="16dp"
android:clickable="false"
app:layout_constraintTop_toBottomOf="@id/btn_set_reference"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>

View File

@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".presentation.TestRight.TestRightExpSample">
tools:context=".presentation.testRight.TestRightExpSample">
<!-- TODO: Update blank fragment layout -->
<TextView

View File

@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".presentation.TestRight.TestRightResults">
tools:context=".presentation.testRight.TestRightResults">
<LinearLayout
android:layout_width="match_parent"

View File

@@ -2,7 +2,11 @@
<!-- Base application theme. -->
<style name="Theme.RefactoredApp" parent="Theme.MaterialComponents.Light.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_200</item>
<!-- <item name="colorPrimary">@color/purple_200</item>-->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/black</item>
<!-- Secondary brand color. -->

View File

@@ -5,8 +5,17 @@
<item>TestRight</item>
<item>Denovix</item>
</string-array>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
<string name="select_the_test">Select the Test</string>
<string name="set_reference">Set Reference</string>
<!-- Alert Dialog -->
<string name="have_you_placed">Have you placed the cuvette containing reference sample?</string>
<string name="please_place">Please place the cuvette containing sample for reference before moving forward</string>
<string name="yes">Yes</string>
<string name="no">No</string>
<string name="connect">Connect</string>
<string name="connected">Connected</string>
<string name="read">Read</string>
</resources>

View File

@@ -1,5 +1,11 @@
<resources>
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
</style>
<style name="title1">
<item name="android:textSize">20.5sp</item>
<item name="android:letterSpacing">-0.01</item>