Add button "Test New Functionality"
This commit is contained in:
parent
21fc5c7498
commit
4122e0c20c
|
@ -54,6 +54,7 @@ public class DebugActivity extends GBActivity {
|
|||
private Button setTimeButton;
|
||||
private Button rebootButton;
|
||||
private Button HeartRateButton;
|
||||
private Button testNewFunctionalityButton;
|
||||
|
||||
private EditText editContent;
|
||||
private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
|
||||
|
@ -214,6 +215,18 @@ public class DebugActivity extends GBActivity {
|
|||
testNotification();
|
||||
}
|
||||
});
|
||||
|
||||
testNewFunctionalityButton = (Button) findViewById(R.id.testNewFunctionality);
|
||||
testNewFunctionalityButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
testNewFunctionality();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void testNewFunctionality() {
|
||||
GBApplication.deviceService().onTestNewFunction();
|
||||
}
|
||||
|
||||
private void testNotification() {
|
||||
|
|
|
@ -54,15 +54,17 @@
|
|||
android:layout_column="0"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="2"
|
||||
android:layout_columnSpan="2"
|
||||
android:text="send as SMS" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/sendButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_column="1"
|
||||
android:layout_column="0"
|
||||
android:layout_columnSpan="2"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="2"
|
||||
android:layout_row="3"
|
||||
android:text="Send" />
|
||||
|
||||
<Button
|
||||
|
@ -71,7 +73,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_column="0"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="3"
|
||||
android:layout_row="4"
|
||||
android:text="incoming call" />
|
||||
|
||||
<Button
|
||||
|
@ -80,7 +82,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_column="1"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="3"
|
||||
android:layout_row="4"
|
||||
android:text="outgoing call" />
|
||||
|
||||
<Button
|
||||
|
@ -89,7 +91,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_column="0"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="4"
|
||||
android:layout_row="5"
|
||||
android:text="start call" />
|
||||
|
||||
<Button
|
||||
|
@ -98,7 +100,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_column="1"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="4"
|
||||
android:layout_row="5"
|
||||
android:text="end call" />
|
||||
|
||||
<Button
|
||||
|
@ -107,7 +109,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_column="0"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="5"
|
||||
android:layout_row="6"
|
||||
android:text="set time" />
|
||||
|
||||
<Button
|
||||
|
@ -116,7 +118,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_column="1"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="5"
|
||||
android:layout_row="6"
|
||||
android:text="set music info" />
|
||||
|
||||
<Button
|
||||
|
@ -126,7 +128,7 @@
|
|||
android:layout_column="0"
|
||||
android:layout_columnSpan="2"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="6"
|
||||
android:layout_row="7"
|
||||
android:text="Heart Rate Test" />
|
||||
|
||||
<Button
|
||||
|
@ -136,7 +138,7 @@
|
|||
android:layout_column="0"
|
||||
android:layout_columnSpan="2"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="7"
|
||||
android:layout_row="8"
|
||||
android:text="reboot" />
|
||||
|
||||
<Button
|
||||
|
@ -146,9 +148,18 @@
|
|||
android:layout_column="0"
|
||||
android:layout_columnSpan="2"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="8"
|
||||
android:layout_row="9"
|
||||
android:text="create test notification" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/testNewFunctionality"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_column="0"
|
||||
android:layout_columnSpan="2"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_row="10"
|
||||
android:text="Test New Functionality" />
|
||||
</GridLayout>
|
||||
</ScrollView>
|
||||
|
||||
|
|
Loading…
Reference in New Issue