Questions tagged [droidscript]

DroidScript (was AndroidScript) is a free Android app that allows us to write genuine Android apps in JavaScript.

http://droidscript.org/

DroidScript is an easy to use, portable coding tool which ‘lowers the bar’ to serious mobile app development. It dramatically improves productivity by speeding up development by as much as 10x compared with using the standard development tools.

It enables non-professional and novice coders to harness the amazing powers of modern mobile devices at home, at school or at work. You can literally code anywhere with DroidScript as it's not cloud based and doesn't require an internet connection.

Unlike other development tools which take hours to install and eat up gigabytes of disk space, you can install DroidScript start using it within 30 seconds!

15 questions
1
vote
1 answer

How to create callback function with different value for every button in DroidScript?

I tried to make a small game using DroidScript on Android. It uses Javascript. It's a card game. Each button represents a card from the deck. When I touch a button, I expect that app will show popup with the value of the button (card) I have…
sanitizedUser
  • 1,723
  • 3
  • 18
  • 33
1
vote
1 answer

Application in DroidScript is crashed when method OnMessage from sms service receive sms with symbolic phone number

So, code function Onstage() { sms = app.CreateSMS(); sms.SetOnMessage(sms_OnMessage); } function sms_OnMessage (number, message) { app.ShowPopup(number + ': ' + message); } is crashed when sms with symbolic phone number comes. Any idea how…
1
vote
1 answer

DroidScript - TCP receiving at any moment

Ok so for the TCP client in DroidScript, what do I do so that it can receive data from the server at any moment? The example that is provided shows receiving once only after sending data to the server. How would i set it up to receive data from the…
0
votes
0 answers

Send data from Droidscript to ESP32

I am trying to create an android app using Droidscript in order to send some data to an ESP32. Searching on the web I found several ways to do it but all of them are quite complicated. Can anyone help me how to continue from now on ??? Thanks a lot…
0
votes
0 answers

How to save multiline text in html text editor?

Im creating a text editor in html and jquery with droidscript . the problem is when i try to save multy line text , the text saved as one line this is save function : function save(file){ text =…
Med Aly
  • 1
  • 1
  • 1
0
votes
1 answer

My force calculating code won't print to the console

I wrote some javascript code in droidscript but it won't work. I made several attempts to fix it, even deleting irrelevant code, but it still won't print any thing to the console, what's wrong with it? var Vector = function(x, y) { this.x =…
Dead beat
  • 15
  • 3
0
votes
2 answers

how to store the user information in local storage DroidScript

I am using droidscript . and I don't know how to store the user activities in local storage. because my app isn't connected to the internet. my problem is every time the user log in to my app he finds the same things. so I am looking for a way that…
0
votes
1 answer

Unable to create Droidscript data table

Using DroidScript remote, I loaded a JS table demo and tried to run on my android phone. While the program in question runs well in the web demo, and while other programs compile and run well on my device (phone), I can not make the table run on my…
samtal
  • 131
  • 2
  • 12
0
votes
2 answers

DroidScript unexpected end of token

It says exactly this. I don't think I made a mistake. Here is my code: function OnStart() { list=app.LoadText("List"); lvw= app.CreateListView(list,"Lego"); lvw.SetOnTouch( lvw_OnTouch ); lvw.Show(); } app.EnableBackKey( "false" ); function…
kahveciderin
  • 312
  • 1
  • 3
  • 22
0
votes
1 answer

Trouble connecting phone to arduino using droidScript

I am trying to connect my sony xperia sp running on android 7.1 ( Lineage OS ) to my arduino uno using an OTG cable and the droidScript app. It worked perfectly the first time, it asked permission to open droidScript : I clicked on "OK" and checked…
0
votes
2 answers

Save canvas img with droidscript

OK so I am aware of the traditional HTML5 ways of saving a canvas img as a png, however my project is a DroidScript app and window location doesn't work and there is no server side to post process the img on a server and download it. My question is…
John Manning
  • 39
  • 11
0
votes
1 answer

Exist a limit to add controls in linear layouts in DroidScript?

I have a problem, I start to develop a ui of an app, and in one of the frames in this project I added 25 controls in it, but I need add more, when I try to add a checkbox text and edit text appears only edit text, and the text and the check not…
0
votes
1 answer

Receiving information Bluetooth devices using an Android App

I would like to know if you can send/recieve information from a Bluetooth device such as a headset or something of the sort. As well as if this is possible using JavaScript. The app I use to code JavaScript is called "DroidScript", which allows you…
0
votes
1 answer

WiFi scan android javascript

I am trying build an android application that scans for the available access points and saves it in an array. I was able to do it using eclipse and android studio but I am unable to do it from droidscript application. I went through WiFi demos in…
0
votes
1 answer

How can I run CasperJS files in Android?

How can I install and run CasperJS files in Android? Is it possible? I would like to create an equal application droidscript with test functions and execute on a webview.
fredericoallan
  • 101
  • 2
  • 9