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 setTimeButton;
|
||||||
private Button rebootButton;
|
private Button rebootButton;
|
||||||
private Button HeartRateButton;
|
private Button HeartRateButton;
|
||||||
|
private Button testNewFunctionalityButton;
|
||||||
|
|
||||||
private EditText editContent;
|
private EditText editContent;
|
||||||
private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
|
private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
|
||||||
|
@ -214,6 +215,18 @@ public class DebugActivity extends GBActivity {
|
||||||
testNotification();
|
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() {
|
private void testNotification() {
|
||||||
|
|
|
@ -54,15 +54,17 @@
|
||||||
android:layout_column="0"
|
android:layout_column="0"
|
||||||
android:layout_gravity="fill_horizontal"
|
android:layout_gravity="fill_horizontal"
|
||||||
android:layout_row="2"
|
android:layout_row="2"
|
||||||
|
android:layout_columnSpan="2"
|
||||||
android:text="send as SMS" />
|
android:text="send as SMS" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/sendButton"
|
android:id="@+id/sendButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="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_gravity="fill_horizontal"
|
||||||
android:layout_row="2"
|
android:layout_row="3"
|
||||||
android:text="Send" />
|
android:text="Send" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -71,7 +73,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_column="0"
|
android:layout_column="0"
|
||||||
android:layout_gravity="fill_horizontal"
|
android:layout_gravity="fill_horizontal"
|
||||||
android:layout_row="3"
|
android:layout_row="4"
|
||||||
android:text="incoming call" />
|
android:text="incoming call" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -80,7 +82,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_column="1"
|
android:layout_column="1"
|
||||||
android:layout_gravity="fill_horizontal"
|
android:layout_gravity="fill_horizontal"
|
||||||
android:layout_row="3"
|
android:layout_row="4"
|
||||||
android:text="outgoing call" />
|
android:text="outgoing call" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -89,7 +91,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_column="0"
|
android:layout_column="0"
|
||||||
android:layout_gravity="fill_horizontal"
|
android:layout_gravity="fill_horizontal"
|
||||||
android:layout_row="4"
|
android:layout_row="5"
|
||||||
android:text="start call" />
|
android:text="start call" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -98,7 +100,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_column="1"
|
android:layout_column="1"
|
||||||
android:layout_gravity="fill_horizontal"
|
android:layout_gravity="fill_horizontal"
|
||||||
android:layout_row="4"
|
android:layout_row="5"
|
||||||
android:text="end call" />
|
android:text="end call" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -107,7 +109,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_column="0"
|
android:layout_column="0"
|
||||||
android:layout_gravity="fill_horizontal"
|
android:layout_gravity="fill_horizontal"
|
||||||
android:layout_row="5"
|
android:layout_row="6"
|
||||||
android:text="set time" />
|
android:text="set time" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -116,7 +118,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_column="1"
|
android:layout_column="1"
|
||||||
android:layout_gravity="fill_horizontal"
|
android:layout_gravity="fill_horizontal"
|
||||||
android:layout_row="5"
|
android:layout_row="6"
|
||||||
android:text="set music info" />
|
android:text="set music info" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -126,7 +128,7 @@
|
||||||
android:layout_column="0"
|
android:layout_column="0"
|
||||||
android:layout_columnSpan="2"
|
android:layout_columnSpan="2"
|
||||||
android:layout_gravity="fill_horizontal"
|
android:layout_gravity="fill_horizontal"
|
||||||
android:layout_row="6"
|
android:layout_row="7"
|
||||||
android:text="Heart Rate Test" />
|
android:text="Heart Rate Test" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -136,7 +138,7 @@
|
||||||
android:layout_column="0"
|
android:layout_column="0"
|
||||||
android:layout_columnSpan="2"
|
android:layout_columnSpan="2"
|
||||||
android:layout_gravity="fill_horizontal"
|
android:layout_gravity="fill_horizontal"
|
||||||
android:layout_row="7"
|
android:layout_row="8"
|
||||||
android:text="reboot" />
|
android:text="reboot" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -146,9 +148,18 @@
|
||||||
android:layout_column="0"
|
android:layout_column="0"
|
||||||
android:layout_columnSpan="2"
|
android:layout_columnSpan="2"
|
||||||
android:layout_gravity="fill_horizontal"
|
android:layout_gravity="fill_horizontal"
|
||||||
android:layout_row="8"
|
android:layout_row="9"
|
||||||
android:text="create test notification" />
|
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>
|
</GridLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue