Android: How to send message programmatically by using WhatsApp, WeChat?

I got the Solution.. Here I am posting the answer so that it may help other people who may have same doubt.. For Share through any application… public void sendAppMsg(View view) { Intent intent = new Intent(Intent.ACTION_SEND); intent.setType(“text/plain”); String text = ” message you want to share..”; // change with required application package intent.setPackage(“PACKAGE NAME … Read more

What’s the best manner of implementing a social activity stream? [closed]

I have created such system and I took this approach: Database table with the following columns: id, userId, type, data, time. userId is the user who generated the activity type is the type of the activity (i.e. Wrote blog post, added photo, commented on user’s photo) data is a serialized object with meta-data for the … Read more

Sharing a png image in drawable folder

I found solution where I should not copy image on sd card. Here it is: try { Uri imageUri = null; try { imageUri = Uri.parse(MediaStore.Images.Media.insertImage(this.getContentResolver(), BitmapFactory.decodeResource(getResources(), R.drawable.fragment_menu_logo), null, null)); } catch (NullPointerException e) { } String text = getString(R.string.share_text); // Launch the Google+ share dialog with attribution to your app. Intent shareIntent = new … Read more

Graph API returns ‘false’ or ‘Unsupported get request’ accessing public Facebook Page

Assuming the page is Alcohol gated (In the OP’s example the page was an alcohol page) you must access the page with an access token for a user who meets the alcohol restrictions. For alcohol specifically, any user over 21 should be able to do this, and for some markets it’s lower (depending on the … Read more

Sending message through WhatsApp

UPDATE Please refer to https://faq.whatsapp.com/en/android/26000030/?category=5245251 WhatsApp’s Click to Chat feature allows you to begin a chat with someone without having their phone number saved in your phone’s address book. As long as you know this person’s phone number, you can create a link that will allow you to start a chat with them. Use: https://wa.me/15551234567 … Read more