chendd / android-wheel

Automatically exported from code.google.com/p/android-wheel
0 stars 0 forks source link

Doesn't work on Android 1.5 #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
>adb.exe install wheel.apk
825 KB/s (29602 bytes in 0.035s)
Can't dispatch DDM chunk 46454154: no handler defined
Can't dispatch DDM chunk 4d505251: no handler defined
        pkg: /data/local/tmp/wheel.apk
Success

After this I can see the application icon, but I can't access the menu items 
Cities, and others

What version of the product are you using? On what operating system?
Version of wheel demo: 1.2
Version of android sdk: r06 for windows
Eclipse: Galileo
OS: Vista Business

Original issue reported on code.google.com by Monomac...@gmail.com on 11 Sep 2010 at 12:02

Attachments:

GoogleCodeExporter commented 9 years ago
in WheelView 
commented following lines to work on 1.5
itemsPaint.density = getResources().getDisplayMetrics().density;

and 
valuePaint.density = getResources().getDisplayMetrics().density;

Original comment by khurrum....@gmail.com on 25 Oct 2010 at 11:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you!

Is it because getResources() or getResources().getDisplayMetrics() returns null?

Or something else?

Original comment by yuri.kan...@gmail.com on 1 Nov 2010 at 10:55

GoogleCodeExporter commented 9 years ago
because in itemsPaint.density, the density does not exist in 1.5 same for the 
later one, thanks

Original comment by khurrum....@gmail.com on 1 Nov 2010 at 11:36

GoogleCodeExporter commented 9 years ago
Thank you very much!

Original comment by yuri.kan...@gmail.com on 2 Nov 2010 at 7:56

GoogleCodeExporter commented 9 years ago
Fixed. The corresponding code is commented.

Original comment by yuri.kan...@gmail.com on 3 Nov 2010 at 7:12