

WhatsApp is a big platform for share the information and send image,videos,documents & more formats. Okay lets start to develop own chat application like whatsapp. In this century nobody lives without android phones. That time we need one social networking website like whatsapp to send and share the information within a minute in digital way. There are more drawback we faced before coming on high speed internet and android mobile phones because we cant send images videos documents in normal message application. Before coming android mobile phones everyone use normal message to share information in offline but when coming android cell phones everybody switch on chat applications like whatsapp, Facebook, Instagram,hike,viber and more popular chat apps are available in google play store. Public class ShareActivity extends AppCompatActivity implements OnClickListener else if (receivedAction.equals(Intent.WhatsApp Chat Application Android Studio – In this article i will explain how develop chat application like whatapp facebook using java in Android Studio platform. If you don’t know how to pick an image from gallery you can read my earlier tutorial. In this code i had also implemented to choose an image from gallery for image sharing. startActivity(Intent.createChooser(sharingIntent, “Share Text Using”)) – Finally start chooser activity for text share.ĥ. Finally come to your ShareActivity.java and add the following code.putExtra(Intent.EXTRA_TEXT, text) – Now put extra text that we want to share.

putExtra(Intent.EXTRA_SUBJECT, “Subject Here”) – We can add extra subject to our text.setType(“text/plain”) – We have to change the type of send because we are sending text.startActivity(Intent.createChooser(sharingIntent, “Share Image Using”)) – Now start chooser activity with title name.įor sharing text also we have to follow some steps :.putExtra(Intent.EXTRA_STREAM, imagePath) – Put extra will put the extra stream with the path name of image that we are sharing.setType(“image/*”) – We have to set type of send data i.e.ACTION_SEND – This intent will start the Send Activity.4. For sharing image we have to follow some steps :
