hiteshsuthar / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

texture demo doesn't work under 2.0 #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run the example 2 "texture background"

What is the expected output?

i should see the background beach.png

What do you see instead?

i can only see a maroon background

What version of Rokon are you using?
1.1.1

On which version of Android are you experiencing this?
2.0

Please provide any additional information below.

some examples don't run correctly, especially the example 2 texture
background. i can't see the background. the image loading part must be
problematic.

i tried to load the image myself. so i copied a piece of code from the
texture.java file:

Bitmap
kkk=BitmapFactory.decodeStream(Rokon.getRokon().getActivity().getAssets().open(_
textureType.getAssetPath()),
null, opts);

it turned out that kkk is null.

however, if i change the code to this:

kkk=BitmapFactory.decodeStream(Rokon.getRokon().getActivity().getAssets().open(_
textureType.getAssetPath()));

it works. but i don't know if this is the bug. 

Original issue reported on code.google.com by billco...@gmail.com on 25 Feb 2010 at 5:54

GoogleCodeExporter commented 8 years ago
Rokon 2 is on the way, all current Issues are obsolete

Original comment by rtaylor205@gmail.com on 24 May 2010 at 3:31