BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 01-24-2012, 06:33 AM   #1 (permalink)
New Member
Join Date: Dec 2011
Model: 9105
Carrier: null
Posts: 13
Post Thanks: 2
Thanked 0 Times in 0 Posts
Default ObjectGroupReadOnlyException

Please Login to Remove!

Hi All,
when I'm trying to pick specific smartCard from the list, i get this exception:

SmartCard[] allSmartCards = SmartCardFactory.getSmartCards();
SmartCard mySmartCard = null;
for (int i = 0; i < allSmartCards.length; i++) {
       mySmartCard = allSmartCards[i]; //Here I get this exception
SmartCard mySmartCard = ObjectGroup.expandGroup(allSmartCards[i]);
doesn't help=(

Please help me, thanks in advance

Last edited by taraspaliy : 01-24-2012 at 06:35 AM. Reason: spelling
Old 01-24-2012, 05:00 PM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: ObjectGroupReadOnlyException

Its going to be a while till I can look at my code for ObjectGroups, but since no one else has weighed in...

IIRC to do what you want you have to ungroup the whole allSmartCards array, then pull out the one you want. Don't forget to group it up again.
My other Blackberry is a PlayBook.
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Memory Foam Back Rest
Memory Foam Back Rest pictureIN-91/5822 Memorial Glass Vase
IN-91/5822 Memorial Glass Vase pictureICC Memory Circuit Board P/N 100-0001
ICC Memory Circuit Board P/N 100-0001 pictureIN-25/5354 Halloween Memory Card Games
IN-25/5354 Halloween Memory Card Games pictureC-Line Memory Book 12 x 12 Inch Scrapbook Page Protectors, Clear Poly, Top Load,
C-Line Memory Book 12 x 12 Inch Scrapbook Page Protectors, Clear Poly, Top Load, picture

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.