Created
April 25, 2018 02:35
-
-
Save parzibyte/f9a0255db35f8b05f084450de77faa0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.parzibyte.ejemplolectorqr; | |
import android.content.Intent; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import com.blikoon.qrcodescanner.QrCodeActivity; | |
public class MainActivity extends AppCompatActivity { | |
private static final int REQUEST_CODE_QR_SCAN = 101; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
} | |
public void onClick(View v) { | |
Intent i = new Intent(MainActivity.this, QrCodeActivity.class); | |
startActivityForResult(i, REQUEST_CODE_QR_SCAN); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment