I want to write an Android app that gets tweets using twitter4j. I want to make the app save the downloaded tweets (for example in a database) and make the timeline appear when the app is started without internet connection or before the timeline was downloaded. This functionality is implemented in the official Twitter Android app.
twitter4j stores tweets using the StatusJSONImpl class.
I do not know how to instanciate this class with custom data (the tweets that the app obtained in a former session).
I cannot extend the class because all the properties are private. Do I have to change the class itself and compile the entire twitter4j library (i dont even know if thats possible) or is there an easier way?