Android Handling Deep Links Retrieving query parameters

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!


public class MainActivity extends Activity {

    public void onCreate(Bundle savedInstanceState) {
        Intent intent = getIntent();
        Uri data = intent.getData();

        if (data != null) {
            String param1 = data.getQueryParameter("param1");
            String param2 = data.getQueryParameter("param2");


If the user clicks on a linkto, then param1 here will have a value of "FOO" and param2 will have a value of "BAR".

Got any Android Question?