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..
I am new to react-native/expo, so maybe because of it, I can't find any solution.
I want to open 'Instagram app' from my new app. But the Instagram should be opened on 'add' page, where the user can choose an image and upload it.
I saw examples on Instagram page examples where they are trying to do so with 'java' code, but I want to find a solution on js (expo\react-native functionality).
I found this on instagram https://www.instagram.com/developer/mobile-sharing/android-intents/
It is made on java and I can't understand how can I translate it to react-native/js
Try #1
I can open instagram by
Linking.openURL(`http://instagram.com/_u/travelerandrii`)
but, it will open the app on some page (you can set any username instead of travelerandrii)
Try #2
I saw few examples with something like
Linking.openURL(`instagram://library?AssetPath=${encodedURL}`)
But in this case on my phone, I'd get an exception and it'll say 'Error: No Activity found to handle Intent'
It seems to me that I don't do the call right for instagram app or I don't have some 'permissions'
If someone knows how to open instagram app on 'add' page, please help me :)
I have an Waze URL with the adresses settled in a button in an Web Page, in which souldnt calculate the route, only mark the pin at the map. This link should redirect the user to the Waze app, but waze is trying to trace a route to the given address, and it is not working when opening the app because it cant calculate the route.
HereĀ“s the link im using for:
https://www.waze.com/pt-BR/livemap?ll=-47.91084051%2c-15.83598078&%3bnavigate=yes&%3bzoom=17&lat=-15.8353442&lng=-47.9113094&zoom=16
Is there any solve to this problem, or maybe another cause for it?
Waze has recently reworked that part of the website, including the livemap. It would appear to me that it is indeed not possible to have the app not start the navigation straight away with what Waze calls the deep links. Even when setting navigate to no, it starts the navigation in the app.
I only know of a solution if you are certain that the user will not open this link on a desktop computer (as they'll get a blank screen) AND that the user has the Waze app installed on their phone.
When you look at the page you get on your mobile device if you follow the link you posted, you can see that the URL for that button to open the app uses the waze:// syntax and ends with n=T. If you want the app to just show the location, you can set that n property to false like so: n=F. This gives something like waze://?ll=-47.91084051,-15.83598078&n=F for your example. You can just put that in the <a> tag like any other URL and it will work fine on a mobile device that has Waze installed. It'll do nothing (except maybe open a blank screen) on any other device though.
There is also an alternative URL syntax that just opens up the location without starting the navigation: http://waze.to//?ll=<coords>, but that one doesn't appear in the documentation and has the same effect as the waze:// syntax, so I'd advice against using it.
You may also want to consider posting about these issues in the announcement topic at the Waze forums as they could use such feedback. I'll go ahead and make a remark about the navigate=no being ignored in that topic for you.
If you directly want to open the Waze you can read the below link:
https://developers.google.com/waze/deeplinks#navigate-to-location
overall waze deeplink should be something like this format:
https://www.waze.com/ul?ll=35.699636,51.337608&navigate=yes&zoom=17
Otherwise, if you want to open all navigation apps list and select an application using the below format:
geo:0,0?q=35.699636,51.337608
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
We have a website that offers an e-mail service. We would like to create a fully fledged app for this but cannot afford this right now. In the mean time it would be great if we could give users an icon on their phones that will take them to a page formatted for mobile on the internet. So what I'd like to know is how can we get an icon on an android users phone that will simply launch a web link in a browser- does this have to be an app, is there an easier way, or am I over estimating how complicated it would be to make this as an app anyway?
Thanks in advance
Create a new Android project (after following the SDK installation steps provided at http://developer.android.com)
on the directory /res/drawable-*dpi you have the laucher icons. Modify all of them.
In the main activity, delete all inside the onCreate method an put this:
String url = "http://www.YOUR-URL.com";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
This will open the android browser with the URL provided.
I have done projects like this in the past, it is very simple. You need to create a website formatted for a smaller screen. Once you do this, building an android app that displays your website inside it is simple. You can even remove all of the android browser toolbars so it appears as if your website is a real android application. Google android webviews, this will point you in the right direction.
See here for what's probably the best instruction page on how to do exactly that:
http://intelnav.50webs.com/app_project.html
It's based on a Webview, that is it opens the page and does all the navigation in the app window, not in the default browser. So if you want to open it in the browser, you have to use Intent, as said in previous answers.
My 2 pennies worth, I think it's better in the app window unless you really want complex navigation with the possibility of opening additional tabs, windows and so on. The drawback with the external browser is that, as far as I could see, there's no way to tell if the page is already open in the browser so you'll launch a different copy (in a new tab) every time. If the user doesn't close the tab at the end, they usually don't, it can become quite annoying. Besides, within an app you'll probably have somewhat better possibilities for ads should you ever want them.
Versus a simple home-screen bookmark, as others pointed out, it's simpler and more convenient for end users to just download an app from an online store (usually Google Play). It's what they're used to do. And they do have a lot of additional info available, like what it does, what others say about it, screen shots (if you provide some for them but you should). Plus a way to comment / complain themselves. It's a different thing. Technically it may not make a lot of sense but from a simple user's perspective it's clearly better IMO.
One way is to bookmark the site and then add it to your home screen. Source
It seems to me like you need a mobile version of your web page. Do you have that already? Once you have your mobile website (ie. website optimized for mobile devices), you could create a simple application with only one WebView. All content would be fetched from your site and displayed inside a webview. This is trivial to make, however, making an entire mobile website will take some time.
Note that you do not HAVE TO have a mobile website, you could pack you existing website into a WebView, but this would lower user experience.
you would build an app that launches a browser intent linking to your website, or a custom WebView to launch your website in full screen without any navigation bar etc..
The only easier way is to put instructions on your site (directly, or as a contextual pop-up) on how to add the bookmark as an icon on your home screen. This can be slightly more complicated on Android, and depends on the browser. A simpler option for your potential users is to provide a wrapper app via the Marketplace.
It is not overly complicated to create a simple wrapper Android app in Java that launches the browser, using Intents. The essential browser launch code is basically this:
Uri uriUrl = Uri.parse("http://www.yourwebpage.com");
Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
startActivity(launchBrowser);
A more detailed tutorial for creating this is available here:
http://mobile.tutsplus.com/tutorials/android/launch-android-browser/
Try this kick-start mobile device app for showing websites. Written with cordova for platforms like android, ios, browser and so on: https://github.com/jetedonner/ch.kimhauser.cordova.kickstartwebsite (GooglePlay: https://play.google.com/store/apps/details?id=ch.kimhauser.cordova.kickstartwebsite, Website: http://kimhauser.ch/index.php/projects/cordova-phonegap/kick-start-website)