WhatsApp 메인 페이지WhatsApp 메인 페이지지원 센터
WHATSAPP 웹
기능
다운로드
보안
지원 센터

언어선택

  • azərbaycan

  • Afrikaans

  • Bahasa Indonesia

  • Melayu

  • català

  • čeština

  • dansk

  • Deutsch

  • eesti

  • English

  • español

  • français

  • Gaeilge

  • hrvatski

  • italiano

  • Kiswahili

  • latviešu

  • lietuvių

  • magyar

  • Nederlands

  • norsk bokmål

  • o‘zbek

  • Filipino

  • polski

  • Português (Brasil)

  • Português (Portugal)

  • română

  • shqip

  • slovenčina

  • slovenščina

  • suomi

  • svenska

  • Tiếng Việt

  • Türkçe

  • Ελληνικά

  • български

  • қазақ тілі

  • македонски

  • русский

  • српски

  • українська

  • עברית

  • العربية

  • فارسی

  • اردو

  • বাংলা

  • हिन्दी

  • ગુજરાતી

  • ಕನ್ನಡ

  • मराठी

  • ਪੰਜਾਬੀ

  • தமிழ்

  • తెలుగు

  • മലയാളം

  • ไทย

  • 简体中文

  • 繁體中文(台灣)

  • 繁體中文(香港)

  • 日本語

  • 한국어

  • 다운로드

  • 기능

  • 보안

  • 지원 센터

  • 친구들과 연락하기

무엇을 도와드릴까요?

아래 주제를 사용하여 원하는 것을 찾아보세요.
  1. Android

I'm an Android developer, how can I integrate WhatsApp with my app?

There are two ways to integrate with WhatsApp:

-Through a custom URL scheme
-Through Android's intent system.

Custom URL Scheme

WhatsApp provides a custom URL scheme to interact with WhatsApp:

If you have a website and want to open a WhatsApp chat with a pre-filled message, you can use our custom URL scheme to do so. Opening whatsapp://send?text= followed by the text to send, will open WhatsApp, allow the user to choose a contact, and pre-fill the input field with the specified text.

Here is an example of how to write this on your website:

Hello, world!

Android intent system

Like most social apps on Android, WhatsApp listens to intents to share media and text. Simply create an intent to share text, for example, and WhatsApp will be displayed by the system picker:

Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send."); sendIntent.setType("text/plain"); startActivity(sendIntent);

However, if you prefer to share directly to WhatsApp and bypass the system picker, you can do so by using setPackage in your intent:

sendIntent.setPackage("com.whatsapp");

This would simply be set right before you call startActivity(sendIntent);

Similarly you can use Android's intent system to send media through WhatsApp, once again, using setPackage to restrict the package to WhatsApp if you only want to send to WhatsApp. Check this developer page for more information.

유용한 정보였나요?
네아니오
유용하지 않은 이유가 무엇인가요?
  • 정보가 명확하지 않습니다
  • 내 질문에 대한 정보가 아닙니다
  • 문제가 해결되지 않았습니다
  • 기능 또는 정책이 마음에 들지 않습니다
소중한 의견 고맙습니다.
지원 센터

WHATSAPP

기능

보안

다운로드

WhatsApp Web

비즈니스

개인 정보 보호

회사

정보

채용 정보

브랜드 센터

친구들과 연락하기

블로그

WhatsApp 스토리

다운로드

Mac/PC

Android

iPhone

도움말

지원 센터

트위터

Facebook

코로나바이러스

2022 © WhatsApp LLC

개인 정보 취급 방침