Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 64fa6eb

Browse files
committed
saved
1 parent 6e7ecb8 commit 64fa6eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎app/src/main/java/com/example/chatfull/ConnectToUserActivity.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
9292

9393
if (requestCode == BARCODE_READER_ACTIVITY_REQUEST && data != null) {
9494
Barcode barcode = data.getParcelableExtra(BarcodeReaderActivity.KEY_CAPTURED_BARCODE);
95-
Toast.makeText(this, barcode.rawValue, Toast.LENGTH_SHORT).show();
95+
String client_ip = barcode.rawValue.substring(0, barcode.rawValue.indexOf(':'));
96+
String client_port = barcode.rawValue.substring(barcode.rawValue.indexOf(':') + 1);
97+
98+
ipInput.setText(client_ip);
99+
portInput.setText(client_port);
96100
}
97101

98102
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /