Windows Environment and Mobile-Web Applications - javascript

We offer a client-server product that runs on Windows Server (2008 R2) and SQL Server (2008 R2).
Our server is implemented via .NET 4.0 and C#.
We're looking to develop a new application that in the background will read and write from the server & DB.
The application should run on desktop, laptops, iOS devices, Android devices and Black Berry devices.
The application is targeted for a technical use (operators, technicians, installers) so rich UI is not a must at all.
What would be the best frameworks & platforms to use o achieve such an application (server side, js library, ui, etc.)
Thanks,
Janiv Ratson.

If you can do it with a web app that would be my first choice. The reason is that the web app will run on all devices.
If web app is not possible for some reason you should go with native, .NET would probably be a good choice, it covers windows, Linux and Mac (via mono) and also you can use mono touch and mono for android to port it to iphone and android.

Since you already work with .NET on Windows, you could cover desktops, laptops with .NET or Mono. Porting to iOS and Android with MonoTouch should not be too difficult especially if you don't have elaborate UI. I have no idea about BlackBerry though.

Related

Can I publish a Cordova app for browser

I'm on a project cross-platform where the client wants a website, an iOS application and an android app. I chose cordova to realise it.
But I have one question, can I host my application like a classic website on a distant server ?
Maxime
While you might be able to reuse parts of your HTML, CSS and JavaScript for the website, Cordova apps run on physical devices like phones and tables and interact
(access device capabilities) with the underlining operating system like Android and iOS.
When you have an existing server-based web app, and you want it running in a Cordova app, you'll have to migrate it. Depending on what your application does you could use a thin Cordova client (think of it as a web browser embedded in a native app) that automatically redirects to your web site.
Link to officially supported platforms.
https://cordova.apache.org/docs/en/latest/guide/support/index.html
EDIT: the following is only for testing, not production
Cordova supports the browser platform.
By running cordova platform add browser you add it to your project and with cordova run browser you run your app in a browser. To run it in a specific port, you need to run cordova run browser -- --port=1234.
You can add, build and run the iOS and Android platforms in the same project.
Take a look here https://www.raymondcamden.com/2016/03/22/the-cordova-browser-platform/

How to run a java applet on windows 8 mobile application using Phonegap / WinJs / C#

I am developing one windows application for mobile and tablet devices.
I want to run one applet in the background or on web view and need to read some data from card reader (no other options or SDK available for this custom reader to read the data).
Using Applet, it's reading data and working fine but I want to run this applet in the background without moving the focus from my application or in a web view.
am using Cordova, WinJS for development. and its only for windows 8+ devices.
I have tried using in-app browser and applet is not running on the in-app browser.
Not possible, windows phone doesn't have a java virtual machine, so it's absolutely impossible to run java applets.

Does a non-mobile DJI Drone SDK exist?

I can see that DJI has a drone SDK for mobile apps (iOS/Android), but I would like to pilot the device from client-side JavaScript or desktop C#. Preferably some type of REST api that can be addressed by any language.
Does something like that exist? I don't see anything obvious on their website.
Did you find the DJI Onboard SDK?
It has sample programs for Qt, Linux, and STM32.
You could use the desktop app/web app to send commands to an MQTT server. You would then need to write a simple mobile app to connect to the MQTT server and subscribe to the command channel.
Then as commands come in via your various applications (desktop, web, etc) you translate the commands received from MQTT to the specific DJI SDK commands and send them to the UAV.
If you're looking to straight up control the drone without being connected to the RC controller or a mobile device, then the only option is the onboard SDK. If you are just looking for a way to run code on the drone directly, you would need to go through either the mobile SDK or onboard. There would be no way to do so without onboard or mobile sdk, you would need some device to communicate with your application and transfer those commands to the drone via onboard sdk or just write an android or ios application for the mobile sdk.
Just buy Blue stack emulator for Windows to simulate Android OS. Better option is to explore docker on Windows and spin some android docker container. It is free to host it in Azure also with database inside.

HTML5 Android Development

I am interesting in making an android application, while my primary hobbies is web development. Now the thing that is confusing me is that people make applications in HTML5/CSS3/JavaScript languages, are those apps running on web browsers on android mobile or running like an installed application on android?
Well you can design and develop your app in 3 ways
Native: full Java code in Android case, or Objective-C or Swift now in iOS
Web: HTML5, CSS3, JavaScript
Hybrid: a mixture of the two
If you are a web developer you can design your app in HTML5 and then use a wrapper like PhoneGap or Apache Cordova which will simply wrap or package your app in a WebView (a Webview is like a simple browser inside a native app).
Then you will have your APK like any other app in Google Play, so yes it's a full application that can be installed, updated and deleted of course, in any Android device
But there is a difference between the two, like the speed varies depending on the app type:
previously, web apps couldn't gain access to the accelerometer, camera, gyroscope etc, but now with the bunch of APIs available, you do have the ability to access them in very simple ways.
A full definition of a webView
The WebView class is an extension of Android's View class that allows
you to display web pages as a part of your activity layout. It does
not include any features of a fully developed web browser, such as
navigation controls or an address bar. All that WebView does, by
default, is show a web page.
More info about WebView Here
Yes they can be opened in web browsers. Those mobile application that is written in HTML5 are really web applications that have Mobile user interface. You can create and experience these projects using Visual Studio 2012. Go to new project -> Web -> ASP.Net MVC 4 Web Application -> in "select a template" choose Mobile Application

javascript client for local SQLite on mobile devices

I'm familiar with SQLite from having worked with it using the System.Data.SQLite provider for .NET and also Adobe AIR using ActionScript. I've been asked to investigate what is involved in creating offline data-driven apps for mobile devices (iPhone+iPad and Android for now, maybe Blackberry). The database would have to be available locally on the device because users would often be in rural areas with very unreliable and spotty cellphone reception.
Will the same javascript codebase run unchanged on iDevices and Android devices? Or will separate versions be required for each mobile OS? I see the W3 has discontinued the standards process for local web SQL database(s) because there's only one SQL contender at present and it takes at least two to tango. Is the webkit javscript SQL API in a state of flux?
Hello Tim,
When developing database centric applications for Android and IPhone, you are not locked in to using Sqlite. There is another alternative, which in many cases might be even better; namely CouchDB.
In both cases there are solutions available which makes it easy to develop database centric applications for Android and IPhone using the same code.
CouchDB
CouchDB, although written in Erlang, is basically a JSON based database using javaScript as its default interface. CouchDB can be extremely fast. However, CouchDB is not a relational database.
License: Apache license, 2.0.
Official site: http://couchdb.apache.org/
CouchDB for Android: https://github.com/couchbase/Android-Couchbase
CouchDB for IPhone: http://www.macworld.com/article/159606/2011/05/couchbase.html
Sqlite
PhoneGap is the choice if you prefer working with Sqlite. Using PhoneGap you can use the same javaScript code for both IPhone and Android for communication with Sqlite, and simply replace the middleware to match the OS you are compiling.
For Android the middleware is phonegap-version.jar, whereas for IPhone the file is named phonegap-version.dmg.
In addition to Android and IPhone, PhoneGap makes it possible to port the same applications to Blackberry, WebOS, Symbian and Bada.
License: BSD/MIT.
Official site: http://www.phonegap.com
SQLite is the only option when developing HTML5 Web Apps (if I understood you correctly).
You can check information about IndexedDB, which is already implemented in WebKit (Chrome 12) as window.webkitIndexedDB and also Firefox has implemented it.

Categories

Resources