Sorry, got posted too soon
I am trying to draw a group i fimages stored on teh sd card instead on
internal storage. I can draw the internal images with my code but get
no images whem I try to download from the card.
I have tried 2 versions (dw[] is Drawable array)
1/ using getIdentifier
int dwID = getResources().getIdentifier(newGame.sdShapes
[xOFy.returnOrder(jj)], null, "org.example.lookagain");
dw[jj] = context.getResources().getDrawable(dwID);
the error is 'no package identifier'
and
2/ createFromPath
dw[jj.createFromPath(newGame.sdShapes
[xOFy.returnOrder(jj)]);
In both instances newGame.sdShapes
[xOFy.returnOrder(jj)] provides path to file (/sdcard/filename)
On Jul 20, 8:35 am, intbt <[email protected]> wrote:
> I am trying to draw a group i fimages stored on teh sd card instead on
> internal storage. I can draw the internal images with my code but get
> no images whem I try to download from the card.
>
> I have tried 2 versions (dw[] is Drawable array)
> 1/ using getIdentifier
>
> int dwID = getResources().getIdentifier(newGame.sdShapes
> [xOFy.returnOrder(jj)], null, "org.example.lookagain");
> dw[jj] = context.getResources().getDrawable(dwID);
>
> the error is 'no package identifier'
>
> and
>
> 2/ createFromPath
>
> dw[jj] =
> context.getResources().getDrawable(dwID);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---