i working on an android application, i have an api object that initialised to null in the main activity, i initilise it in another activity, and when i finish i call back my main activity like this:
startActivity(new Intent(this, MainActivity.class));
when i come back to the main activity, it set up my api object to null; i don't know how i do to keep my api object set up, when i come back to the main i tried use static and protected but it's still not work
Would someone have a solution to avoid this problem?