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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


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?

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"