Recent

Author Topic: Android DLL for use with JavaScript (jQuery Mobile framework or similar)  (Read 5283 times)

FrenkR

  • New member
  • *
  • Posts: 7
Hi,
I have a device that communicates via USB. I would like to make a DLL(or sort of *ActiveX*) that would communicate with hardware (having access to TCP/USB port) and would expose a higher level interface for use with JavaScript via jQuery framework inside browser(Android 1.6 and higher) or any other viable scripting engine(if is available).
The main idea is that GUI have a *native look* and can talk to background and that can be easily ported to iOS too(iPhone/iPad) in a near future.
Any suggestion?
Rgds,
Frenk

Phil

  • Hero Member
  • *****
  • Posts: 2737
No, I don't understand what you're trying to do.

Maybe a different explanation would help us?

For iOS you can create a native app that uses the underlying CocoaTouch framework or you can create a Web app that either runs in the Mobile Safari browser or runs "full screen" without the browser present. However, like any Web app, you're restricted to accessing the hardware or file system except via HTML5 local databases and the like.

Thanks.

-Phil

FrenkR

  • New member
  • *
  • Posts: 7
Hi Phil,
I would like to build 2-tier App. first part is a part where a logic is. Second part would provide a GUI. A demo case is as follows:
- a specific hardware for collecting a data is connected via USB or TCP to a device(standard virtual serial port implementation)
- after a data is received(*event*) logic processes a data, writes something to a DB, calls webservice(WS) and notify a GUI part to do update a display
- GUI has *command* buttons to interact with a *logic part*; after a buttons is pressed, a command to a logic layer should be sent
- logic part does some work (write some data to a serial port and/or make a call to WS)
GUI/Logic part communication should be 2-way
Rgds,
Frenk

 

TinyPortal © 2005-2018