MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sony Reader (https://www.mobileread.com/forums/forumdisplay.php?f=100)
-   -   PRS-T1 Refresh booklist without reboot (https://www.mobileread.com/forums/showthread.php?t=169479)

ramble 02-18-2012 09:44 AM

Refresh booklist without reboot
 
Hi,

I sync the books directiory on the sd-card using Dropspace, but when I return to the Home screen the newly added books are not available until I reboot.
Is there a way to force it to reload the list? Maybe an Intent that can be called?

Thanks :)

goldencore 02-18-2012 08:09 PM

There is an app entry called "MediaScanner" on my rooted T1. That might do the trick.

ramble 02-19-2012 06:07 AM

1 Attachment(s)
Thanks that was a good hint :)
There is indeed a broadcast intent that can be called (android.intent.action.MEDIA_MOUNTED), however it has to be broadcasted, so I created the attached small app so that I can have an icon in my readers advanced home-screen.

Actually DropSpace only does one-way sync from Reader to Dropbox.
However DropSync is capable of a real two-sync.


So for future reference here are the relevant lines for the homemod.xml:
Code:

        <componentName package="de.rumpeltux.mediarefresh" class="de.rumpeltux.mediarefresh.MediaRefresh" />
        <intentAction>android.intent.action.MAIN</intentAction>
        <intentCategory>android.intent.category.DEFAULT</intentCategory>

Code:

    <customAppDefinition name="app_dropbox" title="Dropsync">
            <iconNormal>ic_dropbox.png</iconNormal>
            <iconPressed>ic_dropbox_pressed.png</iconPressed>
            <componentName package="com.ttxapps.dropsync" class="com.ttxapps.dropsync.SyncNowShortcutActivity" />
            <intentAction>android.intent.action.MAIN</intentAction>
            <intentCategory>android.intent.category.LAUNCHER</intentCategory>
    </customAppDefinition>



All times are GMT -4. The time now is 06:10 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.