B bluedude Well-Known Member Licensed User Longtime User Nov 28, 2014 #1 Hi, On Kitkat my code to reset GetStartingIntent works but on Android 4.3 it does not work: Activity.GetStartingIntent.Action = "" Any suggestions to reset the intent and clear it? Ceers,
Hi, On Kitkat my code to reset GetStartingIntent works but on Android 4.3 it does not work: Activity.GetStartingIntent.Action = "" Any suggestions to reset the intent and clear it? Ceers,
Erel B4X founder Staff member Licensed User Longtime User Nov 28, 2014 #2 Don't try to reset it. Instead store the intent in a process global variable and then check: Code: Copy If Activity.GetStartingIntent <> GlobalIntent Then 'new intent arrived GlobalIntent = Activity.GetStartingIntent Upvote 0
Don't try to reset it. Instead store the intent in a process global variable and then check: Code: Copy If Activity.GetStartingIntent <> GlobalIntent Then 'new intent arrived GlobalIntent = Activity.GetStartingIntent
B bluedude Well-Known Member Licensed User Longtime User Nov 28, 2014 #3 Not sure if that works. If I store it it will only run once doesn't it? I need to handle a browser click and after that reset it and handle it again but only if it is from a click (URI scheme). So GlobalIntent is a process global intent? Upvote 0
Not sure if that works. If I store it it will only run once doesn't it? I need to handle a browser click and after that reset it and handle it again but only if it is from a click (URI scheme). So GlobalIntent is a process global intent?
B bluedude Well-Known Member Licensed User Longtime User Nov 28, 2014 #4 And that is the best way to also check on a specific action like intentExternal.ACTION_VIEW ? Upvote 0
B bluedude Well-Known Member Licensed User Longtime User Nov 28, 2014 #5 Ok, solved it. It was a completely different issue, forgot to put my phone out of developer mode (Activity killing feature). That means it creates the same action.VIEW over and over again. Upvote 0
Ok, solved it. It was a completely different issue, forgot to put my phone out of developer mode (Activity killing feature). That means it creates the same action.VIEW over and over again.