I'm using the ShareActionProvider in my app to share some text to the applications installed on the user's device.
I want to modify the list of applications that appear when the user clicks on the share icon.
for example I want to remove the "E-Mail" applications, SMS and only leave Facebook, Twitter and so on.
Is there a way to achieve this > any customizations that can be done to the list of share apps ?
Related
I'd like to let a user share an Instagram post on my app.
I've noticed that Instagram shows a dynamic list of apps that accept its shared content, but I couldn't find the exact way to add my app into that list.
A screenshot with Instagram's share menu:
As you can see, only WhatsApp is enabled, after I've installed it.
I can confirm that installing other specific apps, such as Facebook's Messenger, would populate this menu.
This makes me realize that there must be some intent filter that these "client" apps (WhatsApp etc') use to say "Hey Instagram, I accept your shared content".
Maybe there's another way.
I'd like my app to be able to do that. How? Thanks!
Please I need some help with this.
What I want is to remove all apps from cache when, for example, press a button.
Let's say that I have opened Whatsapp, Gmail , Fb and my Custom App. When pressed a button from my custom app, I want to clean all the apps that I opened before (Whatsapp, Gmail, Fb).
Is it possible?
Thanks.
I'm working on an app which has a share button. On click of share i'll show the standard share screen like below,
I want to know, if it is possible to track if user click on this screen. For example, if user clicks on facebook, i want to know that user selected facebook for sharing.
I want to know, if it is possible to track if user click on this screen
No, unless you create your own chooser activity.
For example, if user clicks on facebook, i want to know that user selected facebook for sharing.
That is only possible if you create your own chooser activity, rather than use the system-supplied one. You can create such an activity using PackageManager and queryIntentActivities().
From this dialog this is not possible. It is possible to put this sharing into the actionbar with a ShareActionProvider.
With ActionBarSherlock this will work on all devices down to Android 2.2. Now you can check wich app was chosen for tracking. Have a look at the ShareActionProviderSample from Actionbarsherlock
I use createChooser() to allow user to share photo. When user clicks Share button, dialog with applications appears. What I want is to have a dialog with installed applications to share (like Gmail, BT, Email, Facebook, etc) but with my custom icons.
Is it possible to change those applications icons and set my own icons?
Thanks!
Only by making your own chooser, using PackageManager and queryIntentActivities() to get the available options, and rendering the results how you wish.
I'm looking for a way to give mobile users the ability to share an Android App along with an ID.
Now I know how to share an App and customize a text for that, but is there any way we can have query strings (or similar) in the Android Market which will be passed to our Apps when installing from there?
Basically what I'd like to do is to have someone's ID to be sent with the App whenever they share it, and once the other user clicks the link with the ID parameter from the market, to download the App and have the ID of the person who shared embedded within the App for marketing purposes.
HeyTell App has this sort of feature but they share the name of the user who shared the App instead of an ID.