B4A Library WhatsApp Library

WhatsApp Library
Version: 1.1

This is a wrapper for this Github-project.


2015-03-07 22.12.56.png




WhatsApp
Author:
Devil-App
Version: 1.1
  • Whatsapp
    Fields:
    • AUDIO_TYPE As Int
    • IMAGE_TYPE As Int
    • VIDEO_TYPE As Int
    Methods:
    • OpenChatWithNumber (phoneNumber As String)
      Open Chat with Number
      Example:<code>
      Dim whapp As WhatsApp
      whapp.OpenChatWithNumber("+39334336444")</code>
    • createPhoneNumber (displayName As String, mobileNumber As String, email As String)
      This method create a contact.
      Example:<code>
      Dim whapp As WhatsApp
      whapp.createPhoneNumber("Devil","+393343365647","info@devil-app.com"</code>
    • existPhoneNumber (phoneNumber As String) As Boolean
      This method determines if a mobileNumber is a contact.
      Example:<code>
      Dim whapp As WhatsApp
      if whapp.existPhoneNumber("+393343365647") then MsgBox("Ok","msg")</code>
    • isInstalled As Boolean
      This method determines if Whatssap are installed.
      Example:<code>
      Dim whapp As WhatsApp
      if whapp.isInstalled then MsgBox("Installed","Msg")</code>
    • launchMarket
      This method go to Market.
      Example:<code>
      Dim whapp As WhatsApp
      whapp.launchMarket</code>
    • shareMediaWithContact (uri As Uri, mediaType As Int)
      Share Media with Contact
      Example:<code>
      Example: shareMediaWithContact(Activity.this, uriMedia, IMAGE_TYPE);
      Example: shareMediaWithContact(Activity.this, uriMedia, AUDIO_TYPE);
      Example: shareMediaWithContact(Activity.this, uriMedia, VIDEO_TYPE);
      Dim whapp As WhatsApp
      whapp.shareMediaWithContact(uriMedia, whapp.VIDEO_TYPE)</code>
    • shareTextWithContact (text As String)
      Share Text with Contact
      Example:<code>
      Dim whapp As WhatsApp
      whapp.shareTextWithContact("Hi...how are you")</code>
    Permissions:
    • android.permission.READ_CONTACTS
    • android.permission.SEND_SMS
    • android.permission.WRITE_CONTACTS

Example ( with mp4, mp3 example 3.7 Mb ) and so you can download here: Devil-App
Library in attachment
LAST REL 1.1
Bye
Marco
 

Attachments

  • WhatsApp-Library.zip
    4.2 KB · Views: 1,683
  • WhatsApp-Lib1.1.zip
    4.3 KB · Views: 2,033
  • Whatsapp-Source.zip
    6.8 KB · Views: 1,818
Last edited:

Mirko Melegari

Member
Licensed User
Ho visto gli esempi per inviare messaggi con whatsapp , c'e' qualcuno che ha realizzato una procedura per inviare lo stesso messaggio o immagine, a una lista di contatti preparata da programma?
Grazie
 

amorosik

Well-Known Member
Licensed User
Using this library is it possible to read the existing chats, and subsequently the messages / media contained in a chat?
And then do the opposite, so from the messages / media read, upload them to a specific chat?
The use would be to carry out a backup / restore procedure from one phone to another
 

MarcoRome

Expert
Licensed User
Using this library is it possible to read the existing chats, and subsequently the messages / media contained in a chat?
And then do the opposite, so from the messages / media read, upload them to a specific chat?
The use would be to carry out a backup / restore procedure from one phone to another
No
 
Top