Hi All,
In my app, I have the following code (see below). In the market, under
Errors, I see that the following exception was reported:
java.lang.IllegalArgumentException
at android.view.Surface.unlockCanvasAndPost(Native Method)
at
com.android.internal.view.BaseSurfaceHolder.unlockCanvasAndPost(BaseSurfaceHolder.java:
179)
at
com.sandroids.wallpapers.photos.RendererThread.run(RendererThread.java:
178)
Looking at android's code, I could not understand what could go wrong,
as apparently unlocalCancasAndPost of Surface class, which is called
by BaseSurfaceHolder 179 is native.
Can anyone help?
while (run) {
long currentTime = System.currentTimeMillis();
try {
c = surfaceHolder.lockCanvas(null);
if (c != null) {
synchronized (this.surfaceHolder) {
update(c, currentTime);
}
}
} finally {
if (c != null) {
this.surfaceHolder.unlockCanvasAndPost(c);
}
}
synchronized (this) {
if (wait) {
try {
wait();
} catch (Exception e) {
}
}
}
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en