Posts by Andiie • 399 points
7 posts
-
1
votes1
answer357
viewsQ: Save the Shard’s state?
In a simple app I have Fragments and need to save their state, so that when the user returns from one fragment to the other, the typed text, chosen number, checked box, etc... suggestions ?…
-
2
votes2
answers1306
viewsQ: How to know the orientation of the screen?
Which code perceives and returns the orientation of the screen? If the cell phone is standing or lying down ?
-
5
votes2
answers1306
viewsA: How to know the orientation of the screen?
Configuration configuration = getResources().getConfiguration(); if (configuration.orientation == Configuration.ORIENTATION_LANDSCAPE){ //... }else{ //... } In this example, it checks whether the…
-
1
votes1
answer986
viewsQ: How to change Activity within a Button Ragment?
I have a simple App, has two areas, one with the Fragment and another with a Button Group (Imagebuttons) How to do so that by clicking the buttons I can change which Activity will be loaded in…
-
3
votes1
answer1091
viewsQ: Working with Base64 image in Android Studio
I have an app in Android Studio and would like to use Base64 image in Imageview and Imagebutton. I already know how to convert the image (from Drawable folder) to String, but I don’t know how to…
-
3
votes1
answer1395
viewsQ: How to make a button blink?
I created a simple code for a game similar to Genius, where a random button of a set of 20 buttons starts to blink, but I can’t get an interval for the color change to be visible... Here’s an…
-
14
votes1
answer3265
viewsQ: How to program Artificial Intelligence with Minimax
My first question here, I recently started a "Jogo Da Velha" in Java and it is already ready, however I want to implement the decision-making capacity, or artificial intelligence. I’ve found that…