wpadebug: Add main screen buttons for QR Code operations

These can be used for manual testing of the DPP QR Code functionality.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
master
Jouni Malinen 6 years ago committed by Jouni Malinen
parent 8b244b0009
commit 83565fd21e

@ -116,6 +116,30 @@
android:onClick="runCommands"
/>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="QR Scan"
android:onClick="runQrScan"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="QR Input"
android:onClick="runQrInput"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="QR Display"
android:onClick="runQrDisplay"
/>
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"

@ -47,6 +47,24 @@ public class MainActivity extends Activity
startActivity(intent);
}
public void runQrScan(View view)
{
Intent intent = new Intent(this, QrCodeScannerActivity.class);
startActivity(intent);
}
public void runQrInput(View view)
{
Intent intent = new Intent(this, InputUri.class);
startActivity(intent);
}
public void runQrDisplay(View view)
{
Intent intent = new Intent(this, QrCodeDisplayActivity.class);
startActivity(intent);
}
public void runWpaCommands(View view)
{
Intent intent = new Intent(this, WpaCommandListActivity.class);

Loading…
Cancel
Save