ailiboy / ebookdroid

Automatically exported from code.google.com/p/ebookdroid
0 stars 0 forks source link

Ability to open book to a given page #223

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm developing an app using python for android which calls ebookdroid to open a 
djvu file.  (My request would also apply to calling ebookdroid from a regular 
android app.)  I'm using intent 'android.intent.action.VIEW' and passing the 
filename '/sdcard/book.djvu', with package 'org.ebookdroid' and activity 
'org.ebookdroid.ui.viewer.ViewerActivity'.

I'd like to tell ebookdroid to open the book to a specific page.  Maybe using 
the "extras" portion of the Intent framework?  I don't totally understand how 
Intents work, so maybe it is not possible to do what I want to do.

If this isn't possible, maybe another way would be to have an option for 
ebookdroid to look for a txt file in a particular location when it starts up, 
and if it finds something formatted like

book='/sdcard/book.djvu'
page='100'

then it will open that book to that page.  Otherwise it will act normally, 
going to Recent books or opening the last opened book.

Original issue reported on code.google.com by norri...@gmail.com on 2 May 2012 at 2:22

GoogleCodeExporter commented 9 years ago
yes - it can be implemented via extras - we will provide the list of parameters 
a bit later. 

Original comment by Alexander.V.Kasatkin@gmail.com on 2 May 2012 at 6:14

GoogleCodeExporter commented 9 years ago
Implemented in trunk. The description is available here:
http://code.google.com/p/ebookdroid/wiki/Development

Original comment by Alexander.V.Kasatkin@gmail.com on 3 Aug 2012 at 3:07