B4A Question Can Activity.GetStartingIntent be reset or cleared? - Gregg Homan    
Feb 19, 2014   
(1 reaction) Activity.GetStartingIntent do not keep returning the same intent.
Q1) Can anyone suggest a way to...
Intent1 = Activity.GetStartingIntent
If Intent1.HasExtra("android.intent.extra.STREAM...Hello,
I use the code (below) within Activity_Create to process starting intents stemming from...
link: Thanks a lot!...
link: Make Intent1 a process global variable. Now add this check:
If Activity.GetStartingIntent...
B4A Question Reset Activity.GetStartingIntent.Action - bluedude    
Nov 28, 2014Hi,
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...
link: (Activity killing feature). That means it creates the same action.VIEW over and over again....
link: And that is the best way to also check on a specific action like intentExternal.ACTION_VIEW ?...
link: Not sure if that works. If I store it it will only run once doesn't it? I need to handle a brows...
B4A Question Activity.GetStartingIntent - SetActivityResult - vb1992    
Jul 25, 2012Is there any example code for:
Activity.GetStartingIntent / SetActivityResult - makes it possible....
SetActivityResult (Result As Int, Data As Intent)
(Advanced) Sets the result that the calling Activity will get after calling StartActivityForResult....
link: interesting thanks....
link: GetStartingIntent is useful to find which intent caused your activity to start. There are some...
B4A Tutorial Receiving shared images from other apps - Erel    
Jun 26, 2017   
(19 reactions) As Intent
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
End Sub
Sub Activity_Resume
If IsRelevantIntent(Activity.GetStartingIntent) Then
Dim in As JavaObject = Activity...:
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.SEND... the starting intent in Activity_Resume and see whether it is a sharing intent. If so then we extract...
link: .GetStartingIntent) Then
Dim in As JavaObject = Activity.GetStartingIntent
Dim uri As String...
B4A Class [class][B4X] Google OAuth2 - Erel    
Oct 29, 2025   
(44 reactions) b4i.example2 with your package name.
#UrlScheme: b4i.example2
3. B4A code:
Sub Activity_Resume
oauth2.CallFromResume(Activity.GetStartingIntent)
End Sub
B4i code:
Sub Application_OpenUrl (Url.... B4A:
Add to the manifest editor:
AddActivityText(Main,
<intent-filter>
<action android:name...
B4A Question Bug with Activity.GetStartingIntent? - Erel (first post)    
Apr 5, 2013It is better to use the default task modes. You can manually close the other activities if needed....
link: it must be somehow related to the instance of the activity. According to the android docs...
link: This is not a bug in Basic4android as Basic4android does set the intent when a new intent is receive...
link: because I have a special case activity where I needed one of the activities when opened to clear...
B4A Question Activity.getstartingintent problem - paragkini (first post)    
Jun 10, 2012It worked.
Thanks Erel. It was pretty simple. Working on the getstartingintent to find out which application started my application. Facing issues though. But will revert if none of my efforts help....
link: It is not TEXT and SUBJECT. It is: "android.intent.extra.TEXT" and "android.intent.ex...
link: Hi Erel,
Apologies for delayed reply, was on official tour. Revert toyour points:
1. I have attach...
link: . You should always check the GetStartingIntent in ActivityResume and then decide what started your...
B4A Question GetStartingIntent can get mType? - scsjc    
Jul 24, 2018some one, know how get a mtype inside: Activity.GetStartingIntent ?
70326...
B4A Question How to refer to Activity in B4A 's library - Olaan    
Jul 5, 2025Refer to this I've tried to use AI answer for me, but it doesn't help me clearly.
Public Sub CheckForReceivedFiles As LoadResult
Dim Activity As Activity = B4XPages.GetNativeParent(B4XPages.MainPage)
If IsRelevantIntent(Activity.GetStartingIntent) Then
Dim in As Intent = Activity.GetStartingIntent
Dim uri As String
If in.HasExtra("android.intent.extra.STREAM") Then
uri = in.As(JavaObject).RunMethod("getParcelableExtra...
B4A Library GSheet Library (integrate google sheets into your B4X apps easily) - fernando1987    
Mar 25, 2026   
(17 reactions)("created")))
Next
End Sub
Example connect:
#Region Activity Attributes
#FullScreen... the activity is created.
'These variables can only be accessed from this module.
Dim s As GSheets
Private conect1 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not..., "s")'your Clientid google developers console, activate google drive api and google sheets...-a_a4afTQ3L5hXJIOttCVaJNngO3113E-qqFOjbk"
Activity.LoadLayout("sheets1")
End Sub
'Connect
Sub...
Page: 1  
2  
3  
4  
5  
6  
7