How to show your android app icon along with copy paste menus - android

On Gmail or Google Application when we select some text which contains an URL it shows corresponding app icon along with the copy-paste options.
Refer the image for same :
(Here pinterest app icon is shown as I select their URL)
Similarly I want my Application icon to appear if user selects any text or link which contains deeplink URL of my Android Application. In my case it shows option to open the URL with chrome instead of my installed Android App.
I have searched a lot but didn't find anything relevant on this topic so ultimately thought to post it as question.
How can I achieve this? What changes do I need to do in code for this?
Thanks in advance..

Related

How to open attachment in Android app without using WebViewActivtiy

My app get a url string from an api call. I show an icon on my UI and when user clicks on it I want to open the pdf so users can preview it and read it. If they want to download or share the attachment I want to support this functionality swell. However I could not find the best way to do this. Can you please help me?
P.S: we can do this in iOS using QLPreviewController, but not sure what the equivalent for it in android is.

How to make my android app display a specific facebook post

I am working on multi users android app and I was wondering if there any method to display a specific facebook post inside the app and when the users click on the post he'll be directed to the facebook app then he can "like or share .. that post" and go back to my app
I've been searching a couple of week for method to do that but I can't find any method to do it. If you know any method to do it please tell me.
Looking for the same answer myself.
Ended up in sending the link of the post to my app, along with the post-text and image if any. Display the post and image according to you will and redirect the user to the link on click on either the image or the text. If the Facebook app is installed on the device, it will automatically ask you if you need to go to the app. You can design the app to show the image and text one below another to achieve the (near fb) style you need.
This is just a workaround to achieve the feature. I could not find a solution to achieve embedding post in android, the way it can be achieved on the web

How to search facebook groups from my app

I want to show selected results from within a facebook group in my app but I cant seem to figure out how to do that. I have tried playing with "fb://group/{id}" intent with no success. It opens the group page in facebook app but if I try adding some extra parameters e.g "fb://group/{id}/search/?query=some_text" it starts the facebook app on its home screen. I assume this is because the uri is malformed. But I don't see any other method. There is a supported uri for search i.e "fb://search" but I cant seem to find any information about it.
The only way I know how to do it is to open the app, go into the menu, at at the very bottom in small letters it says View Desktop Site (or something to that effect). It doesn't even look like a link - but it is - and it will open the full version of FB in your browser. Then you can navigate as normal (including search). Hope this helps!

Adding URL shortcut to mobile screen through a link on the website

Do you know if it's possible to add URL shortcut to mobile screen through a link on the website?
So the workflow will goes like :
user clicks on a link on the website
pop up box appears, ask user to name the short cut link
user click on create and a shortcut been added to the mobile device's home screen with default icon.
I am interested in knowing whether this is possible for iphone and android devices. I've been searching for a while, but wasn't able to find any info on this...
This is currently not possible. You are only able to specify you icon to be added to the home screen, but not adding the shortcut directly by javascript.
in iphone you can do this in this way
in android you may do like in this way

Icon that when clicked would launch to my website

I would think this would be one of the simpler and popular app questions on the net, but I have been unable to find any info…
I would like to create an icon that when clicked would launch to my website which has been modified for mobile devices. I would like to make this available on the android market.
Does anyone know how to do this or know where I can find a step by step guide?
Matt
Have you thought of using the WebView control? Then your UI can be a local HTML with an image button and you configure it with an onclick event that refresh the WebView control with your target website?

Categories

Resources