shareactionprovider - Show share menu like other apps on my android phone -


i have added share action on app's actionbar , followed these steps:

http://www.codewithasp.net/2016/11/share-action-provider-android-application-actionbar-appcompat-v7.html

this showing nice simple looking share menu on actionbar. problem other application on phone have different share menu , of them similar.

here how share menu look:

enter image description here

here how other apps showing share menu on device

enter image description here

instead of creating drop-down menu share options, should call share intent once you've clicked on share button or menu option. way list of possible apps shown on example you've pasted.

here example of how it.

intent sendintent = new intent(); sendintent.setaction(intent.action_send); sendintent.putextra(intent.extra_text, content); sendintent.settype("text/plain"); getcontext().startactivity(sendintent); 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -