Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send text messages with viber in Android application

I have written an Android application. I want to send a text message with Viber( if it is installed). Is it possible?

Thanks.

like image 777
Farid Ala Avatar asked Nov 14 '22 03:11

Farid Ala


1 Answers

You can launch an intent to the Viber package with the text as extras in the bundle using the relevant keys.

EDIT

As an example, this will launch the Wireless Settings activity.

startActivity( new Intent( Settings.ACTION_WIRELESS_SETTINGS ) );

If you choose an Action Viber supports (if any) then it should be launched.

like image 67
ScouseChris Avatar answered Nov 16 '22 02:11

ScouseChris