schlot

dojox mobile themes - dojox.mobile.deviceTheme vs. setting a specific CSS

Discussion created by schlot on Nov 27, 2012
My first mobile project is based on the Find Nearby sample.  It specifies the iPhone CSS
<link type="text/css" href='http://serverapi.arcgisonline.com/jsapi/arcgis/2.7/js/dojo/dojox/mobile/themes/iPhone/iPhone.css' rel='stylesheet'>


In testing, there are issues on some Android phones.  On one it is loading fine, another not at all and a third it loaded, but was pretty slow.  As I've read further on the dojo site, it sounds like if I add
dojo.require("dojox.mobile.deviceTheme)
then it will handle the themes for the various devices for me.  I'm wondering if the lack of a specific Android theme is part of the problem. 

My question is, If I add this, should I remove my existing CSS reference to the iPhone theme?  Or is it OK because adding the deviceTheme as a requirement takes care of it anyway?

http://wwwgis.dhss.mo.gov/Website/mobileWIC/WIC.html

Outcomes