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

Posts: 45
Registered: ‎07-29-2008
My Device: Z10 Red, 8900, PlayBook
My Carrier: E-Plus
Accepted Solution

How to detect if SD card is supported?

I think this Knowledge Base article is outdated. Is it OK to add a compare to "9" for the model number?


public static boolean isSdCardSupported() {
        String modelNum = DeviceInfo.getDeviceName();
        return (modelNum.startsWith( "8" ) && !modelNum.startsWith( "87" )) || modelNum.startsWith( "9" );

Klaus Nahr
BlackBerry Development Advisor
Posts: 15,871
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to detect if SD card is supported?

You are correct.  Thanks for pointing this out.  I will have the article updated.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.