Questions tagged as 'java'

1
answer

How to store data in RAM and make it available to any module or class in my application?

There are several ways to store data for a given application, and some of them are: Disk Storage (HD). It can be a text file, XML, or a database file of some DBMS. Cloud Storage. It has some services that allows store data for a Cloud appl...
asked by 12.06.2016 / 15:14
0
answers

Android - Dark VideoView in Dialog

I'm having a problem while viewing a video within a Dialog using VideoView. The video plays perfectly but the region within this Dialog is too dark. I tried several things but it did not work. Code: Dialog dialog = new Dialog(MainActivity.t...
asked by 17.12.2018 / 15:18
1
answer

Jsoup in Android

I'm having trouble running my Android application with Jsoup. It is a simple example, but it is returning nothing. Java class: import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import android.os.Bundle; im...
asked by 08.03.2014 / 03:49
1
answer

SimpleCursorAdapter java display images

How do I display images in layout with SimpleCursorAdapter? My .java code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.listarordens); SQLiteDatabase db = open...
asked by 06.05.2014 / 03:22
1
answer

Moving circle on screen with thread and jFrame's paint method

Studying the drawing method of JFrame in the case paint and wanted to make a circle move on the screen using threads , but the circle does not move right. Maybe I would need a movimenta method to define where I want to put...
asked by 28.04.2014 / 05:07
0
answers

Success, but given is not written to the database. Android - Volley

With the following code I get a success message, but given it is not written to the mysql database. public class Main2Activity extends AppCompatActivity implements Response.Listener<JSONObject>, Response.ErrorListener { EditText edtDoc...
asked by 17.12.2018 / 21:25
0
answers

Jasper is duplicating data from an ArrayList

I have a problem with jasper soft studio , my report is taking the data and multiplying at the time of filling the report, I am using 3 lists to fill it, I will send the code and my report. public void imprimirOrcamento() throws JREx...
asked by 17.12.2018 / 23:25
0
answers

Android - How to draw pixels using OpenGL ES 2.0

I have a CHIP8 emulator written in C ++, and I am making a port for android, the desktop version uses SDL and the pixels are drawn with SDL_Texture , however I do not have this feature within my reach, looking this source code I noticed...
asked by 03.01.2019 / 15:37
0
answers

I need to return a 12-position token in Base64

I need a token of 12 positions in Base64, so when I generate a hex it has exactly 32 digits. At first I convert to byte [] byte[] tok = Base64. decodeBase64(preToken.getBytes()); The idea is that with this token I generate a hexadecimal...
asked by 14.12.2018 / 13:42
1
answer

How to get values from a row that are in a jstl list and send into their respective input text on the same page jsp?

Good afternoon guys! I'm using "Jsp, servlets, and jstl". I have a list where I have a link called change, when I click I get the values of that row from the list and send it to the same jsp where it has a form with the fields to be made the cha...
asked by 13.12.2018 / 20:51