• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Add the alertbox between the game loop

sweetadaga

Lurker
Mar 28, 2011
1
0
Hello,

I am using Jpct-ae game engine to create a 3d game in android. i am editing the alien runner game which is provided as a example for jpct-ae. Now in between the game loop i want to enable the alertbox. But it shows an error. here is the code for alertbox i am using:

myHandler.post(new Runnable() {
public void run() {
// toast = Toast.makeText(getBaseContext(), "Loading track " + sel, Toast.LENGTH_LONG);
// toast.show();
AlertDialog.Builder builder=new AlertDialog.Builder(null);
builder.setMessage("Hello Virus");
builder.create();
builder.show();
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones