Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Andrey8000

#1
Support / GLSurfaceView + onPause
July 30, 2013, 01:48:49 PM
Hello. I try to finish activity in "onPause" when i lock my device:

public void onPause() {
mGLView.onPause();
mGLView = null;
gameRunning = false;
running = false;
paused = true;
renderer = null;
handler = null;
handlerTimer = null;
workThread = null;
mWorld.world.removeAll();
mWorld.world = null;
mWorld = null;
fb = null;
workThread = null;
gd = null;
mec = null;
MyGame.this.finish();
super.onPause();
}

But until i unlock device it's no "onStop" and "onDestroy" in Logcat, only this orange text:
Quote... IInputConnectionWrapper(19178): getExtractedText on inactive InputConnection

After that I have to wait a few seconds, then again I see my game screen and only then the activity is completed...

Why the activity is not complete immediately, as in the method "finish()" without blocking device?
#2
Hello, how can i make blur effect on some objects in JPCT-ae? I need it to create explosion effect in my game.
Or may be glow effect around object?
#3
Support / jPCT and Android LiveWallpaper
April 16, 2013, 04:56:08 PM
Hi all, I like jPCT, but now I was faced with how to make live wallpaper using jPCT?  For example, I tried to combine the example of Robert Green and the standard example of a working code android, jPCT and so far I do not have enough understanding of the problem. For example now I get an error nullpointer in the method  onSurfaceCreated() (class myEngine extends GLEngine)... Can anyone share the sample code of jpct livewallpaper? p.s. Sorry by my english.