- How to share photos, videos, and more with WhatsApp for Android
- How to share photos in WhatsApp for Android
- How to take and send a photo in WhatsApp for Android
- How to send a photo from your gallery in WhatsApp for Android
- How to share videos in WhatsApp for Android
- How to record and send video in WhatsApp for Android
- How to send video from your gallery in WhatsApp for Android
- How to share audio in WhatsApp for Android
- How to send audio from tracks on your phone in WhatsApp for Android
- How to record and share audio messages in WhatsApp for Android
- How to share documents in WhatsApp for Android
- How to share contacts in WhatsApp for Android
- How to share location in WhatsApp for Android
- A year-old flagship might just give you the best bang for your buck
- Samsung needs to bring back its iPod competitor
- VoLTE: How to use it and why you should care
- Get the most out of these smart devices and services with Google Assistant
- Tutorialwing
- TABLE OF CONTENT
- Download Source Code in Kotlin or Java
- Getting Started
- 1. Creating New Project in Kotlin
- 2. Modify values Folder
- 3.1 Share Text on WhatsApp Programmatically
- 3.2 Share Image on WhatsApp Programmatically
- 3.3 Share Video on WhatsApp Programmatically
How to share photos, videos, and more with WhatsApp for Android
Source: Harish Jonnalagadda / Android Central
With WhatsApp, you can share photos, videos, and so much more with your contacts. You now have the ability to send documents, contact information that you can share with other contacts, audio messages that you can record directly using the service, and even share your location natively within the service.
What makes WhatsApp stand out is that it is available on all platforms, and works on any phone, including the best Android phones under $100. It’s this ubiquity that has allowed WhatsApp to gain momentum over the last five years, so let’s see how you can share media using WhatsApp for Android.
How to share photos in WhatsApp for Android
There are two ways to send photo messages with WhatsApp. You can record using the built-in camera utility, or use the gallery to select an existing photo that you can share with your contacts. Here’s how to share photos on WhatsApp:
How to take and send a photo in WhatsApp for Android
- Tap the camera button on the right of the message field.
- Tap the button to take your photo. Tap and hold to take a video instead.
- Add a caption or use the crop and rotate tools to personalize it.
Tap the Send button to send your photo.
Source: Android Central
How to send a photo from your gallery in WhatsApp for Android
- Tap the attach button. It’s the paperclip icon next to the message field.
- Tap Gallery.
Tap the category that holds the photo you’d like to send.
Source: Android Central
Tap Send.
Source: Android Central
How to share videos in WhatsApp for Android
Sending video via WhatsApp is just as easy as sharing photos. You can shoot video directly or grab an existing video out of your gallery.
How to record and send video in WhatsApp for Android
- Hit the camera button on the right of the message field.
- Tap and hold the shutter button to take a video.
- Add a caption or use the edit tools to trim the video. You can also turn it into a GIF within the editor itself, and add text or emoji to the video.
Tap the Send button to send your video.
Source: Android Central
How to send video from your gallery in WhatsApp for Android
- Tap the attach button. It’s the paperclip icon next to the message field.
- Tap Gallery.
Tap the category that holds the video you’d like to send.
Source: Android Central
Tap Send.
Source: Android Central
How to share audio in WhatsApp for Android
WhatsApp allows you to share audio tracks from your device or record anything you’d like to send along to one of your contacts.
How to send audio from tracks on your phone in WhatsApp for Android
- Tap the attach button.
- Tap Audio.
- Choose the audio track you want to send.
Tap Send.
Source: Android Central
How to record and share audio messages in WhatsApp for Android
- Tap and hold the Mic button. You’ll see it next to the text field.
- The recording will be automatically sent the moment you lift your finger off the button.
You can also slide to the left to remove the current recording, and slide up to lock the recording so you don’t have to press down on the button.
Source: Android Central
How to share documents in WhatsApp for Android
- Tap the attach button. It’s the paperclip icon next to the message field.
- Tap Document.
- Select the document you’d like to send. You’ll see Word documents as well as PDFs here.
Hit Send to send the document.
Source: Android Central
How to share contacts in WhatsApp for Android
WhatsApp lets you share contact information with your friends and family. It’s just as hassle-free as sharing other forms of media, so let’s get started:
- Tap the attach button. It’s the paperclip icon next to the message field.
- Tap Contact.
- Select the contact you’d like to send.
Hit Send to send the contact info.
Source: Android Central
How to share location in WhatsApp for Android
Hosting a party and want to share your location information with your friends? It couldn’t be easier with WhatsApp.
- Tap the attach button. It’s the paperclip icon next to the message field.
- Tap Location.
Hit Continue to give WhatsApp access to your location. If you’re using a phone with Android 11, you can use the Only this time setting to give the service one-time access.
Source: Android Central
Read the details in the text box and select Continue.
Source: Android Central
Hit Send to start sharing your location info in real-time.
Source: Android Central
That’s all there is to it. Now you know how to easily share photos, videos, documents, audio files and messages, and contact info to your friends and family. WhatsApp regularly gets new features, and the service is testing out a payments service in India that could make its way to more markets in the coming years. The robust feature-set is what sets WhatsApp apart, and you can send media to your contacts knowing that the data itself is secured by end-to-end encryption.
A year-old flagship might just give you the best bang for your buck
In late 2021, a discounted 2020 flagship can still be a fantastic buy. Here’s why!
Samsung needs to bring back its iPod competitor
I don’t want to buy an iPod Touch. Since I want a reasonably priced PMP with acceptable audio hardware that can install a few crucial apps, I might have to.
VoLTE: How to use it and why you should care
VoLTE — or Voice over LTE — is the new standard for calling throughout the U.S., Canada, and parts of Europe. Not only does it facilitate much higher call quality between cell phones, but it allows devices to stay connected to LTE while on a call, improving data speeds for everyone.
Get the most out of these smart devices and services with Google Assistant
Google Assistant is the most useful smart voice assistant for getting your questions answered and keeping track of your digital life, but it’s also great at helping you control your smart home devices and services. Here’s what you need to know to take advantage of this helpful feature!
Источник
Tutorialwing
Social media always plays a vital role in application promotion. It opens connectivity to people connected through social media. So, it’s a good choice to integrate social media in your android application. In this post, we will see how to integrate whatsApp in your application to share text, image or video.
TABLE OF CONTENT
Download Source Code in Kotlin or Java
Getting Started
You may need to integrate the whatsApp in your application to share the data with other whatsApp user. The data may be text, image or video. So, in this tutorial, we will see how to integrate whatsApp to share –
(A) Text
(B) Image
(C) Video
in your android application.
Note – The tutorial will be covered in kotlin. However, you can download source code to get the sample application in java.
Now, we will start the tutorial, on android whatsApp integration, by creating a new application first. Then, going through each data type (text, image or video) one by one.
1. Creating New Project in Kotlin
Follow steps below to create new project. Please ignore the steps if you have already created the project.
Step | Description |
---|---|
1. | Open Android Studio. |
2. | Go to File => New => New Project. Write application name as WhatsAppIntegration. Then, check Include Kotlin Support and click next button. |
3. | Select minimum SDK you need. However, we have selected 17 as minimum SDK. Then, click next button |
4. | Then, select Empty Activity => click next => click finish. |
5. | You will get a newly created project successfully if you have followed steps properly. If you want, visit post to get the steps in detail to create a new project |
Since we have created a new project successfully, we will do some basic setup for android whatsApp integration.
2. Modify values Folder
Now, we will add constants (dimensions, strings etc.) in values folder. These constant values will be used later in the application.
So, Open res/values/strings.xml file. Then, add below code into it.
Now, open res/values/dimens.xml file. Then, add below code into it.
We have completed the basic setup.
Now, we will take a next step to see how to share text on android whatsApp integration tutorial.
3.1 Share Text on WhatsApp Programmatically
You can share text on whatsApp as shown below –
Here, variable textToShare contains the text that you want to share on whatsApp. You can change it as per your need. Or, you can get it using EditText from your customer in the application. Now, we will see how to achieve it in our application.
Open res/layout/activity_main.xml file. Then, add below code into it.
Here, we have defined an editText, to take input from user, and a button to share entered text on whatsApp.
Now, open main/java/com.tutorialwing.whatsappintegration/MainActivity.kt file. Then, add below code into it.
Above code shows a complete example to share any text on whatsApp programmatically in kotlin.
Now, we will take a next step to see how to share image on android whatsApp integration tutorial.
3.2 Share Image on WhatsApp Programmatically
You can share image on whatsApp programmatically as shown below –
Here, uri is Uri of the image which you want to share. text is the text which you want to show with image.
Whenever we want the user to share image, we also provide them a way to choose the image which he/she wants to share. We can achieve it using onActivityResult method in activity.
Now, we will show a button in mainActivity. Upon clicking on that button, a dialog will be prompted to choose the image you want to share. Then, after choosing the image, a new dialog will open to choose the contact with whom you will share the image.
SO, open res/layout/activity_main.xml file. Then, add below code into it.
Here, we have just defined a button that will be used to share the image.
Now, open main/java/com.tutorialwing.whatsappintegration/MainActivity.kt file. Then, add below code into it.
Here, we have added code to share a chosen image on whatsApp programmatically in kotlin. Upon click the share button, you need to choose the image and contact to share the image.
Now, we will take a next step to see how to share video on android whatsApp integration tutorial.
3.3 Share Video on WhatsApp Programmatically
Now, we will see how to share video on whatsApp programmatically in kotlin. You can do it as below –
Now, we will add to code to make the user enable to select the video and user with which the selected video will be shared.
So, open res/layout/activity_main.xml file. Then, add below code into it.
Here, we have defined a button that will prompts a screen to select video and contact with which you want to share the video. So, we will access this button in kotlin file and set click listener to perform required actions.
Now, open main/java/com.tutorialwing.whatsappintegration/MainActivity.kt file. Then, add below code into it.
Here, we have added code to share video on whatsApp programmatically in kotlin. When you click on button, a screen will be shown to select the video and user to share the video.
That’s end of tutorial on android whatsApp integration.
Источник