Questions tagged as 'java'

1
answer

Add action menu in a snippet, Android Studio

Good! I'm trying to add an action bar to a fragment, but I can not get it in the xml or java. This would be my action menu <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"...
asked by 08.10.2017 / 13:42
1
answer

How can I formulate this? (numbers) 1 * 8 *

I wanted to implement in java but I do not know how to compare two numbers but, if one digit is wrong that the other put in its place "*" so that 1994 to 1224 would be the result 1 ** 4, not how to do this since I can not decompose the number an...
asked by 08.10.2017 / 00:32
3
answers

Difference between id_name and R.id.id_name

I'm starting with android and I'd like to understand this difference. I notice that if I have a created "view" of name id_name, if I inspect id_name I see that this is a value of type int. However, if I want to use findViewById() , t...
asked by 08.10.2017 / 18:36
2
answers

Change language of Google maps on Android

I use the Google-maps object to show maps, my apps have the option to change the language of the app, what I can not find is how to make the google-maps view the names of the cities etc. appear in the specified language. It seems that by defa...
asked by 05.09.2017 / 20:37
0
answers

SQL Server query does not work, the parameter that I use to activate it is in SharedPreferences

public class ResumenTotal extends AppCompatActivity implements SwipeRefreshLayout.OnRefreshListener{ private RecyclerView recyclerView1; private ArrayList<ClaseResumen> array1; private SwipeRefreshLayout swipeContainer; @Ov...
asked by 22.03.2018 / 23:43
1
answer

Delete an item from the java palette

Unintentionally delete an elemetto from the palette, from the "components" part in java, I think it was a JTextField, and I do not know how to put it back. My question is how can I make the JTextField reappear in the palette!?     
asked by 27.08.2017 / 00:06
2
answers

while loop for error correction

I'm doing a kind of menu for a calculator in java, with a switch I have to choose between 3 values (1, 2 and 3) and inside case 1, I make another switch to choose the submenus (a, b, c and d) ), my problem is that I need that if you enter a valu...
asked by 04.11.2017 / 09:39
0
answers

Threads in JFrame [closed]

I need to make a Digital Clock, but for this it is necessary to create a main class and a JFrame, in which I have to inherit the Thread class, and not implement Runnable. Can someone tell me how to inherit the Thread in the JFrame?     
asked by 23.04.2018 / 22:52
1
answer

EventHandler JFXTextField

I have one more question, I have it separated in my project by folders in this way: I have a folder (Main) for the main class with the method start(Stage stage) and the method main(String [] args) Another folder (Model) fo...
asked by 24.04.2018 / 05:21
0
answers

android.content.res.Resources $ NotFoundException error [closed]

I get this error when I try to run my application. What is the problem here? I did not use to get it before. E/AndroidRuntime: FATAL EXCEPTION: main Process: com.app.memoeslink.adivinador, PID: 22813 java.lang.Runti...
asked by 10.08.2017 / 22:52