From 57b3068e703e0d2606709ddbcbc851ce5445a559 Mon Sep 17 00:00:00 2001 From: vanitasvitae Date: Tue, 12 Sep 2017 18:11:58 +0200 Subject: [PATCH] Fix intent filters --- app/src/main/AndroidManifest.xml | 8 +------- app/src/main/java/de/trac/spherical/MainActivity.java | 10 ++++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e17b6ff..25b41ae 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -19,15 +19,9 @@ - - - - - - + - diff --git a/app/src/main/java/de/trac/spherical/MainActivity.java b/app/src/main/java/de/trac/spherical/MainActivity.java index f56afd3..a6ea194 100644 --- a/app/src/main/java/de/trac/spherical/MainActivity.java +++ b/app/src/main/java/de/trac/spherical/MainActivity.java @@ -1,13 +1,23 @@ package de.trac.spherical; +import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; +import android.util.Log; public class MainActivity extends AppCompatActivity { + public static final String TAG = "Spherical"; + @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); + + Intent intent = getIntent(); + String action = intent.getAction(); + String type = intent.getType(); + + Log.d(TAG, "Intent: " + action + " " + type); } }