Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 204
Registered: ‎07-09-2009
My Device: Not Specified

Re: How to determine whether Mass Storage Mode is enabled?

How about have the app check at device bootup if it can connect to media card, then note the result of that in the runtime store if the autostart thread will terminate, or else just in a variable if your app has an autostart thread that stays running.  The result of that check should let you know if there's a card or not, if it's made in a startup tier before mass storage could have been enabled.  Later you can use the result of that initial connection plus the current ability to connect to the media card, to know if mass storage mode is on or not.

 

Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: How to determine whether Mass Storage Mode is enabled?

@ 

I don't agree.

 

You've mixed a lot of propositions in your answer.

 

The question that the original poster had was: To properly detect if User can write on SDcard

Because the when  MS is active and user plugged in the USB to a computer, the SDcard is not accessible.

 

If you only check the status on boot-up, that's not real plug-and-play check, right Smiley Wink ?



"Listen carefully, I shall say this only once"
Developer
Posts: 204
Registered: ‎07-09-2009
My Device: Not Specified

Re: How to determine whether Mass Storage Mode is enabled?

If a file connection can be made to media card during bootup but not at a later time, shouldn't that mean there is a media card but it's currently inaccessible probably due to mass storage mode?

Highlighted
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: How to determine whether Mass Storage Mode is enabled?

@

 

yes. 



"Listen carefully, I shall say this only once"