Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,174 Members 36,062 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Where is default app info kept?

Tip us?
 
nmyshkin
Old
#1  
Senior Member - OP
Thanks Meter 8
Posts: 128
Join Date: Nov 2013
Default [Q] Where is default app info kept?

When I go to view a video from a webpage or a news app I am always presented with a list of potential players (some of which I don't even have). I check the little box at the bottom of the list that says "always use this" or whatever, and then select RockPlayer. It all works fine but the Nook doesn't seem to remember this choice. It asks each time. Very annoying.

Does anyone know where this default app information is stored? A database file I could look at perhaps? Maybe something is not being set properly. I've made other default selections for other situations and they seem to take. Or maybe it's a RockPlayer issue?
 
Renate NST
Old
#2  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 804
Posts: 1,991
Join Date: Feb 2012
Location: Boston
<preferred-activities> inside /data/system/packages.xml

The Following User Says Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
nmyshkin
Old
#3  
Senior Member - OP
Thanks Meter 8
Posts: 128
Join Date: Nov 2013
Always in the last place I look

So... this is what is there, but it's repeated over and over (and over--like for every time I've done it):

Code:
<preferred-activities>
<item name="com.redirectin.rockplayer.android.unified/com.redirectin.rockplayer.android.OpenRockPlayerActivity" match="600000" set="5">
<set name="com.estrongs.android.pop/.app.BrowserDownloaderActivity" />
<set name="com.estrongs.android.pop/.app.PopVideoPlayerProxyActivity" />
<set name="com.opera.browser/com.opera.Opera" />
<set name="com.alensw.PicFolder/.StreamingActivity" />
<set name="com.redirectin.rockplayer.android.unified/com.redirectin.rockplayer.android.OpenRockPlayerActivity" />
<filter>
<action name="android.intent.action.VIEW" />
<cat name="android.intent.category.DEFAULT" />
<type name="video/mp4" />
</filter>
</item>
I don't see the BBC News app mentioned in a similar vein, but it behaves in exactly the same way. Nothing in the code above jumps out at me as a novice, but the fact that there are many, many entries in the file all the same does not seem good.

Ideas?
 
Renate NST
Old
#4  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 804
Posts: 1,991
Join Date: Feb 2012
Location: Boston
Well, the easiest solution is to just gut the preferred-activities:
Code:
<preferred-activities>
</preferred-activities>
Your Nook may ask you once about a few intents, but that should be it.
It's possible that packages.xml got corrupted.

Also, depending on how a file gets opened there may be different filters for mimetype vs. path filters.
If you are still having problems, narrow it down to exactly how you are trying to open the file.
Use logcat and see what intent generates the picker dialog.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes