How do I restrict orientation change to portrait on the first page but not second page?
Im working on Windows 8.1 store app.
Set DisplayInformation.GetForCurrentView().AutoRotationPreferences when you navigate to the page you don't want to rotate. Set it again when you navigate to the page you do want to rotate.
Related
I'v built a cordova mobile application which i intend to deploy for several platforms. The problem i'm facing is images and thumbnails within the app. how to make the application detect which device is being used and based on that resize all images thumbnails and background (not only icon and splash screen) inside the application to be displayed properly?
I'v read about how this is done for native apps but if i'm gonna follow the same approach for example in android declaring a res folder for different sizes, how can i access them in my html file and pick the right size for the right mobile device? i want this to be tested in emulator how can i automate the process?
take it easy on me it's my first app :)
In Ionic project, I had loaded my Responsive Website URL in an iFrame and it looks fine. But there are few anchor links in my website which will open a new window, for eg :
Devices List
This is working fine for Desktop browsers, but the same is not opening any new window or not even opening in default browser. Am seeing this problem only with iFrame. I tried with Different targets and also used InAppBrowser, no progress.
Might be of help to someone blocked due to this
Devices List
This will get reference to parent container window object and will work as expected.
I have some page, which have mobile version (mobile version runnig automatically when we use mobile device). I would like to put that page in iframe on my page in mobile version. If is a way to force mobile version in iframe?
I assume that the mobile device detection is now based on user_agent.
To enforce mobile rendering i suggest, to add "?device=mobile" to the URL of the src element of the iframe. Then add a simple if-condition to the mobile device detection function, which checks for $_GET['device'] == 'mobile' and set the rendering to "mobile".
If you are requesting the iframe via Ajax, you could try an approach, where you simply set a custom HEADER attribute.
for a security critial app I need to prevent the phone making screenshots of the embedded browser control.
On Windows Phone, if you hold the back button pressed, the opened applications are shown with small preview images.
Is there any way to replace that image being used there by an own image. Or is it possible to exclude controls using a xaml syntax from beeing captured?
Thanks Holger
Windows Phone 8 GDR 3 introduced a hidden property on the page object that you can use to prevent screenshots from being taken of that page. Here is more detail
I am building a website and would like to add a 'bookmark this page' button which will be compatible with iOS
The client would like to be able to have people tap the 'bookmark' button and automatically ad an icon to the iPad desktop-thing (create a bookmark). Is there a way to do this?
This is not possible. You should inform visitors of the possibility to make a web clip (icon on the home screen), but you can't do it for them.
You can use a mobile bookmark bubble to trigger users to add a web clip to there home screen.