Answers for "get id from deeplink"

0

get id from deeplink

protected void onCreate(@Nullable Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
   setContentView(R.layout.your_view);
   if (getIntent() != null && getIntent().getData() != null)
   {
      //parse your data here,
      //it's the deeplink you want "https://www.example.com/..."
   }
}
Posted by: Guest on November-09-2020
0

get id from deeplink

<intent-filter>
      <action android:name="android.intent.action.VIEW"/>
      <category android:name="android.intent.category.BROWSABLE"/>
      <category android:name="android.intent.category.DEFAULT"/>
      <data
          android:host="www.example.com"
          android:pathPattern="/.*"
          android:scheme="https"/>
 </intent-filter>
Posted by: Guest on November-09-2020

Code answers related to "get id from deeplink"

Browse Popular Code Answers by Language