My application removes and sends to instagram, facebook and twitter, but I need to share the text "#myappname" with the image in instagram.
Here is the code I use to send photos
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); shareIntent.setType("image/*"); caminhoImagens = getRealPathFromURI(Uri.parse(url)); Log.i("Caminho imagem: ", caminhoImagens); shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + caminhoImagens)); shareIntent.setPackage("com.instagram.android"); startActivity(shareIntent);
I tried using the codes below to send the text together, but didn't work.
shareIntent.putExtra(Intent.EXTRA_TEXT,"#TEXT"); shareIntent.putExtra(Intent.EXTRA_TITLE,"#TEXT"); shareIntent.putExtra(Intent.EXTRA_SUBJECT,"#TEXT");
Does anyone know if there is a way to do this?
Thank you and welcome.
source share