Hello, members of the forum. Faced such a problem:

It is possible to launch my app through a specific link (from sms, from the page it doesn’t matter, just follow the link). So launching the application, I get this link and do operations with it. But this all works only if the app has not already been launched. And when it is launched: Yes, when, I click on the link and select my app, it starts. But the data that I'm trying to get (link) in the intent is already zero.

At first, I thought that the problem is that I start splashing the screen (and this is the first activation when the application starts, which is clear from the name is killed later and no longer worries). But when I registered the intents of the filters to another activity, which is not killed, the result was the same - when you first start it works, then no, the intensity is empty.

What can this problem be connected with?

  • To get an intent, use getIntent or Bundle passed to the "onStart" method? Yes, and set the normal theme. - KoVadim
  • getIntent () of course, but no Bundle I asked, but why did the generic retire - Justix
  • Maybe Activity.onNewIntent(Intent intent) will help you? - atwice

0