corwin42 Expert Licensed User Longtime User Feb 19, 2013 #1 I'm playing again with the Android search feature and it would be very helpful if B4A would support a new event Sub "Activity_NewIntent(newIntent as Intent)" when the onNewIntent() method of the activity is called. With this it will be possible to receive the search string in the same activity the seach was initiated. I think this will be easy to implement and won't have any drawbacks. Just an additional option.
I'm playing again with the Android search feature and it would be very helpful if B4A would support a new event Sub "Activity_NewIntent(newIntent as Intent)" when the onNewIntent() method of the activity is called. With this it will be possible to receive the search string in the same activity the seach was initiated. I think this will be easy to implement and won't have any drawbacks. Just an additional option.
Erel B4X founder Staff member Licensed User Longtime User Feb 19, 2013 #2 You can already handle the intent by calling Activity.GetStartingIntent. Activity_Resume should be called when an intent arrives.
You can already handle the intent by calling Activity.GetStartingIntent. Activity_Resume should be called when an intent arrives.
corwin42 Expert Licensed User Longtime User Feb 19, 2013 #3 Ah, thank you. I just have seen that you call SetIntent() on onNewIntent(). Ok, this should be enough for my purposes. Was the onNewIntent() implementation added in some later versions? Can't remember that I have ever seen it in the generated code. Last edited: Feb 19, 2013
Ah, thank you. I just have seen that you call SetIntent() on onNewIntent(). Ok, this should be enough for my purposes. Was the onNewIntent() implementation added in some later versions? Can't remember that I have ever seen it in the generated code.
Erel B4X founder Staff member Licensed User Longtime User Feb 19, 2013 #4 It was added in v1.60: http://www.b4x.com/forum/basic4andr...ic4android-changelog-versions.html#post111319
It was added in v1.60: http://www.b4x.com/forum/basic4andr...ic4android-changelog-versions.html#post111319