I have a Android WebView app and it has YouTube videos embedded in it. I have looked all over for the answer but could not find it. Is there a way to make the YouTube app open when they look at the videos on my site? Yes I know some people don't have the YouTube app, but this is an app for a local go kart track in a small town, so I can give instructions whenever someone has a problem. :)
this is simply because you've set this as a user .
go to Settings and Applications , then , in the settings of the browser click the clear-Defaults button and it should now ask you how to open the video link.
however , if you wish to make the app to not listen to the user's settings , you can do so as well, by using "setComponent".
you could also know how to open the main activity of the app by using:
getPackageManager().getLaunchIntentForPackage(...);
Related
I am trying to open my web page as Android app. I want to add voice recording functionality using phone microphone in my web app. When a link on web app page is clicked it should start recording and save the recorded file.
After searching its possibility, i came up with "Cordova". But still not able to make it.
Thanks in advance.
I've got a solution for this issue. Web page can be opened in an iFrame and then it can communicate with the app.
Refer example below for using Camera of the device.
[http://hackerluddite.wordpress.com/2012/04/15/getting-access-to-a-phones-camera-from-a-web-page/][1]
It works...:)
So I've been trying to figure out a way to open the native android facebook app from my Adobe AIR game but couldn't find a solution yet.
Basically I am interesting in letting my users open my game's facebook page and be able to click the like button.
My current solution is to open a webview but that is not good enough because users will have to enter their facebook login details.
So I just need them to open my game's page directly in their facebook app without needing to enter login details in a webview.
Is there a solution for this?
I think you can use navigateToURL(new URLRequest("fb://profile/your_page_id"));
You can get your page id by going to your Facebook page and pressing the Edit Page button. It will be in the browser url bar. E.g. https://www.facebook.com/pages/edit/?id=261615207268847&tab=public
The id is 261615207268847 so navigateToURL(new URLRequest("fb://profile/261615207268847"));
I'm looking to build an android app based off a mobile site. Basically, I just need an app with a browser that I can use as a platform.
Many of the "build an app online" sites offer this, where you just put in the home url etc, but they all include their own ads etc.
Any ideas where to start?
If you want to make your own simple app without Ads, use just a WebView inside of a simgle activity layout set to fill the screen.
Doing this you will eliminate all ads, as well as have the ability to add in more features later on if you so choose.
If you just want to create a launcher icon that will open up the default browser to your sites page, you can do that by just starting a browser intent, and then closing the actual app.
This will allow you to have an app icon and play store listing, however the only thing that iw will do is bring the user to your website like you have mentioned.
Create an Activity with a WebView.
I think you're looking for an app that displays a WebView. However, that will only display the website as if you were looking at it in a mobile browser such as Android Chrome.
If you want the data from a mobile site, without anything else, then you have to hope that the site provides that, or you have to download its HTML and scrape it.
Is it possible to setup the android app I am working on to open the youtube app and or navtive browser when clicked on anywhere in the app?
Thank you
Read up on Intents, it's Chapter 1. You can launch any app like you tube or browser.
I want to call android application on clicking of button on some website from mobile.
Suppose I am opening one url on android browser and I want to call my application on clicking on button provided by that site. How to do that??
Suppose we are using browser other than Chrome then is it allowing??
If you link to your application as "myapp://foo/bar", can't you use some sort of intent filter to start your application.
I mean, if you press a youtube link in the browser it asks if you want to complete the action with the YouTube app or the browser.
I have seen similar examples regarding Google Maps links (which would open in either browser, google maps(?) or GeoBeagle).
Please take a look at the WebViewDemo. Javascript code in the web page can call into your Activity. As well as the other way around.
You cannot... if the site is being browsed in the default browser (Chrome).
If you already have an application that embeds the WebView, then you can do some bit of handling of - mouse clicks, window alerts, navigation etc. Otherwise, not!