How do I show a page modally in a universal Windows Runtime 8.1 app? - windows-runtime

I'm making a universal Windows Runtime 8.1 version of our app, originally an iOS app. I'm trying to find out how to display a page modally in the app.
In iOS, I'd use presentViewController:animated:completion: and dismissViewControllerAnimated:completion:, but I can't find an equivalent in WinRT. I've seen the task mapping which only mentions navigation frames (they're the equivalent of using pushViewController:, which isn't what I want) and I've seen this question which talks about a ContentDialog class, but that's only available for phone apps, not universal ones.
How do I show a page modally in a universal app?

Related

How to compile a webapp to an hybrid one/jpk for my mobile phone without framework?

I have to build a hybride app, out of my webapp. It´s not allowed to use a middleware framework like phonegap which just builds it. In my app I want to show that HTML5 already allows to use a lot of functions of the mobile phone like the geolocation, instead of frameworks which can do the same, so I cannot use the framework for building my app. Which program should I use, VS? And how can I build my application(jpk) without a framework like that to test it on my mobile phone?
You should create a simple application with a webview and run your webapp inside this webview.
The problem is: hybrid frameworks like Cordova or Phonegap arent supose to just implement mobile features like camera or gps, they are useful writing once and run everywhere without complaining about iOs and Android code or even for fallbacks. Probably in the future youre not even going to install applications in your phone to use all mobile features using only browser features.
Here are some helpful links:
https://developer.android.com/guide/webapps/webview.html
https://developers.google.com/web/fundamentals/getting-started/codelabs/your-first-pwapp/
https://developer.mozilla.org/en-US/Apps/Progressive

Why CEF app is not rendering Polymer UI?

I have developed a web application using Polymer and packaging it as a CEF App. When I launch the application, I only get a blank screen while same application in browser is rendered properly.
I'm using CefSharp (V- 1.19.0.41824) to embed a webView control in my winform application. Below is the code that I'm using for displaying web content in webView -
webView = new WebView();
webView.Load("http://localhost:8000/sampleApp/")
Any pointer will be very useful.
If the current core chrome version used by CEF is lower than 36, then you'll need to enable the experimental flags to allow the web components features.
I don't know how you would enable those flags in your project, but I do know that web components and html link/includes where only made mainstream in the browser core from chrome 36 onwards.

Windows Phone 8 navigation

I just started developing wp8 apps coming from android. What is the equivalent UI control for an app drawer (android) to be able to quickly change from page to page? I'm looking for the control used to change from page to page in OneNote
EDIT: I found out that Windows phone 8.1 offers flyouts which can be made to look like an app drawer.
The equivalent to the android app drawer is probably the windows phone appbar, but the appbar in windows phone is not used for navigation - only settings like actions.
In windows phone, navigation is done primarily through your own interface, with heavy use of the BACK button to go to previous pages. The main class you use in windows phone is the NavigationService
I don't believe the OneNote uses standard UI components, so you would probably have to create your own
There are plenty of solid resources online that should help. Start here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff626521(v=vs.105).aspx

Can a HTML5 web application access the camera on a Windows 7 tablet

I have a HTML/Javascript web application which integrates with a device's camera using PhoneGap.
Is there any way we can run the application on a Windows 7 tablet (e.g. as a normal website) and be able to integrate with the camera on the device.
You will be, eventually, when the getUserMedia API is implemented in more browsers (currently only available in Opera and special builds of other browsers), but at the moment, no.
I don't believe there is a way to do this.
We enabled photos to be dragged into the application to support this feature. It means the user takes a photo as dictated by the tablet and then has to drag/select the appropriate photo file to add to the application.

How to make an HTML5 that does not require the blackberry browser component?

I used the latest and greatest jQuery Mobile (RC1) to develop an app for the client. I used the latest Webworks version from RIM and packaged the app in a Cod file.
The app works great if accessed through the web browser ETC however when I installed the actual generated JAD/Cod files onto a blackberry device, performance was horrible even with minimum number of jQuery libraries.
Since I have Googled this everywhere and it is apparent that one cannot have a meaningful app experience if Webworks is used, I want to be able to just create something that just places the app icon on the phone. Once clicked, it open the browser and takes the user to the web server where the HTML files are parked.
Is this possible?
You can do that, with a very simple Java-application.
The following code:
Browser.getDefaultSession().displayPage("http://www.yourserver.com");
It will open browser and open page: http://www.yourserver.com
Browser class javadoc is here: http://www.blackberry.com/developers/docs/5.0.0api/net/rim/blackberry/api/browser/Browser.html