W
W
WannaCreative2016-06-05 23:07:48
JavaScript
WannaCreative, 2016-06-05 23:07:48

Mobile App Development: Java or JavaScript?

Hello. I had a problem, namely:
I tried to create web applications in JS, then convert them to .apk for android, and successfully use it on android. And then I found an advertisement for courses on mobile development in Java.
Tell me, on what all the same to make applications for android?
I have a little insight into Java.mobile.development, and I want to say that JS is somehow easier and much more understandable for me.
Thanks

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rafael™, 2016-06-06
@WannaCreative

js is about 100 times easier to learn than java
performance js is constantly growing - soon WebAssembly and WebCl
now - accelerated graphics WebGl
api phonegap - sufficient for most tasks
js is the future

G
GavriKos, 2016-06-05
@GavriKos

Java is currently the native language for android. The fact that you convert from JavaScript or something else - all this can lead to a drop in performance, or, for example, to the lack of support for some new features from the platform.

V
Vitaly Stolyarov, 2016-06-06
@Ni55aN

It’s fast and relatively easy in JS, but only for trivial tasks, if something is more serious, then it’s better to start with Java right away, otherwise there is a risk of pain and disappointment (for example, the lack of functionality in JS tools for a particular implementation, or a terrible performance)

X
xmoonlight, 2016-06-06
@xmoonlight

The core - we write in Java, the user interface of interaction between the core and the user - in JS.
The solution is universal in that it allows you to:
1. Change the appearance more flexibly and quickly using the familiar HTML/CSS/JS layout.
2. Take out any functions, while not touching the working code inside
3. Two people can work on such an application at once: JAVA (back-end) and layout + JS (front-end)
4. Communication between the JS client and The JAVA code comes through the local interface via websocket, which prevents any delays.
5. You can always remake the client in any other language
6. As a bonus, you can run the interface on a PC (or somewhere else), and it will be connected and controlled by an application running on a smartphone in the background (in the form of a daemon).
7. One interface can manage multiple devices at once, and multiple clients can access one device at once.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question