Android Question It's possible convert a portion of C# or Java code... to B4a?

Discussion in 'Android Questions' started by Jerez, May 17, 2015.

  1. Jerez

    Jerez Active Member Licensed User

    We already have a X10 home automation server in C# that run on Windows as Service. But we want to redesign all for Android (b4a) as an "Android X10 server". Our app (C#) is simple, its like a listener, just the CM15Pro module send an receive commands (on/off/dimm) through usb or serial port.

    Maybe someone can help us to rewrite it to B4a? obviously we can pay for help

    For example this is a X10 Java example that can control CM15Pro...

    This is the Java X10 project page:


    Any way to use this project on B4a as library?

    Thanks for advise and excuse y english
    Last edited: May 17, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    This is not an Android library. It will not work on Android.
  3. Troberg

    Troberg Well-Known Member Licensed User

    And, the slightly longer version: It can be done, but it will have to be completely rewritten. Much of the logic can probably be salvaged, but put into new code.
  4. Erel

    Erel Administrator Staff Member Licensed User

    As this library interacts with PC hardware it will be difficult to convert it to Android.
  5. Troberg

    Troberg Well-Known Member Licensed User

    Some parts need to be rewritten, but Android devices has USB ports as well. As for serial ports, do even PC hardware have them nowadays?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice