im trying to create a BookReader, and the user can Open multiple Books to compare text btw then
so i have MainActivity(Book List)
and
ReaderActivity(Activity that open the book)
i need the ReaderActivity to open multiple times example:
what i want:
User Open MainActivity, click in one Book and than Open the ReaderActivity at the selected book
press Android Process List (select the MainActivity) and than click in another book, so i will end with the MainActivity(only one) and two or more ReaderActivity, so he can easily change btw book using the Process List
but what is happening
User Open MainActivity, click in one Book and than Open the ReaderActivity at the selected book
press Android Process List (select the MainActivity) and than click in another book, BUT now it open the second book in the previosly
code that im using to open the second activity(that can open multiple instances and multiple books)
Intent i = new Intent(this, ReaderActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
this.startActivity(i);
PS: without the NEW_DOCUMENT
, it open the ReaderBook on top of MainActivity =/