I am writing an Android application that can export the current state Activityor Fragmentto a JSON file, which has the following general format:
{
"data": {
"result": {
<content depends on specific class>
},
"input": {
<content depends on specific class>
}
},
"identifier": <identifier depends on specific class>,
"version": 1
}
This means that Activities/ Fragments, which have the ability to export the filling with marked content, implements the interface that I called "Exportable", and the general export function calls the methods defined in the interface. This is a complex solution that works quite well.
So far so good. Now I want to do the opposite direction. I want to upload a file and call the appropriate Activity/ Fragmentdepending on the contents of the identifier.
"" "" Activity/Fragment.
, , .
? , .