why 800 x 480 ,160dpi image resource Not showing properly in htc(480x800)

Hi all,

I used 800x480 screen with resolution 160 dpi is not fit in htc desire screen.some part of the image is missing.

CCDirector.sharedDirector().setScreenSize(480, 320);
CCDirector.sharedDirector().attachInView(mGLSurfaceView);

Now I am using 0.82version of cocos-2d android
How can I solve it ??

Thanks for the time


device.png (670.2 KB)

Did you use cocos2d-android? This forum is cocos2d-x, which uses c++.

Thanks for the quick reply.Iam using cocos 2d android please give the link of forum which discuss about the cocos2d-x java.

Hi, Kari Yachan, cocos2d-x only use c*+ & lua language. There’s no “cocos2d-x java” project existing currently.
The homepage of cocos2d-android is http://code.google.com/p/cocos2d-android/, you can commit issues there.
If you don’t dislike coding in c*+ on NDK, you can try cocos2d-x. I think it’s more stable & proved by more commercial games than cocos2d-android. :slight_smile:

Hi thanks for the suggestion:D .Any possible tutorial or something like that is there

Kind regards,
Kariyachan