The size limit is: keep it as small as possible. So lets begin…Ĭreate a new project in Eclipse File > New > Android Application Project. Fill in the details and name your project ShareImageTutorial. In the Activity A you decode your image and send it via intent. Users are allowed to choose from the list of sharing applications available on their own devices. Convert to byte array ByteArrayOutputStream stream new ByteArrayOutputStream() bmp.compress(, 100, stream) byte byteArray stream.toByteArray() Intent in1 new Intent(this, Activity2.class) in1. In this tutorial, you will learn how to share an image in your Android application. In Android, sharing data with intents is most commonly used for social sharing of content. Share Intent allows users to share content across multiple channels, including email, text messaging, social networking and more. Convert it to a Byte array before you add it to the intent, send it out, and decode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |