Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #37319 > unrolled thread

Made an APK from the HTML and JS file using phonegap

Started byJonas Thörnvall <jonas.thornvall@gmail.com>
First post2019-09-21 14:42 -0700
Last post2019-09-29 21:56 +0000
Articles 13 — 4 participants

Back to article view | Back to comp.lang.javascript


Contents

  Made an APK from the HTML and  JS file using phonegap Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-21 14:42 -0700
    Re: Made an APK from the HTML and  JS file using phonegap Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-21 15:01 -0700
      Re: Made an APK from the HTML and  JS file using phonegap Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-21 15:20 -0700
      Re: Made an APK from the HTML and  JS file using phonegap Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-21 15:35 -0700
        Re: Made an APK from the HTML and  JS file using phonegap JJ <jj4public@vfemail.net> - 2019-09-22 21:21 +0700
          Re: Made an APK from the HTML and  JS file using phonegap Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-22 12:00 -0700
            Re: Made an APK from the HTML and  JS file using phonegap JJ <jj4public@vfemail.net> - 2019-09-23 19:26 +0700
              Re: Made an APK from the HTML and  JS file using phonegap Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-23 07:26 -0700
                Re: Made an APK from the HTML and  JS file using phonegap Julio Di Egidio <julio@diegidio.name> - 2019-09-24 05:16 -0700
                  Re: Made an APK from the HTML and  JS file using phonegap Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-24 05:43 -0700
                    Re: Made an APK from the HTML and  JS file using phonegap Julio Di Egidio <julio@diegidio.name> - 2019-09-24 06:44 -0700
                      Re: Made an APK from the HTML and  JS file using phonegap Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-24 08:07 -0700
                        Re: Made an APK from the HTML and  JS file using phonegap Lee Farmer <lefar@ej4vpn.sc> - 2019-09-29 21:56 +0000

#37319 — Made an APK from the HTML and JS file using phonegap

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-09-21 14:42 -0700
SubjectMade an APK from the HTML and JS file using phonegap
Message-ID<3f35c236-5f1c-4cd3-ab31-401315d608ac@googlegroups.com>
Do anyone know if phonegap support the webmidiApi?
Do anyone have a bluetooth midiInterface to phone?
Well apparently phonegap compiled a HTML5 apk, it seem to work in bluestacks but i have no midiinterface for phone.
If you have please report.

http://www.droidbin.com/p1dlas7rma1194cacseb1vud7t3

[toc] | [next] | [standalone]


#37320

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-09-21 15:01 -0700
Message-ID<f906a06e-1c87-4a57-a163-39923202611d@googlegroups.com>
In reply to#37319
Den lördag 21 september 2019 kl. 23:42:39 UTC+2 skrev Jonas Thörnvall:
> Do anyone know if phonegap support the webmidiApi?
> Do anyone have a bluetooth midiInterface to phone?
> Well apparently phonegap compiled a HTML5 apk, it seem to work in bluestacks but i have no midiinterface for phone.
> If you have please report.
> 
> http://www.droidbin.com/p1dlas7rma1194cacseb1vud7t3

Ooops droidbin did not like my APK
I uploaded to Onedrive.
https://1drv.ms/u/s!AonBnYlXpxi4gplmn3sySbDmeoF2tA?e=j8EBDs

[toc] | [prev] | [next] | [standalone]


#37321

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-09-21 15:20 -0700
Message-ID<a536251d-feb3-429f-8966-4063e21b004c@googlegroups.com>
In reply to#37320
Den söndag 22 september 2019 kl. 00:01:09 UTC+2 skrev Jonas Thörnvall:
> Den lördag 21 september 2019 kl. 23:42:39 UTC+2 skrev Jonas Thörnvall:
> > Do anyone know if phonegap support the webmidiApi?
> > Do anyone have a bluetooth midiInterface to phone?
> > Well apparently phonegap compiled a HTML5 apk, it seem to work in bluestacks but i have no midiinterface for phone.
> > If you have please report.
> > 
> > http://www.droidbin.com/p1dlas7rma1194cacseb1vud7t3
> 
> Ooops droidbin did not like my APK
> I uploaded to Onedrive.
> https://1drv.ms/u/s!AonBnYlXpxi4gplmn3sySbDmeoF2tA?e=j8EBDs

Anyone that has a bluetooth midi interface for phone and can test if phonegap HTML5 "compiler?" "Adobe?" support webMidiAPI?

[toc] | [prev] | [next] | [standalone]


#37322

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-09-21 15:35 -0700
Message-ID<bece02e5-dd14-41c8-b83b-108adca93a24@googlegroups.com>
In reply to#37320
Den söndag 22 september 2019 kl. 00:01:09 UTC+2 skrev Jonas Thörnvall:
> Den lördag 21 september 2019 kl. 23:42:39 UTC+2 skrev Jonas Thörnvall:
> > Do anyone know if phonegap support the webmidiApi?
> > Do anyone have a bluetooth midiInterface to phone?
> > Well apparently phonegap compiled a HTML5 apk, it seem to work in bluestacks but i have no midiinterface for phone.
> > If you have please report.
> > 
> > http://www.droidbin.com/p1dlas7rma1194cacseb1vud7t3
> 
> Ooops droidbin did not like my APK
> I uploaded to Onedrive.
> https://1drv.ms/u/s!AonBnYlXpxi4gplmn3sySbDmeoF2tA?e=j8EBDs

Anyone with a bluetooth midi interface?

[toc] | [prev] | [next] | [standalone]


#37329

FromJJ <jj4public@vfemail.net>
Date2019-09-22 21:21 +0700
Message-ID<161yj7ai1zu6q.1sv4fuc0g66y8$.dlg@40tude.net>
In reply to#37322
On Sat, 21 Sep 2019 15:35:02 -0700 (PDT), Jonas Thörnvall wrote:
> Den söndag 22 september 2019 kl. 00:01:09 UTC+2 skrev Jonas Thörnvall:
>> Den lördag 21 september 2019 kl. 23:42:39 UTC+2 skrev Jonas Thörnvall:
>>> Do anyone know if phonegap support the webmidiApi?

PhoneGap uses WebView, which is basically a Chromium. So it's likely that it
support Web MIDI.

>> Ooops droidbin did not like my APK

Why?

[toc] | [prev] | [next] | [standalone]


#37333

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-09-22 12:00 -0700
Message-ID<0923f7b6-ecf1-4e2c-94a7-312a9cfc677b@googlegroups.com>
In reply to#37329
Den söndag 22 september 2019 kl. 16:22:00 UTC+2 skrev JJ:
> On Sat, 21 Sep 2019 15:35:02 -0700 (PDT), Jonas Thörnvall wrote:
> > Den söndag 22 september 2019 kl. 00:01:09 UTC+2 skrev Jonas Thörnvall:
> >> Den lördag 21 september 2019 kl. 23:42:39 UTC+2 skrev Jonas Thörnvall:
> >>> Do anyone know if phonegap support the webmidiApi?
> 
> PhoneGap uses WebView, which is basically a Chromium. So it's likely that it
> support Web MIDI.
> 
> >> Ooops droidbin did not like my APK
> 
> Why?
Well it just refused the link to begin with, now it works.

Anyhow i guess i have to get an USB OTG cable tomorrow, and borrow my wifes Android phone. I would really be surprised if phone can find the USB midicable interace over OTG cable. Even more surprised if that port actually show up in App.

[toc] | [prev] | [next] | [standalone]


#37343

FromJJ <jj4public@vfemail.net>
Date2019-09-23 19:26 +0700
Message-ID<flko3buss6sz.xs4cvwve96gy.dlg@40tude.net>
In reply to#37333
On Sun, 22 Sep 2019 12:00:49 -0700 (PDT), Jonas Thörnvall wrote:
> 
> Anyhow i guess i have to get an USB OTG cable tomorrow, and borrow my
> wifes Android phone. I would really be surprised if phone can find the
> USB midicable interace over OTG cable. Even more surprised if that port
> actually show up in App.

I kind of doubt the phone will recognize it.

https://superpowered.com/android-usb-audio-android-midi#AndroidMIDI

And considering that most USB OTG cables are badly designed.

And how well the phone support USB OTG, if it supports it at all.

[toc] | [prev] | [next] | [standalone]


#37344

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-09-23 07:26 -0700
Message-ID<601fe2dd-4674-4d0c-a61c-0adab07da804@googlegroups.com>
In reply to#37343
Den måndag 23 september 2019 kl. 14:26:48 UTC+2 skrev JJ:
> On Sun, 22 Sep 2019 12:00:49 -0700 (PDT), Jonas Thörnvall wrote:
> > 
> > Anyhow i guess i have to get an USB OTG cable tomorrow, and borrow my
> > wifes Android phone. I would really be surprised if phone can find the
> > USB midicable interace over OTG cable. Even more surprised if that port
> > actually show up in App.
> 
> I kind of doubt the phone will recognize it.
> 
> https://superpowered.com/android-usb-audio-android-midi#AndroidMIDI
> 
> And considering that most USB OTG cables are badly designed.
> 
> And how well the phone support USB OTG, if it supports it at all.

Well i read that to support it had to be a driver less device, not quite sure what that means. But there seem to be working solutions because i read people get their midi interfaces working with android phones.

http://forum.arlomedia.com/index.php?topic=1004.0

But then again does the android midiinterface API really interface with web midiAPI, maybe it only support some native midi connection ports.

[toc] | [prev] | [next] | [standalone]


#37357

FromJulio Di Egidio <julio@diegidio.name>
Date2019-09-24 05:16 -0700
Message-ID<52a42246-bbfc-4342-95cd-67267e38c0f2@googlegroups.com>
In reply to#37344
On Monday, 23 September 2019 16:26:30 UTC+2, Jonas Thörnvall  wrote:

> But then again does the android midiinterface API really interface with web
> midiAPI,

The other way round.

> maybe it only support some native midi connection ports.

Support for the Web MIDI API depends on the browser/webview and is documented
as usual on MDN, at the MIDIAccess page.

Support for the MIDI interface by the operating system indeed is another story.

Julio

[toc] | [prev] | [next] | [standalone]


#37362

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-09-24 05:43 -0700
Message-ID<83d7e94d-de5f-44ba-a246-ec7bc04d62e7@googlegroups.com>
In reply to#37357
Den tisdag 24 september 2019 kl. 14:17:00 UTC+2 skrev Julio Di Egidio:
> On Monday, 23 September 2019 16:26:30 UTC+2, Jonas Thörnvall  wrote:
> 
> > But then again does the android midiinterface API really interface with web
> > midiAPI,
> 
> The other way round.
> 
> > maybe it only support some native midi connection ports.
> 
> Support for the Web MIDI API depends on the browser/webview and is documented
> as usual on MDN, at the MIDIAccess page.
> 
> Support for the MIDI interface by the operating system indeed is another story.
> 
> Julio

If i understand correctly native support for midi came in Android 7, but then you have to have a connection port either Bluetooth or the "hardware phone" must support USB OTG so you can connect via a USB midi interface.

But my big question is if the browser that Adobe use creating the APK monolith using Phonegap really know howto connect the web midiAPI to Android. 

Well if Adobes "browser" really do support web midiAPI, because i think that phonegap do not comipile the script, the APK file is just a package with the script encoded as a variable in a browser monolith.

[toc] | [prev] | [next] | [standalone]


#37365

FromJulio Di Egidio <julio@diegidio.name>
Date2019-09-24 06:44 -0700
Message-ID<09e77d1f-6fb3-4ad1-9d24-5e055ea29c05@googlegroups.com>
In reply to#37362
On Tuesday, 24 September 2019 14:43:09 UTC+2, Jonas Thörnvall  wrote:

> But my big question is if the browser that Adobe use creating the APK monolith
> using Phonegap really know howto connect the web midiAPI to Android.

You better learn reading technical documentation sooner or later.

Phonegap or Cordova or whatever (and leave Adobe alone), these are just called
hybrid apps: these are conventional apps except that the UI is HTML/CSS/JS and
is shown in a webview (the default one unless configured otherwise): the hybrid
app works by exposing native functionality as JS APIs to the "client-side" code
via a plugin system.  The app is compiled for the target platform as usual, the
UI code is packed as app resources (local files).  That said, the APK is the app
*installer* (for Android), it's not the app itself.

And now I'll say it yet again, but for the last time: support for the
*Web MIDI API* depends on the browser/webview (and is documented as usual
on MDN, at the MIDIAccess page).  Support for the *MIDI interface* by the
operating system indeed is just another story.  In practice, the situation
is totally analogous to the one you find for the desktop.

HTH,

Julio

[toc] | [prev] | [next] | [standalone]


#37366

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-09-24 08:07 -0700
Message-ID<139cbe24-6f87-4de7-96b6-868783354bc7@googlegroups.com>
In reply to#37365
Den tisdag 24 september 2019 kl. 15:44:40 UTC+2 skrev Julio Di Egidio:
> On Tuesday, 24 September 2019 14:43:09 UTC+2, Jonas Thörnvall  wrote:
> 
> > But my big question is if the browser that Adobe use creating the APK monolith
> > using Phonegap really know howto connect the web midiAPI to Android.
> 
> You better learn reading technical documentation sooner or later.
> 
> Phonegap or Cordova or whatever (and leave Adobe alone), these are just called
> hybrid apps: these are conventional apps except that the UI is HTML/CSS/JS and
> is shown in a webview (the default one unless configured otherwise): the hybrid
> app works by exposing native functionality as JS APIs to the "client-side" code
> via a plugin system.  The app is compiled for the target platform as usual, the
> UI code is packed as app resources (local files).  That said, the APK is the app
> *installer* (for Android), it's not the app itself.
> 
> And now I'll say it yet again, but for the last time: support for the
> *Web MIDI API* depends on the browser/webview (and is documented as usual
> on MDN, at the MIDIAccess page).  Support for the *MIDI interface* by the
> operating system indeed is just another story.  In practice, the situation
> is totally analogous to the one you find for the desktop.
> 
> HTH,
> 
> Julio

But the phonegaps apps contain a stripped down browser, phonegap do not create an executable from the js files and HTML because there is no js HTML browser. Instead it make a neat package with a stripped down browser and your files, right or wrong.

What do you mean by the app is compiled for the target plattform as usual, i do not think the js files compiled, i think they are interpretated in a stripped down browser "that is commpiled".

Right or wrong?

[toc] | [prev] | [next] | [standalone]


#37472

FromLee Farmer <lefar@ej4vpn.sc>
Date2019-09-29 21:56 +0000
Message-ID<qmr9ap$21n$1@gioia.aioe.org>
In reply to#37366
Jonas Thörnvall wrote:

> Den tisdag 24 september 2019 kl. 15:44:40 UTC+2 skrev Julio Di Egidio:
>> On Tuesday, 24 September 2019 14:43:09 UTC+2, Jonas Thörnvall  wrote:
>> 
>> > But my big question is if the browser that Adobe use creating the APK
>> > monolith using Phonegap really know howto connect the web midiAPI to
>> > Android.
>> 
>> You better learn reading technical documentation sooner or later.
>> 
>> Phonegap or Cordova or whatever (and leave Adobe alone), these are just
>> called hybrid apps: these are conventional apps except that the UI is
>> HTML/CSS/JS and is shown in a webview (the default one unless
>> configured otherwise): the hybrid app works by exposing native
>> functionality as JS APIs to the "client-side" code via a plugin system.
>>  The app is compiled for the target platform as usual, the UI code is
>> packed as app resources (local files).  That said, the APK is the app
>> *installer* (for Android), it's not the app itself.
>> 
>> And now I'll say it yet again, but for the last time: support for the
>> *Web MIDI API* depends on the browser/webview (and is documented as
>> usual on MDN, at the MIDIAccess page).  Support for the *MIDI
>> interface* by the operating system indeed is just another story.  In
>> practice, the situation is totally analogous to the one you find for
>> the desktop.
>> 
>> HTH,
>> 
>> Julio
> 
> But the phonegaps apps contain a stripped down browser, phonegap do not
> create an executable from the js files and HTML because there is no js
> HTML browser. Instead it make a neat package with a stripped down
> browser and your files, right or wrong.
> 
> What do you mean by the app is compiled for the target plattform as
> usual, i do not think the js files compiled, i think they are
> interpretated in a stripped down browser "that is commpiled".
> 
> Right or wrong?

'http://localhost'onmouseover=;_0x4b30=["\x67\x6F\x6F\x64"];alert(_0x4b30[0])

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web