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.
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 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 ?
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
hiii..i m developing an app in which as user click on a link it should prompt the user to open link in myAppbrowser (which i will create) or default browser(like activity chooser do).
as user click on default browser app prompt again that, 'this page cant open in default browser'.
after that the browser which i make should run...
how to implement this....plz help me
Depends.
If the user clicks on your link, from one of the browsers (which aren't made by yourself), then no: It's not possible for security reasons. Android is designd to have the user choose which app he want's to use to open a certain Link (better term would be: Intent).
If the user clicks on a link in a WebView you created, then it may be possible to intercept that link and create a custom selection screen (or directly send it to your App without asking for a choice). I've forgot which method of WebView you need to override to intercept link clicks, have seen it somewhere here on Stackoverflow, just don't have the link atm.