Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 01-16-2012, 07:07 PM   #46
Morkl
Connoisseur
Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.
 
Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
Quote:
Originally Posted by bardo View Post
>Does anyone else have any requests, irks or other ideas about how to make the stock home screen better?

- I would like to have an easy access to dictionaries or even offline Wikipedias like WikiDroyd or Aard. Could be a link or even an input field.

- A defaults manager, selecting the stock reader or coolreader, same for audio: stock or Mortplayer Audio Books, maybe MIME-based.
Access to dictionary or wiki apps can be accomplished by setting them as custom apps and assigning them to a button. On a related note, setting custom websites and dictionary apps as highlight text-shortcuts might be a nifty feature, e.g. to set your own language version of Wikipedia.

Regarding input fields, a "custom app button that takes data from a text field" type of widget might be achievable.

Quote:
Originally Posted by ewandeep View Post
Sorry for the stupid question, but How may I find the right componentname, intentaction and intentcategory for other applications I installed on the nook?

See the example:
Code:
<customAppDefinition name="app_rootexplorer" title="Root Explorer">
<iconNormal>ic_rootexplorer.png</iconNormal>
<iconPressed>ic_rootexplorer_pressed.png</iconPressed>
<componentName package="com.speedsoftware.rootexplorer" class="com.speedsoftware.rootexplorer.RootExplorer" />
<intentAction>android.intent.action.MAIN</intentAction>
<intentCategory>android.intent.category.LAUNCHER</intentCategory>
Not a stupid question, just a poorly documented feature

I don't really know if there is a "real" way to find out what activities and intents an application can do, I usually just unpack the apk (apktool d filename.apk) and check AndroidManifest.xml.

The AndroidManifest.xml in the stock Reader app on the PRS-T1, for example, begins with (after I've done some modifications):
Code:
<manifest
android:sharedUserId="com.sony.drbd.ebook.netapp_mod"
android:versionCode="22" android:versionName="1.0"
package="com.sony.drbd.ebook_mod.reader"
xmlns:android="http://schemas.android.com/apk/res/android">
So the "package" part of the ComponentName is "com.sony.drbd.ebook_mod.reader".

Then there is a list of activities that the app provides, e.g. the BookReadingActivity:
Code:
<activity
android:theme="@style/WindowFullscreen"
android:name="com.sony.drbd.ebook.reader.activities.BookReadingActivity"
android:configChanges="keyboardHidden|orientation">
So the "class" part of the ComponentName is "com.sony.drbd.ebook.reader.activities.BookReading Activity".

Each activity (at least those that can be started with an intent) also has a list of intent-filters that specify how they can be started.
BookReadingActivity has:
Code:
<intent-filter>
	<action android:name="android.intent.action.VIEW" />
	<category android:name=, />
	<data android:mimeType="application/epub+zip" android:scheme="file" />
	<data android:mimeType="application/pdf" android:scheme="file" />
	<data android:mimeType="text/plain" android:scheme="file" />
	<data android:mimeType="application/fb2" android:scheme="file" />
	<data android:mimeType="application/xmdf" android:scheme="file" />
	<data android:mimeType="application/x-dotbook" android:scheme="file" />
	<data android:mimeType="application/vnd.sony.mnb" android:scheme="file" />
</intent-filter>
<intent-filter>
	<action android:name="android.intent.action.MAIN" />
	<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Which means it can be started either with action="android.intent.action.MAIN" and category="android.intent.category.LAUNCHER", or with action="android.intent.action.VIEW", category="android.intent.category.DEFAULT" and a URI of any of the specified types as data.

I hope this makes some kind of sense; just say the word if you need help with a specific app

Quote:
Originally Posted by rupor View Post
Done!
Great, thanks! Now that I've got a rudimentary Reader release out, I'll start cleaning and refactoring my code and publishing it

For those who don't follow the font thread, I just posted a modified stock Reader with custom font support.
Morkl is offline  
Old 01-17-2012, 03:08 AM   #47
ewandeep
Zealot
ewandeep , Klaatu Barada Niktu!ewandeep , Klaatu Barada Niktu!ewandeep , Klaatu Barada Niktu!ewandeep , Klaatu Barada Niktu!ewandeep , Klaatu Barada Niktu!ewandeep , Klaatu Barada Niktu!ewandeep , Klaatu Barada Niktu!ewandeep , Klaatu Barada Niktu!ewandeep , Klaatu Barada Niktu!ewandeep , Klaatu Barada Niktu!ewandeep , Klaatu Barada Niktu!
 
Posts: 110
Karma: 5368
Join Date: Apr 2010
Location: Italy
Device: Sony PRS-T1 Sony PRS-350 Nook Touch Glow
Quote:
Originally Posted by Morkl View Post
I hope this makes some kind of sense; just say the word if you need help with a specific app
Sure, very clear and detailed, thank you very much, it was just what I (and maybe one or two other users) missed.
ewandeep is offline  
Advert
Old 01-17-2012, 04:03 AM   #48
adbosch
Addict
adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.
 
Posts: 299
Karma: 511516
Join Date: Jun 2004
Device: Kobo Forma; Pocketbook Color 633
Is there an app that
- can browse my ebooks as I have filed them (in folders) AND
- from there can launch a selected epub book in the Sony standard reader app (or according to set preferences: Coolreader or FBreader or any other)
on the T1?
Edit: without flashing screen refreshes all the time (like relaunch)
adbosch is offline  
Old 01-17-2012, 10:29 AM   #49
Morkl
Connoisseur
Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.
 
Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
Quote:
Originally Posted by ewandeep View Post
Sure, very clear and detailed, thank you very much, it was just what I (and maybe one or two other users) missed.
Sweet. The Android Intent system is powerful, but perhaps not so intuitive, at least when one is used to personal computers and the "launch application by launching the executable file" scheme.

Quote:
Originally Posted by adbosch View Post
Is there an app that
- can browse my ebooks as I have filed them (in folders) AND
- from there can launch a selected epub book in the Sony standard reader app (or according to set preferences: Coolreader or FBreader or any other)
on the T1?
Edit: without flashing screen refreshes all the time (like relaunch)
Rupor is working on a folder based content manager.

Trying to find out how to do things without flashing the screen was actually the reason I first started dissecting the PRS-T1, but I never got around to checking it out. I am still very interested in doing it though. I'm thinking something like an optional "ugly but fast mode" in the home screen and "refresh every N:th page" when reading.
Morkl is offline  
Old 01-18-2012, 07:50 AM   #50
bardo
Member
bardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enough
 
Posts: 17
Karma: 548
Join Date: Jan 2012
Device: PRS-T1
Quote:
Originally Posted by Morkl View Post
Trying to find out how to do things without flashing the screen was actually the reason I first started dissecting the PRS-T1, but I never got around to checking it out. I am still very interested in doing it though. I'm thinking something like an optional "ugly but fast mode" in the home screen and "refresh every N:th page" when reading.
Hi Morkl,

I cannot agree more and started to lobby with app and OS developers on improving readability on e-ink:

make scrolling and page turns e-ink friendly
https://github.com/aarddict/android/...omment-3512595

Thanks for sharing your work!
bardo is offline  
Advert
Old 01-18-2012, 07:37 PM   #51
Morkl
Connoisseur
Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.
 
Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
Seems like android.view.View on the PRS-T1 has a bunch of non-standard overrides that take an extra int argument "updateMode" that specifies how/if the view should be refreshed.

While playing around, I made a browser that only flashes on page loads, not while scrolling around: http://youtu.be/inBpc60t_Tc

More on this subject later; gotta catch up on some sleep now!
Morkl is offline  
Old 01-18-2012, 07:58 PM   #52
j0534ng31
Connoisseur
j0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheese
 
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
Quote:
Originally Posted by Morkl View Post
While playing around, I made a browser that only flashes on page loads, not while scrolling around: http://youtu.be/inBpc60t_Tc
And when are you going to share it?
j0534ng31 is offline  
Old 01-18-2012, 11:33 PM   #53
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by j0534ng31 View Post
And when are you going to share it?
After he wakes from that well-deserved sleep...
nrapallo is offline  
Old 01-19-2012, 03:26 AM   #54
bardo
Member
bardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enough
 
Posts: 17
Karma: 548
Join Date: Jan 2012
Device: PRS-T1
http://sourceforge.net/projects/sonyfmngr/files/ by rupor-sforge
has two branches
PRS-T1
PRS-T1 (Morkl)
A Readme would be helpful: features, interference with previous root installs?
bardo is offline  
Old 01-19-2012, 03:57 AM   #55
adbosch
Addict
adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.adbosch ought to be getting tired of karma fortunes by now.
 
Posts: 299
Karma: 511516
Join Date: Jun 2004
Device: Kobo Forma; Pocketbook Color 633
Quote:
Originally Posted by bardo View Post
http://sourceforge.net/projects/sonyfmngr/files/ by rupor-sforge
has two branches
PRS-T1
PRS-T1 (Morkl)
A Readme would be helpful: features, interference with previous root installs?
And some screenshots, installation and removal guide. Please?
adbosch is offline  
Old 01-19-2012, 04:32 AM   #56
j0534ng31
Connoisseur
j0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheese
 
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
Quote:
Originally Posted by nrapallo View Post
After he wakes from that well-deserved sleep...
Nope...

He did it first... go here

Morkl
j0534ng31 is offline  
Old 01-19-2012, 07:32 AM   #57
Morkl
Connoisseur
Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.
 
Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
Quote:
Originally Posted by j0534ng31 View Post
And when are you going to share it?
I have uploaded it to SourceForge now!

Quote:
Originally Posted by bardo View Post
http://sourceforge.net/projects/sonyfmngr/files/ by rupor-sforge
has two branches
PRS-T1
PRS-T1 (Morkl)
A Readme would be helpful: features, interference with previous root installs?
Quote:
Originally Posted by adbosch View Post
And some screenshots, installation and removal guide. Please?
Documentation will happen; I just don't have as much free time as I'd like

Quote:
Originally Posted by j0534ng31 View Post
Nope...

He did it first... go here

Morkl
I actually uploaded it after I read that post; I just left this post hanging in a tab and forgot to post it!
Morkl is offline  
Old 01-19-2012, 07:59 AM   #58
bardo
Member
bardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enoughbardo will become famous soon enough
 
Posts: 17
Karma: 548
Join Date: Jan 2012
Device: PRS-T1
thx Morkl !
bardo is offline  
Old 01-19-2012, 09:34 AM   #59
joaxi
Junior Member
joaxi began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2012
Device: PRS T1
Quote:
Originally Posted by Morkl View Post
Seems like android.view.View on the PRS-T1 has a bunch of non-standard overrides that take an extra int argument "updateMode" that specifies how/if the view should be refreshed.

While playing around, I made a browser that only flashes on page loads, not while scrolling around: http://youtu.be/inBpc60t_Tc

More on this subject later; gotta catch up on some sleep now!
Any chance to reenable 16 colors greyscale mode after scrolling/zooming/etc without refresh?

Last edited by joaxi; 01-19-2012 at 09:44 AM.
joaxi is offline  
Old 01-19-2012, 06:50 PM   #60
Morkl
Connoisseur
Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.
 
Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
Quote:
Originally Posted by joaxi View Post
Any chance to reenable 16 colors greyscale mode after scrolling/zooming/etc without refresh?
I haven't found out how to get back from the mode used in the browser I posted. There are modes that use grey scale all the time though, but they are not as quite as fast.

For example there is the mode I use in the Reader with customizable number of page turn between refreshes that i just uploaded on SourceForge: https://sourceforge.net/projects/son...29/2012-01-20/

Video: http://youtu.be/PC_JMk8tObI

Screenshots show sample quality after 0,1,2,3 and 4 page turns since the last refresh.

Also, I finally got the thumb out and set up an environment compatible with the SVN, and uploaded my code to SourceForge. Yay me!
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	704
Size:	666.1 KB
ID:	81523   Click image for larger version

Name:	2.jpg
Views:	648
Size:	646.1 KB
ID:	81524   Click image for larger version

Name:	3.jpg
Views:	639
Size:	682.6 KB
ID:	81525   Click image for larger version

Name:	4.jpg
Views:	652
Size:	603.0 KB
ID:	81526   Click image for larger version

Name:	5.jpg
Views:	650
Size:	635.6 KB
ID:	81527  
Morkl is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 Sony Home Screen has a hidden app launcher!!! uboot Sony Reader Dev Corner 12 01-11-2012 03:21 PM
I've lost my home screen Paulc15 Kobo Tablets 12 11-16-2011 01:19 PM
Home Screen, do you use it? Breila Barnes & Noble NOOK 7 06-27-2011 09:01 AM
PRS-950 Modified firmware with clock and other features - updated with latest Sony 2.0 rev gardenstate Sony Reader 6 12-27-2010 06:06 AM
What wallpaper do you have on your Home Screen? naivejenni Lounge 31 12-08-2010 05:44 PM


All times are GMT -4. The time now is 04:07 AM.


MobileRead.com is a privately owned, operated and funded community.