It's about a Memory consumption issue that I am facing with my application.
The application basically uploads medias to a server.
i am using external libraries like Realm, retrofit, Glide, sliding panel etc.
Is the library has anything to do with this issue ?
How to track the code that causes this issue?
The realm was the cause of the trouble. Realm.close() solved my problem.
realm.executeTransaction(new Realm.Transaction() {
@Override
public void execute(Realm {
if (!realm.isClosed()){
Realm realm1 = Realm.getDefaultInstance();
realm1.close();
}
}
});