viber

How to get contacts which are used in whatsapp or other application in android

浪尽此生 提交于 2019-11-27 05:30:59
问题 Hi i want to get contact which are used by other application (like whatsapp or viber ) please see in below image please help me about this issue thanks 回答1: With the READ_CONTACTS permission in your manifest, you can get synced contacts given the account type. For WhatsApp it's "com.whatsapp" . So: Cursor c = getContentResolver().query( RawContacts.CONTENT_URI, new String[] { RawContacts.CONTACT_ID, RawContacts.DISPLAY_NAME_PRIMARY }, RawContacts.ACCOUNT_TYPE + "= ?", new String[] { "com

How to start Viber call from an Android app?

自古美人都是妖i 提交于 2019-11-27 02:33:55
问题 I am developing an Android application, and besides other functionalities it has to be able to place a call using Viber. I tried to use solution for Skype but without success. Error which I get is: 05-08 19:51:51.660: D/AndroidRuntime(29140): Shutting down VM 05-08 19:51:51.660: W/dalvikvm(29140): threadid=1: thread exiting with uncaught exception (group=0x40018578) 05-08 19:51:51.680: E/AndroidRuntime(29140): FATAL EXCEPTION: main 05-08 19:51:51.680: E/AndroidRuntime(29140): android.content

Launching Viber app via URL scheme on iOS

落爺英雄遲暮 提交于 2019-11-26 14:37:51
问题 I'm making an iOS app which can open Viber app and automatically call a person or go to chat window with the person. Is there any url scheme for Viber to do that such as: viber://tel:<phone_number> viber://chat:<phone_number> I followed this link but it's for Android. 回答1: I sent a mail to the Viber support and they told me that this kind of URL (opening Viber call/chat with a phone number) are no more supported. When typing Viber version is 5.6. Look at their answer: support@viber.com :