Android Question Share image and text Social Media

ilan

Expert
Licensed User
Longtime User
hi

i searching for a while on the forum for a solution to share content (image + text) to social media and i have also tried some but cannot find something that is really working.

i just would like to share an image and text to facebook, twitter, WhatsApp, email,..

b4i has a great library that works perfect but i cannot find something similar for b4a.

any suggestions?

it should work on any android version (at least android and up incl. android 8)

thanx
 

ilan

Expert
Licensed User
Longtime User
See my answer here: https://www.b4x.com/android/forum/t...le-with-fileprovider-share.78196/#post-495544

Any solution not based on FileProvider is wrong.

thanx erel i have tried your example (first) and it did not work for me this is why i opened this thread.

this is the crash log:

 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Upvote 0

ilan

Expert
Licensed User
Longtime User
Which device are you using? What is the output of Log(File.ExternalWritable) ?

I am using galaxy s8

I need to mention that when i start the app i dont get any permission request. In the service there is also no request only a declaration but no request call. Should it be like that?
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
What is the output? Does it throw an error?


but if i click on the button i get this:

 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Follow the instructions:

2. Android SDK
3. B4A
  • Download B4A Trial Version
  • Open B4A.
  • Choose Tools > Configure Paths.
  • Set the path to "javac.exe" if it is empty (C:\Program Files\Java\jdk1.8.0_102\bin\javac.exe).
  • Click on Open Sdk Manager button.
  • Set the path to "sdkmanager.bat" (C:\Android\tools\bin\sdkmanager.bat) and install all recommended items.
  • Read and accept the licenses when asked for.
  • Return to B4A and set the path to "android.jar" (C:\Android\platforms\android-27\android.jar).
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Is there a way to go back
no. The old SDK does not work anymore. It is mandatory to switch.

If you have any issue: create a new thread for it. Probably it is due to an mistake in your code (adding android-supporr-v4.jar using #additionaljar for example.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…