android - Launch another intent from AndEngine activity -


i have 2 activities, mainmenuactivity , gameactivity, each inherit andengine's basegameactivity. i'm trying launch game main menu:

startactivity(new intent(getapplication(), gameactivity.class)); finish(); 

this being called within onscenetouchevent. causes application crash in poolupdatehandler::onupdate, on line says "synchronized (scheduledpoolitems)".

i feel should simple. clues?

try suggestion swapping out getappliction() this. want pass in reference current activity's context rather passing in application reference.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -