How to make a mobile app using HTML CSS and JS? - java

I am planning to develop a mobile app using HTML CSS and javascript.i plan on storing data in a local file instead of a database.how can I develop this? any ideas? The app will run in the browser of the mobile device. (this eliminates login)
The concept of the project is good.ive also designed the UI.

I think you're talking about making a website with a javascript app in it. Mobile apps are made with swift for IOS and android apps are made in java or c++.
There are programs that will take your website and put it inside an application container (mostly for android) but these programs are not recommended.
I would recommend learning swift or Java or c++ and make an app or using your html/css/javascript knowledge to make a web application.

Related

How to create a desktop app for the existing web application?

Well, I've tried to do some researches before creating a question but only a little has been found.
Basically, I have got a Spring-based web application. Apparently, you can navigate through web application using HTTP requests and URLs. If you want to edit a user you do a GET request /users/edit/{id} and a new page appears. Then you make some changes to the user and do a POST request /users/edit/{id} and let's say the main page appears.
So, now I need to create a desktop application which can do the same things.
Do I need to rewrite the whole app to port it on the desktop? Is it possible somehow to do sort of HTTP requests from the desktop app to the server, then get a response and process it? Or perhaps there is a proper way to do it?
I feel like it's a big topic but I only need you to point me in the right direction as I'm lacking experience in creating both desktop and web applications together (I'd say, I have never ported app from web to desktop and vice verse).
Earlier I created a few apps using JavaFX and I want to use it again as my GUI platform for the desktop app.
You can go for a solution like, Electron.
It's a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It uses Chromium and Node.js. You can develop your desktop GUI applications using front and back end components originally developed for your web application.
I'm just pointing you a way. You can look in to this solution and it's also open-source.
If you were about to develop the frontend from scratch I'd recommend you to use something like Ionic Framework where in the latest beta 4 allows you to write once run everywhere (web, PWA, desktop with Electron, and build native build for iOS and Android).
Basically Ionic is an Angular 7 library/superset that allows you to create mobile apps based on a webview. This webview can be embedded and run on any device in a native way.
Even though the same codebase can be run on multiple devices you can customise the look and feel on each platform and access through Cordova, Electron or Capacitor the native device capabilities and hardware.
If you don't want to rewrite the web client, you can use any desktop framework with the preferred language you want. Any modern language/framework will allow you to make HTTP requests against your backend and get the data through your API.
Honestly, nowadays I'd day that JavaFX is not the best option out there and I'd recommend you to go through the web-based approach.
Good luck!

Implement Android/iPhone App on a Website page

Okay, so I'm currently looking to see if this is doable so I can hire a programmer. Can I implement let's say a messenger app that is on Android and iPhone just like kik messenger on a website, so the app would be available on the PC online too. If so what language(s) would complete this task? Thank you.
This is not possible using native Android/iOS languages.
These languages are designed to work on mobile devices, not on the web. This means you cannot just embed the source code of a mobile application into a web page.
You can however create a a web version of your application (depending on the complexity of the app). For example: you could create a web version of the mobile app using HTML, JavaScript and CSS. You could also (although slightly dated) create a Flash application and embed it in the browser.
Web apps are becoming more and more common with the rise of HTML5, CSS3 and JavaScript. I recommend this book on building web apps: http://www.amazon.co.uk/Beginning-Web-Applications-HTML5-JavaScript/dp/1430240806

Web application and mobile application

I want to ask if im using ruby on rails for my web application, what language should I make mobile version(or custom mobile version) of the accordingly my web application?? I need to use JRuby or ?? use Java instead? what is the suggestion that can be combine this two that work together?
Assuming you want to use the classical "HTML mobile web app", the answer is this:
You should ship HTML-only to the users. All communication between the mobile app and the servers should be via an API (JSON is a decent choice for the API protocol, and it's easy to implement in Rails).
You can create the HTML in any way you please - e.g. by compiling .erb/.haml templates in rails.
But on the finished app, you should optimally only have index.html, styles.css and scripts.js.
You can ship an html web app via PhoneGap

Converting Android app to Java Desktop app

I developed an application in Android. Now i want develop same application for Desktop using Java. Is there any tools or procedure to convert existing Android app code to Java Desktop app.
Thanks in advance.
Android application will definitely not work on desktop computers out of the box, unless using an emulator. However, as specified by Android documentation:
Android platform using the Java programming language
Android uses Java. That means any java code that is well encapsulated in a domain layer independent from the android UI can be reused as part of a java desktop application.
If the application is well designed and GUI well separated from domain and other layers, this will boil down to only converting android UI elements (eventually along with a presentation layer) into java desktop components (SWING...)

Can I make an HTML5 game for Android?

Ok to be more specific... can I program an android app in Java that has something like a web view to which I can point to local files on the phone?
I'm thinking about making an android game and i'm wondering if it can be done with a little HTML5 and Javascript that is locally stored on the phone. I heard something about a web view in Java and that is why I am wondering if it could work.
Is this even possible?
As the other answers might be correct, there is a much simpler way:
If you know html5 programming, you can do a simple Android app that has one Activity containing one WebView. In that webview you load your index.html and there you go. You can basically do anything you would do on a normal web app.
PhoneGap and Appcelerator are for cross platform development and they provide access to the hardware (vibration, sensors etc) and they give you the possibility to build the native UI with html and javascript. For a pure WebApp they are not the correct frameworks/tools I think. I might be mistaken, but a WebGL Benchmark I wrote for PCs worked out of the box in the android browser and I justed used html5 and JavaScript.
Your answer is yes, your solution is phoneGap
http://phonegap.com/
yes definitely,
check out appcelerator.com, phonegap.com etc
u can probably go to google "cross platform mobile development"
there's a few neat html javascript frameworks

Categories

Resources