Questions tagged as 'java'

1
answer

Convert string in timestamp to date java

How to convert string in timestamp generated by php with the time () method generated for example: 1504541885 for Date in java     
asked by 04.09.2017 / 18:23
1
answer

Return value in string with firebase

In Android Studio I have the following code in MainActivity package br.alan.com.firebaseapp; import android.support.annotation.IdRes; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget....
asked by 31.08.2017 / 19:43
2
answers

problem of objects on top of each other in Android Studio

I'm learning to create android apps, but face-to-face I get an error when I test the app on my phone, and text gets on top of the other, or any object I add. inAndroidstudiolookslikethis: xml:<?xmlversion="1.0" encoding="utf-8"?> <a...
asked by 04.09.2017 / 23:33
1
answer

How do I get the ID of a user in a ListView and use it as a variable in another Activity?

I'm doing my TCC and I'm having a hard time getting the ID of some ListView user and using it in another Activity (The intention is that when the user holds the click on someone else on the list, popup ) asking if he wants to send a friend reque...
asked by 01.09.2017 / 03:51
1
answer

Socket with UTF-8

I'm doing a chat that will run on the network (internal), I just can not make the accents and "ç" issue work. It works by running in the IDE but if I have it done .jar and run (on any PC) it does not work accents, it gets strange characters....
asked by 30.08.2017 / 17:54
1
answer

Error calling service "auto-complete" [closed]

I'm finalizing a system and now the need to present a user field with autocomplete to the user. Then I had the idea of using autocomplete of the dictionary michaelis . If you access the SITE will see what you have in the f...
asked by 28.08.2017 / 18:13
1
answer

ArrayList, Collections

I have a list of exercises on ArrayList, but only the first question has left me with several doubts: Implement an interface with abstract methods getNome, getValor, which should be implemented in the concrete Currency class. The currency cl...
asked by 30.08.2017 / 20:54
1
answer

Error when trying to implement JTextArea in JTable

I'm trying to use this JTextArea in some columns of my JTable , but it's giving something wrong. I know it's wrong, but I'm using DefaultTableModel . public class TextAreaCellRenderer extends JTextArea implements TableCellRe...
asked by 10.01.2018 / 12:48
1
answer

Error with unexpected token JPQL

I made a select JPQL but I'm having this error: Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: where near line 1, column 151 [select pes, pEnd from digifred.model.global.Pessoas pes, digifred.model.global.Pes...
asked by 12.01.2018 / 17:16
1
answer

How to share the contents of a listiview?

Hello, I have a question. I am making an APP, in which it has a listview that has texts and an image. I'd like to know how I can share the content that the person clicked on. Here is my code: // DECLARANDO COMPONENTES private ListView...
asked by 14.09.2017 / 16:58