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"
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);