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();
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();