Share functionality without share menu

lymey

Active Member
Licensed User
Longtime User
Hi,
I have an app that uses the share menu to share some text, the text is dropped into the destination app just fine.

But what I would like to do is to have that share capability without having to display the share menu each time. In other words, can I share with an app without using the share menu.

I have tried starting intetent with put extras and that doesn't work.

The other alternative would be to somehow automatically paste text in to the receiving app??

Thanks for any input you can give!
 

lymey

Active Member
Licensed User
Longtime User
share menu

Yes that's right!
I should have said the chooser menu! (that pops up when you use the following code
B4X:
Dim Intent1 As Intent
   Intent1.Initialize(Intent1.ACTION_SEND, "")
   Intent1.SetType("text/*")
        Intent1.PutExtra("android.intent.extra.TEXT", txtInput.Text)
   Intent1.WrapAsIntentChooser("Choose")
   StartActivity(Intent1)
 
Upvote 0

TsubasaOzora

New Member

Hi,

have some question.

if i want to share a bitmap image , how do i do that ?

PHP:
Dim Intent1 As Intent
    Intent1.Initialize(Intent1.ACTION_SEND, "")
    Intent1.SetType("image/*")
   
   
        Intent1.PutExtra("android.intent.extra.image", thisisbitmap)
    Intent1.WrapAsIntentChooser("Choose")
    StartActivity(Intent1)

i try this and the apps die
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…