How can I share my app name or Google play store link with other apps from my created app. That's is if I click share button in my app it has to show the available sharing options with different other external imstalled apps.
If I click -> share -> whatsapp (selecting an app) -> in whatsapp send my desired text
How can I achieve this? Any examples will help me..
If you want your app to appear in the list when someone presses a "Share" button in another app, you can do that now.
Take a look in the samples at "Shared data".
If you want open a file, choosing the appropriate app from a list, there is
app.OpenFile()
If you want to put a "Share" button in your app, I think that is difficult to use right now.
The plan is that in the next version of DroidScript, it should be easy to send a file to any other app using the share mechanism.
In the shared data sample I can able to receive text from other Apps.
I have attached few sample apps screenshot to give much more clarity.
Also I saw send intent sample file. But I am quite not sure how can I get other apps properties as used in that sample.
I am not sure this has been already available in droidscript now. Just wanted to check again the following.
app.openfile works for txt files and images I have tried.
But howover for images it doesn't show all available options. It shows only few options.
I tried like this
app.OpenFile( "/sdcard/filename.jpg", "image/jpg", "Share Via",true );
Instead of using this option to share files with other apps, is that possible to trigger the default Android share menu. So that user can select the app they want to share.
I am not sure this functionality already exist in droidscript?
Regards,
Durgaprasad.
App.SendText("<url to be shared>");
instead of this ypu can use the following code which will definitely show all the apps which can open the image...
app.OpenFile("/sdcard/filename.jpg");
in my case, it works well...