I know how to flash the backlight in a regular MIDP app. I tried the same approach on a M3G app, but it didn't work. The M3G app includes animations, which are executed with AnimationControllers and AnimationTracks. I have to start a separate thread to call the flashBacklight method. When I do this, the M3G animations do not start. So there is a conflict between this thread and the M3G thread started by the animations. How can I resolve this issue so I can flash the backlight? This is needed for the app "Astral 3d worlds" that my company is going to release:
http://www.mobile-visuals.com/3dastral.php
This is the code that I have used:
----
public void run()
{long loopEndTime,loopStartTime;
{
loopStartTime = System.currentTimeMillis();
tick();
loopEndTime = System.currentTimeMillis();
loopTime = (int)(loopEndTime - loopStartTime);
if( loopTime < loopDelay )
{
try
{display.flashBacklight(loopDelay);
Thread.sleep( loopDelay - loopTime );
}
catch( Exception e )
{
}
}
else
{ display.flashBacklight(loopTime);
}
}
}

Reply With Quote

