Questions tagged as 'java'

2
answers

Simple authentication example with level without hibernate and spring

I would like a simple example of user authentication. I already have the table in the database, which contains the user data and the level (Administrator, common user). As I'm running out of time to tinker with Hibernate and Spring, I want...
asked by 21.05.2014 / 04:59
2
answers

need to return name when clicking list

I'm recreating one of my activities to work with Action Bar, with much help from Mr. @Wakin I was able to make it work: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.ge...
asked by 06.11.2014 / 13:56
1
answer

Error in method of transforming text file with nodes in AVL to be used in GUI

The idea of generating the graphical interface will be through a python file so I have to generate a text file in the following format: 4 [2] [6] 2 [1] [3] 6 [5] [8] 1 [] [] 3 [] [] 5 [] [] 8 [7] [9] 7 [] [] 9 []...
asked by 07.11.2014 / 03:27
1
answer

Error: Using 1.7 requires compiling with Android 4.4 (kitkat); current using API 16

Using a switch case with a string . Eclipse has reported an error and has offered to switch to compiling 1.7 . I accepted, now it gives error and I can not return. How do I resolve this? I want to change the languag...
asked by 05.11.2014 / 13:07
1
answer

socket failed: EACCES (Permission denied)

I was creating an Android project that made him communicate with a Windows machine via Sockets, the machine being the server, and the mobile device (Samsung Galaxy S3 MINI) the client. I created a hosted wireless network on the computer, and...
asked by 10.05.2014 / 22:49
1
answer

Establish at least one number in EditText

My question is: Is there any way to prevent the click of a button if an EditText has no number? I was able to limit minimum and maximum values (0 to 255), but I could not find a solution to this problem. Because "" is not an integer value, by...
asked by 09.05.2014 / 19:56
1
answer

Run JSF on Jetty 9

I'm having trouble running JSF on Jetty 9. Is there any specific jar within the application or some configuration in Jetty?     
asked by 14.05.2014 / 14:49
2
answers

Error calling method on fragment

My code below was to do a simple task by clicking on the switch to another screen, but it is giving an error:    Can not make a static reference to the non-static method   callCast () from the type MainActivity I already changed the ch...
asked by 21.03.2014 / 21:04
1
answer

Get client's ip on request

I have a REST service in my application and I want to get the IP of the client that is calling, use Spring-mvc in this project, here is the source of the service /** * HttpServletRequest. */ @Autowired private HttpServletRequest request; @R...
asked by 17.03.2014 / 17:53
1
answer

Error - no such column

03-21 07:25:47.740: E/SQLiteLog(796): (1) no such column: name1 03-21 07:25:47.750: E/data(796): Error while searching contacts: android.database.sqlite.SQLiteException: no such column: name1 (code 1): while compiling: SELECT _id, name1, name...
asked by 21.03.2014 / 17:42