Create custom splash screen in Firefox OS application - splash-screen

After developing an application, Firefox OS automatically creates a splash screen for the app using the app icon. But for my application I want to develop a custom splash screen.
It is possible using JavaScript methods like But firefox setTimeOut or setInterval, but Firefox OS doesn’t support these types of methods.

You can create 2 pages and after your desired time, just switch to another page using javascript. You should put the first page in manifest.

Related

Launch browser in chrome as application via asp.net web application properties page

On the debug page of an asp.net project there is the option to 'Launch Browser'
I would like this to launch the browser with no nav bar or tab options.
This is possible with chrome - you can create a shortcut to chrome and pass
"chrome.exe" --app="url"
I cannot seem to get the same effect when launching a browser from the properties page. I have tried various different application arguments, environment variables, etc to no avail.
Is it possible to launch the browser via this properties page without a nav bar and tab interface? (ie launch it as an application)
How could I achieve this?
You can add custom 'Browse With' targets

Visual Studio / Mobile Switcher Does Not Use Correct .CSS When Switching Between Desktop and Mobile Sites

Here is the requirement:
The application is developed in Visual Studio 2015. It has a responsive (bootstrap) UI and is developed in VB.NET. The application has two sets of .aspx pages: one for the main application (works great) and a second for the mobile application (also works great).
When the user logins in using a desktop/tablet, they are correctly redirected to the 'desktop' version of the site including the correct Site.Master and CSS. Clicking the 'ViewSwitcher' on a desktop correctly directs the user to the mobile site SiteMobile.Master and correct CSS. So the desktop works correctly in terms of detecting the device and directing the user. No issue there.
If Request.Browser.IsMobileDevice = True Then
Response.Redirect("~/Mobile/index.aspx")
Else
Response.Redirect("~/AccessSecurity/Dashboard.aspx")
End If
When the user accesses the application using a phone (Chrome, IE, Firefox, etc) the same code directs the user to the mobile version of the application. Great. Again, no issue.
But here is the problem. When the user accesses the application using a mobile and wants to switch to the desktop version, the switcher directs them to the correct page, however the mobile CSS is used (the one referenced in the SiteMobile.Master) and not the one referenced by the Site.Master. No matter what I do, I cannot get the application to use the correct CSS from a phone when switching from Mobile to Desktop view. Here's what I've tried:
I've tried to force the page.masterfile on pre_init
I've moved the SiteMobile.Master to a directory called "MobilePages" to get it out of the root directory of the project. The compiler did not like this and wants the file in the root directory of the Visual Studio projectFrown | :(
and so on...
So the issue again is only when using a mobile device that switching to desktop view (Site.Master) it retains the mobile css even though the mobile css is not referenced by site.master.
Boy, I really hope I've explained this correctly!
Any insight/experience you've had would be appreciated.
Cory

Setting Chrome to render ASP.Net mobile

I am using the functionality in ASP.Net where it detects if the browser is on a mobile device and redirects to the page that has *.mobile.cshtml. This is all working great as long as I'm actually using a mobile device, but I can't seem to figure out how to get Chrome or Firefox to use the *.Mobile.cshtml files instead of the standard .cshtml files.
I've tried setting the Chrome emulation to use iPhone, but it is still rendering my standard pages.
Is there some setting in VS or Chrome that will tell ASP.Net to render the mobile version?

How does mobile switching work in a vs.net 2012 ASP.NET Web Forms Site project

I'm in the early stages of investigating how to support a mobile set of pages in an ASP.NET Web Forms Site project.
In previous projects using MVC and Razor we would simply have a .mobile.cshtml version of the page and the ViewEngine would handle the switching between desktop and mobile versions of the page on the server (so for example index.cshtml would be served for a desktop browser and index.mobile.cshtml for mobile).
I had thought that something similar would be in place for web forms projects and to make sure fired up Visual Studio 2012, created an ASP.NET Web Forms site project and voila the template had created both a Site.Master and a Site.Mobile.Master and even included a ViewSwitcher.ascx. However when browsing to the site using either Chrome with the user agent set to one of the mobile strings or using the Electric Plum IPhone simulator I'm always ending up with the desktop version of the page.
I've done some debugging and had a look at the DisplayModeProvider.Instance.Modes collection and there is a Mobile provider and a default provider listed, so I'm a little confused as to what else is required to get the mobile version being rendered.
Hey Neil did you look at the CSS file in the project? The #media tag allows your to write css to style on a device that is smaller.
/**********
* Mobile Styles *
**********/
#media only screen and (max-width: 850px) {
//styles here
}
We had the same Problem. We needed some time to figure out, that you need to open the page with the URLRewrite-URL. Try to open
http://mymachine/myApplication/default
instead of
http://mymachine/myApplication/default.aspx
Best regards,
Nico

ASP.NET website not working properly in mobile

I have created a simple app with a page having a server side form, three fields and a button that submits and performs two operations - 1) adds the form fields to the database table 2) sends an email. Now everything works fine on the web browser on my machine but when I access the app through my mobile, the page does not seem to work. the UI and all are set but the button click functionality doesnt seem to be working and also the label which is set after a successful submit is already visible and showing the "thank you" message. Am i doing something wrong here?
I have checked the app on Nokia Smartphone browser, android phone, and iphone simulator.
1st i would try to access the site from a different computer or through a proxy. Just to make sure things work out well in different browsers. That may catch your bug. It may be working fine on your PC Locally, on a local web server, but may not be uploaded to the web.
Next, I would check to see if the devices you are using support Javascript. Chances are good that your script relies on it.
I strongly recommend you to use JQuery Mobile, it create Mobile friendly interface for your website. and for sure it work the same for each cell phone, but as Asp.net isnot easy to render for most of (old) phones, so that you're not able to use whatever you like.

Resources