activeMinutesWeek as Number

Former Member
Former Member
I want draw the activeMinutesWeek as a Number (or Integer). If i try this:

dc.drawText(dc.getWidth()/2+1, 100, dc.FONT_MEDIUM, stepsInfo.activeMinutesWeek, Gfx.TEXT_JUSTIFY_CENTER);

the result is: Obj: 31. Also i need this Value to calculate the lenght of a bar in Pixel. How do i translate this???