Can I use javascript with in an Android App [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am a real beginner in flutter and dart, i am trying to implement some web page (specifically pandemic.events) functionality with in a really simple android app..
my first thought is just to copy the web page with all of its' javascript inside the app and manipulate a little bit some parts that i find lacking.
i am struggling with using javascript inside my flutter app (writing import package:js... in main.dart).
Is there even a possibility to use javascript inside a flutter android app ?

you can use JavaScript code and packages in your Flutter code with https://pub.dev/packages/js

I don't know about Flutter but you can implement web page functionalities in a Progressive Web App which is a JavaScript technique to build mobile Apps both for Android and iOS

Related

Website building using firebase [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to build a website using only html, css and JavaScript. I have prior knowledge about these stuff. But I want to use Firebase to host the same. Is it possible to do so?
P.S. I don't want to use any JS Framework because I have no prior knowledge.
If answer is no, please do tell me in detail what all should I start learning to do the same.
Yes it is possible to use Firebase to host your website.
Firebase Hosting:
Firebase Hosting provides fast and secure static hosting for your web app.
Firebase Hosting is production-grade web content hosting for developers. With Hosting, you can quickly and easily deploy web apps and static content to a global content-delivery network (CDN) with a single command.
more info here: https://firebase.google.com/docs/hosting/

How to interface an hardware device using javascript? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I had developed a web application in ASP.NET MVC using C# which is used for billing purpose. But now the client had a new requirement that he need to connect swiping device so that the customers can pay using their cards.
Now the issue is that how i communicate with the device from javascript? i had tried web socket but is not succeed.Is there any ways to make this possible ?
You can use the self host Web API to communicate with the swiping device.
You can simply create a self hosted Web API to communicate with the swiping device
Make it run on the client machine
Call the API from your java script
It will work perfectly
Look at the documentation of the swiping device, it should explain how you should interface with it.
Of course there's no web browser API to interface with every imaginable peripheral device, so you're simply going to have to put your software development skills to work and create a compatibility layer.

Is it possible to integrate Exoplayer in a webview app? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am trying to build an e-commerce app for android tv. After doing some research I figured out that simplest way would be to use WebView, enable javascript and use webchromeclient for the naigation and it worked.
I have set the url of my app to webview and moreover using javascript I am able to achieve the required navigation as well.
My issue is that my html5 app has a video tag that plays the video. I need to use Exoplayer for playing the video for HLS. I have downloaded the demo exoplayer app from github and it runs fine.My question is how can I integrate Exoplayer to my app.
How can I call Exoplayer to my webview app that loads an html5 and javascript based app.
While researching further I found that we can call android methods from javascript and vice-versa using javascriptinterface but I am not able to figure out how to integrate Exoplayer with my app.
Any suggestions would be really appreciated.

HTML App for Mac/Windows [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I wanted to create a program coded in HTML/CSS/JS, I already looked at cordova and phonegap, the only problem here is that I don't want to create an iOS or Android app, I want to create a Mac/Windows App. As far as I know there isn't the possibility in cordova or phonegap to create a Mac/Windows App (even though I believe I saw something similar to this in an old version of phonegap). So, do anyone of you have any idea how to make this possible?
Greetz,
Zocker3333.
Try looking at nodewebkit. This can build HTML/JS based applications for Windows, Mac and Linux and is based around Node.JS

Capture images from a phone camera? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I need a simple way to capture images from smartphones without writing an app for every Operating System ( android, ios, winphone ).
Is there a way to capture images from a phone camera ( obviously without using OS API ) on a web page ?
Short answer: no.
Your best bet is to use Apache Cordova. However, note that the web page needs to be wrapped in a native WebView as an app, as it is not possible to take a picture using the phone's camera directly from a web page. The advantage of using Cordova/Phonegap is that you do not need to write custom code for each platform.
http://docs.phonegap.com/en/3.3.0/index.html
Usage example

Categories

Resources