Access Photogallery in android browser - asp.net-mvc-3

I want to access the android mobile photogallery from the android browser.
I included the cordova.js in my application (basically a mvc3 application), but it doesn't work for me (navigator.camera is undefined).
Do I need to include any other files/libraries in my application apart from cordova.js?
Is it possible to access the device resorces in browser or not?

Related

Square POS Web API Android browser error

having an issue with Square POS Web API on Android.
We are trying to implement a kiosk app and the kiosk browser is Android based.
If run in Chrome browser the Square app loads fine with no error however if loaded in an Android browser (eg Dolphin) it fails with the following error.
Point of Sale API must be started with startActivityForResult() in the same task. It looks like the caller either used startActivity() or used startActivityForResult() from a finished activity or with the FLAG_ACTIVITY_NEW_TASK flag.
How can we fix this so the app can be used in kiosk apps that use android browser?
Square POS Web API only works with Chrome intents. Therefore you must use the Chrome browser with your Android device. We are in the process of updating our documentation to reflect this information, sorry for any confusion!

How do I make an App Inventor app be a target for Chrome Share web page?

This is for an Android app that I want to develop using App Inventor, to read the content of a web page when a user decides to share it to my app.
When you are on a web page, in Chrome, you have the option to "Share" it. If you click this option, you get a list of available apps on your Android device to pick from. How can I make my app appear on that list?
How do I make my app read the web page that is shared by the user to my app? I want to read the text, not render the web page.
Thanks.
This is not possible with App Inventor, unfortunately.

iOS App Extension - Is there any chance to identify the host app when the extension runs?

I'm developing an app extension on iOS 8. And it has some special feature that can only work on a specific host app. Therefore I need to identify the host app when my extension runs so that I can determine whether to enable that feature. Is there any API to do so? Like get the app id of the host app?

Launch an app from within browser within Windows Mango Browser

I'm trying to do what is simple in iOS, redirect from the browser to my app (I am authenticating via a website which then loads the url that switches back to my app via appreferencename:/) in Mango.
Is there a way to switch to an app from a browser via a link?
Thanks!
It's not possible, unfortunately. You are able to link to a marketplace page, but that's only useful if you want to download or update an app.
Open Windows Phone 7 App from URL

How to use mobile layouts in PyroCMS

I'm trying to use mobile layouts so that PyroCMS will choose the correct layout automatically if the user is visiting with a mobile device.
I have my MyTheme/views/web and MyTheme/views/mobile.
The web views get loaded as they should, the mobile views however do not. When I use an android or iphone simulator I don't get the mobile-views, I just get the web-views.
why? is there something I have to enable, or is there somewhere I can go to perhaps get an error message and see why?
mobile safari was not added to mobile user agents, that was why it wasn't registered

Resources