I am working on libgdx program with 2 screens named "Show Info.". A 'startup' screen always popup first. How could I hide it?
Thank you very much!
Regards, Antony
You are using Screen and Game classes?
@Override
public void create() {
mainMenuScreen = new MainMenuScreen(this);
anotherScreen = new AnotherScreen(this);
setScreen(mainMenuScreen);
}
Make sure you call the setScreen
method.
I'm a little unclear on what you are asking, could you elaborate a little more? What is this 'startup' screen you are receiving?
Use Service
instead of Activity
.. The Service
can be working in the background without a UI.
Example to use the service
public class MyService extends Service {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
//TODO do something useful
return Service.START_NOT_STICKY;
}
@Override
public IBinder onBind(Intent intent) {
//TODO for communication return IBinder implementation
return null;
}
}