Android Question [SOLVED] how to use serializator in pure java

Discussion in 'Android Questions' started by Asim A Baki, May 15, 2019.

  1. Asim A Baki

    Asim A Baki Active Member Licensed User

    I need to send objects serialized by B4A serializator to pure java application

    what is the source sample I can do in java to deserialize the object
    I can send and receive to c# the same objects with no problems, I need to do the same in java application
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You might be able to use jRandomAccessFile (B4J library) for this.
     
  3. Asim A Baki

    Asim A Baki Active Member Licensed User

    would you please give more hint, does jRandomAccessFile support deserialization?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Of course. B4XSerializtor is cross platform. The B4J (Java) implementation is available in jRandomAccessFile.

    Why are you developing with Java? It will be easier to use B4J.
     
    Asim A Baki likes this.
  5. Asim A Baki

    Asim A Baki Active Member Licensed User

    good, can I use jRandomAccessFile in directly in android studio or should I make a wrapper in B4J?


     
  6. Erel

    Erel Administrator Staff Member Licensed User

    I'm sorry but I cannot help you with non-B4X development questions.
     
  7. Asim A Baki

    Asim A Baki Active Member Licensed User

    Thanks for your help so far, I have managed to solve this issue

    Just in case someone wants to do the same I have added jCore.jar to the project dependencies in Android studio along with jRandomAccessFile

    now I can use the serialization from B4J libraries in android studio
     
Loading...
  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