Suppose there is a class Foo.java, which I serialized in a desktop Java application in order to use it in an Android application. The result was the testSerial.gbw file, which I put in the project directory of Android-Studio next to the packages of my Android application (see screenshot).
I also added the Foo.java class template to the Android application project in order to perform classical (as I thought / wanted) deserialization:
FileInputStream fis = new FileInputStream(path); ObjectInputStream ois = new ObjectInputStream(fis); Foo foo = (Foo) ois.readObject();
As a result, I did not even think about the fact that this is an android and not java, and after compiling the application is already running on the device in which a) another file system b) the application is packaged in the app. From b) the question also follows, where does the testSerial.gbw file go after the project is packaged in the app? How can I find this file and connect it in my application? Roughly speaking, how and where to find my testSerial.gbw in an already compiled application, or where to put it? Or did I initially choose the wrong way to serialize?