B4A Question Get NotificationID within Activity started by Notification [SOLVED] - Erel (first post)    May 27, 2021   (1 reaction) Tip: the correct way to work with Activity.GetStartingIntent: Sub Process_Globals Private OldIntent As Intent End Sub Sub ActivityResume Dim in As Intent = Activity.GetStartingIntent If in.IsInitialized And in <> OldIntent Then OldIntent = in '.... End If B4A Question [SOLVED] B4X Intent based camera - fbritop (first post)    Mar 01, 2022   (1 reaction) Solved. There was a missed line regarding Activity_Resume in Main that was not supposed to be there. If Activity.GetStartingIntent = lastintent Then Return B4A Question Notification click to specific page - Erel (first post)    Nov 25, 2021   (4 reactions) Check the attached project and note the code in Main.Activity_Resume Sub Activity_Resume B4XPages.Delegate.Activity_Resume Dim in As Intent = Activity.GetStartingIntent If in.IsInitialized And in.HasExtra("Notification_Tag") And in <> LastIntent Then LastIntent = in Dim B4A Question NB6 and B4XPages - Erel (first post)    Aug 04, 2020   (10 reactions) Good question. 1. Main module, expand the template region and add in Activity_Resume: B4XPages.MainPage.ActivityResume 2. Add to B4XMainPage: Public Sub ActivityResume Dim in As Intent = B4XPages.GetNativeParent(Me).GetStartingIntent If in.IsInitialized And in <> LastIntent Then B4A Question Open a module or activity with the service in the background - Erel (first post)    Jul 25, 2023   (1 reaction) You need to call StartActivity(Main) With some logic you can catch this intent and open a specific page. It should be done in Activity_Resume using Activity.GetStartingIntent. B4A Tutorial Add shortcuts to your Android application - Erel    Apr 26, 2019   (6 reactions) shortcutIntent.PutExtra("from_shortcut", True)
Dim in As Intent
in.Initialize("", "")
in.PutExtra("android.intent.extra.shortcut.INTENT", shortcutIntent)
in.PutExtra("android.intent.extra.shortcut.NAME", "Shortcut Test")
in.PutExtra("android.intent.extra.shortcut.ICON", LoadBitmap(File.DirAsset B4A Question Read (WhatsApp/Media/WhatsApp Video) Files - KMatle (first post)    Jun 28, 2021   (1 reaction) ExtrasToString) If Activity.GetStartingIntent.Action="android.intent.action.MAIN" Then Return 'App is started via icon (must be started with 'share to' End If FileList=GetUrisFromStartingIntent(Activity.GetStartingIntent) If FileList.Size>0 Then For i=0 To FileList.S B4A Question onActivityResult with Inline Java - Roycefer (first post)    Nov 22, 2015   (1 reaction) You won't be able to directly manage the onActivityResult() event. Instead, you should test for the Intent that started your Activity.
Dim data as Intent = Activity.GetStartingIntent
'do something with data to see if it has for what you're looking...
If your Activity is started because another A B4A Code Snippet Add pinned shortcut - Erel    Jan 03, 2021   (10 reactions) This code shows a dialog that lets the user add a shortcut on the home screen. You can modify the intent and add extra keys and values which can later be used by your app. Activity_Resume will be called when the shortcut is clicked. You can get the intent with Activity.GetStartingIntent. #Additiona B4A Question Notification persists - Alexander Stolte (first post)    Jul 29, 2022   (1 reaction) I can only tell you very roughly what to do, I looked into my social network, which I had developed in 2020, I already had B4XPage in use. In the FirebaseMessaging Service: Sub fm_MessageArrived (Message As RemoteMessage) 'in here you build the notification with NB6 End Sub Use the NB6 lib. for Page: 1   2   3   4   5   6   7   Powered by ColBERT |