I use this intents to share an image in Twitter and Instagram
https://www.b4x.com/android/forum/t...itter-share-image-and-text-with-intent.45399/
It works fine sometime ago, but I check it now and don't works anymore.
I get this error below, that says "Unable to find explicit activity class...have you declared this activity in your AndroidManifest.xml?".
What I need to put in the manifest?
Both apps are installed in the phone.
minSdkVersion=14
targetSdkVersion=21
Thanks in advance for any tip.
B4X:
inten.SetComponent("com.instagram.android/.activity.ShareHandlerActivity")
inten.SetComponent("com.twitter.android/.composer.ComposerActivity")
It works fine sometime ago, but I check it now and don't works anymore.
I get this error below, that says "Unable to find explicit activity class...have you declared this activity in your AndroidManifest.xml?".
What I need to put in the manifest?
Both apps are installed in the phone.
minSdkVersion=14
targetSdkVersion=21
Thanks in advance for any tip.
B4X:
TWITTER
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.twitter.android/com.twitter.android.composer.ComposerActivity}; have you declared this activity in your AndroidManifest.xml?
INSTAGRAM
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.instagram.android/com.instagram.android.activity.ShareHandlerActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1895)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1589)
at android.app.Activity.startActivityForResult(Activity.java:4228)
at android.app.Activity.startActivityForResult(Activity.java:4187)
at android.app.Activity.startActivity(Activity.java:4515)
at android.app.Activity.startActivity(Activity.java:4483)
at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:846)
at br.com.as2.oracaododia.pedidoson._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(pedidoson.java:1880)
at br.com.as2.oracaododia.pedidoson._btninsta_click(pedidoson.java:914)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5612)
at android.view.View$PerformClick.run(View.java:22288)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Last edited: