INTENT ID (Share intents and anothers important Intents)

Douglas Farias

Expert
Licensed User
Longtime User
Hello everyone.
A few days ago I decided to collect all intents I use constantly in my applications and make a library for it.
They are common and easy intents to find here in the forum and outside it as well.

Most codes can be found in stackoverflow (i think all)

This libs have social share intents, like share on facebook, skype, snapchat, hangouts, messenger, whatsapp, telegram, twitter and whatsapp.


EXAMPLE DOWNLOAD

Here is a list of functions.

- Open_Audio
- Open_Video
- ShareText
- ShareImage
- Share_TextandImage
- ShareMultiple_Images
- ShareTextandImage_Instagram
- ShareTextandImage_Twitter
- ShareText_Twitter
- ShareImage_Facebook
- ShareText_Telegram
- Share_Audio
- Share_File
- ShareText_WhatsApp
- ShareImage_WhatsApp
- ShareAudio_WhatsApp
- ShareVideo_WhatsApp
- OpenPage_Facebook
- OpenPage_Twitter
- Send_Email
- Send_SMS
- OpenCompany_GooglePlay
- OpenApp_GooglePlay
- Open_WebSite
- OpenChannel_Youtube
- Search_Youtube
- OpenVideo_Youtube
- Open_GoogleMaps1
- Open_GoogleMaps2 (Point to Point)
- ShareText_SnapChat
- ShareImage_SnapChat
- ShareText_Skype
- ShareImage_Skype
- ShareAudio_Skype
- ShareVideo_Skype
- ShareFile_Skype
- ShareText_Hangouts
- ShareImage_Hangouts
- ShareAudio_Hangouts
- ShareVideo_Hangouts
- ShareFile_Hangouts
- ShareImage_GooglePhotos
- ShareFile_Bluetooth
- ShareFile_WiFiDirectSamsung (Tested only with samsung devices, i need test with anothers)
- ShareText_Messenger
- ShareImage_Messenger
- ShareAudio_Messenger
- ShareVideo_Messenger
- ShareFile_Messenger
- ShareImage_DropBox
- ShareAudio_DropBox
- ShareVideo_DropBox
- ShareText_DropBox
- ShareFile_DropBox
- ShareMultipleFiles_DropBox
- ShareImage_GoogleDrive
- ShareText_GoogleDrive
- ShareAudio_GoogleDrive
- ShareVideo_GoogleDrive
- ShareFile_GoogleDrive
- ShareMultipleFiles_GoogleDrive
- ShareImage_Line
- ShareAudio_Line
- ShareVideo_Line

Note: Some Share functions need the files on external folders to work File.DirDefaultExternal or File.DirRootExternal


EXAMPLE DOWNLOAD


If this library help you , please consider a donation for my work. Donate Here Paypal Any value is welcome :)
 

Attachments

  • INTENTID_1_2.zip
    9.7 KB · Views: 682
  • INTENTID_1_3.zip
    10.5 KB · Views: 579
  • INTENTID_1_4.zip
    8.4 KB · Views: 412
  • INTENTID_1_5.zip
    8.5 KB · Views: 853
Last edited:

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Excellent library
Thank you

If you add the following commands it will be fantastic :
ShareFile_GoogleDrive
ShareFile_Dropbox
ShareFile_Wifidirect

I know we can do it by Share_File, but if you make it extra separated functions , the library will be premium :)
 

Douglas Farias

Expert
Licensed User
Longtime User
Edit: 1.2
Added new functions

- Open_GoogleMaps1
- Open_GoogleMaps2 (Point to Point)
- ShareText_SnapChat
- ShareImage_SnapChat
- ShareText_Skype
- ShareImage_Skype
- ShareAudio_Skype
- ShareVideo_Skype
- ShareFile_Skype
- ShareText_Hangouts
- ShareImage_Hangouts
- ShareAudio_Hangouts
- ShareVideo_Hangouts
- ShareFile_Hangouts
- ShareImage_GooglePhotos
- ShareFile_Bluetooth
- ShareFile_WiFiDirectSamsung (Tested only with samsung devices, i need test with anothers)
- ShareText_Messenger
- ShareImage_Messenger
- ShareAudio_Messenger
- ShareVideo_Messenger
- ShareFile_Messenger
- ShareImage_DropBox
- ShareAudio_DropBox
- ShareVideo_DropBox
- ShareText_DropBox
- ShareFile_DropBox
- ShareMultipleFiles_DropBox
- ShareImage_GoogleDrive
- ShareText_GoogleDrive
- ShareAudio_GoogleDrive
- ShareVideo_GoogleDrive
- ShareFile_GoogleDrive
- ShareMultipleFiles_GoogleDrive


If this library help you , please consider a donation for my work. Donate Here Paypal Any value is welcome :)
 
Last edited:

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Dear Douglas

Can you make:
Share_Text(target application for share, text to share)
Share_File(target application for share,file path)

Because enabling sharing for many many applications ...

Thank you in advance .
 

Douglas Farias

Expert
Licensed User
Longtime User
No, i m working on some apps, its hard free time now.
u need a app in special? if yes i can add.

to make
B4X:
Share_Text(target application for share, text to share)
Share_File(target application for share,file path)

i need take the intents of the apps, for now u can use the functions already in lib.

if u dont find a app intent tell me, when i have a time i will add
 

scsjc

Well-Known Member
Licensed User
Longtime User
Great work. ...
One question is posible reset the default open shared. . ???

Because I test share image.... and when i select a whatsapp. .. always select whatsapp default. ...

Thanks! !!
 

Andris

Active Member
Licensed User
Longtime User
ShareFile_GoogleDrive seems to do nothing .... has anyone encountered this?
 

Hamied Abou Hulaikah

Well-Known Member
Licensed User
No, i m working on some apps, its hard free time now.
u need a app in special? if yes i can add.

to make
B4X:
Share_Text(target application for share, text to share)
Share_File(target application for share,file path)
i need take the intents of the apps, for now u can use the functions already in lib.

if u dont find a app intent tell me, when i have a time i will add

Hi, if you have a time please add that function :)
 

fredo

Well-Known Member
Licensed User
Longtime User
Note: Some Share functions need the files on external folders to work File.DirDefaultExternal or File.DirRootExternal

31-10-_2016_11-42-54.jpg

I like your library since all those intents for the important social functions are in one clean place.

But it is a big downside that all files have to be in a special folder. That means, that I have to COPY them programmatically from their original location to the external folder which means an unneccessary waste of memory and time (e.g. each Photo is far over 1MBytes these days).

Could you integrate a public variable for the path? It could have the defaultvalue File.DirDefaultExternal, but could be changed.
 

Douglas Farias

Expert
Licensed User
Longtime User
Edit: 1.3
Added new functions
- ShareImage_Line
- ShareAudio_Line
- ShareVideo_Line

Fixed
- ShareImage_GoogleDrive
- ShareText_GoogleDrive
- ShareAudio_GoogleDrive
- ShareVideo_GoogleDrive
- ShareFile_GoogleDrive
- ShareMultipleFiles_GoogleDrive



ShareFile_GoogleDrive seems to do nothing .... has anyone encountered this?
Fixed, i m uploaded a version 1.3 (tested, its working)

Added to version 1.3
- ShareImage_Line
- ShareAudio_Line
- ShareVideo_Line


let me know if you have any errors.
 
Top