I need to parse the manifest and send it to the android: scheme server <data android:scheme="http" android:host="www.example.com" android:pathPrefix="/gizmos" /> , and also to know the name of the activation which has this intent. Does anyone know how to do this? To take all the content of the manifesto is also suitable.

    1 answer 1

    Specify this data in the manifest via meta-data . Use this code to get the metadata from the manifest.

     try { ApplicationInfo ai = getPackageManager().getApplicationInfo(activity.getPackageName(), PackageManager.GET_META_DATA); Bundle bundle = ai.metaData; String myApiKey = bundle.getString("key"); } catch (NameNotFoundException e) { Log.e(TAG, "Failed to load meta-data, NameNotFound: " + e.getMessage()); } catch (NullPointerException e) { Log.e(TAG, "Failed to load meta-data, NullPointer: " + e.getMessage()); } 
    • hmm, unfortunately, I don’t need meta-data, but the date from the intent filter - URI for Deep Linking - Enuviel
    • And unfortunately I did not understand you correctly. Then please correct your question - pavel163