Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

Air Android - Send image to an native app?

$
0
0

Hi,

 

Air for Android supports intents, right?

 

I would like to open Instagram with a specific image. (like it would be invoked through the Share/Send menu)

 

How can I launch an action like this from Air?

 

Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(MediaStore.Images.Media
.insertImage(getContentResolver(), source, title, description)));
shareIntent.setType(image/jpeg);
startActivity(Intent.createChooser(shareIntent,
getResources().getString(R.string.send_to)));

 

Thanks

 


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>