I am using Canvas.DrawLine and Canvas.DrawText etc. in my app to draw a radio tuning dial, and rather than squeeze all the information into the screen I draw onto a wide panel which the user has to scroll left or right.
The panel width is calculated from the width of the radio waveband which means that sometimes the bitmap is wider than allowed by the OS. When this happens all drawing onto the canvas has no effect, i.e. the screen remains blank but the app does not crash.
My question therefore is how to find the maximum allowed bitmap width for the device?
I know that the Java Canvas object has the getMaximumBitmapWidth method but so far I have been unable to utilize this in B4a.