Since its working now with a the native app of my friend, i want to do the same with a b4a app.
he was entering this in his manifest:
<activity
android:name=".SettingsActivity"
android:label="@string/title_activity_settings"
android:screenOrientation="landscape"
android:theme="@style/Theme.Template.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
Now in B4A i add an new Activity with the Name "SettingsActivity"
And add this to my manifest;
AddActivityText(SettingsActivity,
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>)
unfortunally this dont work.
itry to open it with following code (wich is working with my friends app)
Sub openSettingsPage_click
Dim b As Panel=Sender
Dim packageName As String= b.Tag
Dim i As Intent
Dim pm As PackageManager
i = pm.GetApplicationIntent(packageName)
i.SetComponent( packageName & "/.SettingsActivity")
StartActivity(i)
End Sub
i get the error:
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.awtrix.overwatch/com.awtrix.overwatch.SettingsActivity}; have you declared this activity in your AndroidManifest.xml?
What ive forgot?