1. 스프라이트.detachSelf() 를 많이 씀.
Vector<Sprite> S = new Vector<Sprite>();
Sprite sprite;
sprite = (new Sprite(10+S.size()*1, 10+S.size()*1, texture, this.getVertexBufferObjectManager()));
S.add(sprite);
2. 저장해놓고 벡터객체를 지움.
remove_all() {
Sprite sprite = null;
while (S.size() : 0) {
sprite = S.remove(0);
sprite.detachSelf();
sprite.dispose();
}
done = false;
}
3. Nullpointer in onResume에러가 발생한다면
AndroidMenifest.xml 에서 screenSize
<activity
androd:name="test.tt.hahaah_Apple_name"
android:configChanges = orientation|screenSize">
댓글 없음:
댓글 쓰기