Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I run background service within this application and gui part.
I have two screens in my application, one is registration screen the other one is updatestatus screen, after my registration is complete i have to view only one screen no matter when the user is want's to get into application.
I would really appreciate a small piece of code that does that.
Thank you in advance.
public GuiApplicationUI() {
if (!isOk) //if registered then enter the updatescreen
pushScreen(new RegisterScreen());
else
pushScreen(new UpdateScreen());
}
}
In my applications, I use Persistence Store to store any state of the app. Once user has successfully registered, update state in persistence store to "registered". Now whenever you want to push screen, check state of registration from persistence store before taking action.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 months ago.
Improve this question
I've built a simple storeHelper app (you can write which products you need to buy, when and in which store) and I want to add a function of adding a checkbox as a user to mark what you've bought from the list, like in a SamsungNotes app, how can I do it + how do I need to change a database to save the status of checkbox?
You can add the checkbox from the Palette in Android Studio, checkbox is available inside the button section in the palette. About the Firebase connection I only know about how to save the user credentials in the database I have no idea about the checkbox status.
#Serg Do provide more details on what database you want to use as the question is very vague. Also, do check the documentation for checkbox and try it out first.
#Manthan For checkbox status it can be stored into Firestore as a field in a document which belongs to the user. Do check out the documentation.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to monitor changes that occur in the database. Say, for instance when an item is removed from the database. I want to be able to use an interface to monitor such changes and create an alert of how many no of items are left in the database . Every 5 min or so. Is there any plugin for java, or some kind of interface or something else? I will be grateful for the help.
Best Option Use DDL TRIGGER as it is DB change event meaning
CREATE DDL TRIGGER
ON DB AFTER DELETE AS
"YOUR ACTION STATEMENT" ;
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Im my level menu (I'm using libgdx), I would like to lock and unlock game levels.
Alowing player to unblock each game level after finishing the previous?.
Can someone point me an example?
Thanks in advance for any help comming this way.
PEACE!
This is just logic stored in variables between sessions.
Loop all of your levels
If the loop index is lower then or equal than your variable "howManyLevelsComplete" make then unlocked. Else you lock them
Save the "howManyLevelsComplete" variable to Preferences so you can keep track when the application restarts.
I wont provide code for this since it's basic game logic.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Basically what I am asking is how do games check what the user inputs all the time, not just when the user is asked to input an integer or a word but I am ALL the time.
Example: Runescape, Minecraft, WoW, any game developed that uses text based communication always has that function that if you type in the pretty box it spits out what you said in a world chat box, how do I do that as such (Not a world chat box) but simply a put out.
Simply put, by polling. Games use loops which run 20+ times a second and check for whether the user is causing input via keyboard/mouse.
There are hundreds of great tutorials
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm currently making a mortgage calculator, but I need some help. I have a reset button on my GUI that makes all of the forms blank again after typing something into them. The IDE already helped me make the button, so here is where I'm at:
private void resetActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
What do I need to put in here?
You either recreate your complete GUI (probably not an option), or painstakingly use .setText("") against each and every input field you have, and similar logic for radio buttons, etc. There's no royal way to it, unfortunately.