How to disable monitorOrientation property in sencha touch globally?
Please help.
If by disable you mean prevent the orientation from changing then it cannot be done in a clean way (at least on the iPhone platform).
You could (possibly) investigate the idea of re-oritentating the display when the orientation changes as described here, although I'm pretty sure iOS won't let you prevent it (you may have some luck with Android)
This thread poses a similar question.
You can disable, block the orientation in portrait/ landscape or other using :
For Android if you open with Eclipse: The AndroidManifest under your "Application Nodes" => Screen Orientation
For all system (IOS, Android, BlackBerry, WebOS ... ) : You can do this using Phonegap : it let you encapsule your app in a WebView using HTML5.
You just have to create a config.xml like this : https://build.phonegap.com/docs/config-xml
and add this : in the balise.
Next, you just have to compile your app using http://build.phonegap.com . It's free, easy and fast to use.
Hope this help you ;)
Related
Does anybody know if there is a way in an CN1-App to find out, if the iOS dark mode is activated?
Not at this time. It's something we'd like to add in the future possibly as a cn1lib. You can probably implement this yourself using a native interface e.g. by using something like this: https://stackoverflow.com/a/59431185/756809
How to lock screen orientation?
Tried this code, but seems, that I use it wrong... Cause it doesnt work on my android smartphone...
window.screen.orientation.lock(window.screen.orientation.type);
There is currently no way to do that in Dart.
https://github.com/flutter/flutter/issues/6381
The issue also contains links how to do that in platform native code.
You can make such native available to Dart using a plugin https://flutter.io/developing-packages/#plugin
I checked the Kitchen Sink example and it seems that there is no new theme for iOS 8.1/8.
Does anyone have any idea?
Thanks
I believe that iOS 8 is way identical to iOS 7 in applications UI design. It includes several minor UI tweaks which don't belong to any application themselves, but global stuffs (multitasking screen or searching screen for example).
So I think there isn't a necessity to create a dedicated theme for iOS 8.
my current project requires the implementation of Google StreetView.
The app already exists for iOS, where everything worked pretty fine, StreetView is embedded in the view, customized with overlays and buttons and what not...it runs fast, scrolling the StreetView view is smooth, it's obviously no webview...in short, it's perfect.
Now I have to do this app for Android and I was looking all day already, but with no success. From what I found out, there is the possibility to start StreetView as a new activity, without any chance to customize it, no overlays, no buttons, just standard Google stuff. This should be pretty smooth as it is not a webview. I can't use this, as I have to customize the UI.
Now I tried the webview approach and this makes everything slower and more laggy than you'd expect from even Android... BUT...seems to be customizable. Still, as slow as it is, I can't imagine anyone having fun with it.
So, my question is, do I have any more chances to get this working (a transparent Activity on top of the StreetView Activity? - please no)? Why does Google get it right for iOS and not for Android?
The iOS SDK just got released recently, is there a chance a new one will be coming for Android soon?
Thanks for any hints, M.
Found it. The answer lies herein : Android webview slow
Turning off the hardware acceleration speeds up the rendering ... yeah, right!
if (Build.VERSION.SDK_INT >= 11){
webview.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}
Should I use svg icons for responsive mobile design ? because of retina display. I read that it is good idea for small icons like header or title etc..
Are you talking exclusively about iOS - you mention retina? I do not know about this platform but SVG is not supported by default on Android. Instead you create a different sets of icons with different sizes.
I recommend this reading
This is quite a good read on the matter.
http://net.tutsplus.com/tutorials/why-arent-you-using-svg/
Bassically, it depends on what you want with your implementation. If you only want to use it on Safari on iOS? go ahead. Fast and fluid. however, if you want users to be able to use other platforms like Android, different browsers on iOS or even Windows Phone, this is not the best option.