I am not able to change my app direction using (html dir="ltr"), after android device language has been changed to arabic. How can I change my app direction to ltr using phonegap or sapui5?
That is kind of not possible,
Reason : Because if you do that then you would need to build entire android app again and then run it in device.
Possible Solution
You can use navigator.language to detect device language and based on that you can load different CSS and HTML.
To change application direction, sapui5 provides script tag attributes for configuration. Just include sap-ui-rtl="false" and sap-ui-language="ar" attributes in your script something like,
<script src="resources/sap-ui-core-all.js" data-sap-ui-rtl="false" data-sap-ui-language="ar"></script>
Related
I am new to NativeScript and have knowledge of Angular. I am trying to insert a map to my mobile app with Openlayers. In Angular, in other words HTML, we can create a div and let openlayer draw the map on it. However, I can't find any equivalent to div in NativeScript, or XML. How should I overcome this?
Unlike Cordova / PhoneGap, NativeScript does not run within WebView. It has a JavaScript runtime which allows you to reuse your web skills not web components. Anything that depends on Browser / HTML Dom can't be used within NativeScript as the UI is purely native here.
If you still want to use Openlayers, you should host a WebView in your application and load your HTML / JavaScript there which can manipulate the map for you. You may also use nativescript-webview-interface to communicate with your NativeScript runtime from your web app running within the WebView.
Let me explain the scenario first.
I have a simple static dashboard html page with 5 simple charts created with HTML5, CSS
and javascript.
It renders data from a static Json to display the charts.
Its is not online and running in my local system.
There are no back end code which connects to a database.
Now I want to convert this to an Ipad app where I can see the dasboard page without out internet connection.
Kindly provide me a best way to do this.
Regards,
Shanmugam
You can use Apache Cordova (or phonegap) for building native web applications for all major platforms using HTML 5 , CSS and JavaScript.
You can refer to this Blog post on how to easily port existing HTML5 based application to iOS and Android.
Additionally you can also check this link for some more insights.
I'm new to Kendo and have been brought on to a project using it for some of it's components. The project is a web app (not an web app wrapper -- will be accessed via phone's web browser). It seems it's rendering various elements differently based on the device platform/version. Is there a way to disable it and use a global style (design dictates it looks the same on all devices)? Sorry if it's a basic question, but haven't seen any options like this in the documentation.
Check these documentation articles:
http://docs.telerik.com/kendo-ui/mobile/introduction#force-platform-rendering
http://docs.telerik.com/kendo-ui/mobile/application#forcing-platform-styles
You can also force the Flat skin:
http://docs.telerik.com/kendo-ui/api/javascript/mobile/application#configuration-skin
I have developed an application with HTML5. I want to know how I can make a shortcut/access-point URL icon to access my offline page.
Adding /path/favicon.ico to your cache.manifest, unless I'm misunderstanding the question.
If you mean a desktop shortcut, you can't do that through the app itself, have to use an external program.
I am currently working on a new app and this is my first ever app I have attemped to make with the android os.
I am using eclipse 3.6 and using android 1.5 version as the base to make the app as compatible as I can with all android phones.
I am a newbie to java and I read a few tutorials which helped me get the app up and working but I am using webview using iframes and have the html document hosted online but I would like to have it intergrated into the app itself so that I will not have to worry if a lot of people use the app will not bring down the website.
But I also want it to be able to update all the data off the website when members want to check for updated information on the html document as I am using the html document to control the main gui.
please use PhoneGap, this will fulfil your requirements