开发者

Generating Balls for Android Game

I am making a game in Android where i am generating random number for different colored balls. Currently i am generating buttons dynamically and settings the background resource.

I am using some high resolution icons as images. However when they render on screen, all of them gets slightly pixelated and don't look good on screen. I tried it with different sizes of icons but it was of no use.

Can anyone suggest where i can be going wrong and what can be the best way to take care of these things. I am new to game programming so a开发者_开发知识库ny help would be appreciated.


I would guess that your application is not running at your phone's maximum resolution. You need to specify the target version of Android in your manifest file, otherwise the app defaults to an early version and only runs at low-res.

If your phone supports Android 2.2 (Froyo) then try adding this line to your AndroidManifest.xml file:

<uses-sdk android:minSdkVersion="8" />

Be sure to put it in the manifest section, not the application section. If you see a line for "android:versionName" then put it immediately after that line.

If your phone doesn't support Android 2.2 then change the minSdkVersion number to 7. If it's an older version then go down to 6 or 5. You'll need to make sure you have the correct SDK files installed on your development machine. (ie: you won't be able to compile an Android 2.2 app if you only have the 2.1 SDK installed.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜