Questions tagged as 'java'

1
answer

Enable CORS on Jax rs (resteasy)

I am developing an example of a rest api using jax rs and get to the point of having to add support for CORS and be able to consume it from an app in React, the other day publish the REST API in an online server and when React consumption locall...
asked by 05.11.2018 / 20:21
1
answer

Send and receive data with Retrofiten AndroidStudio

I have a project that requires to send and receive data from a server. I have been recommended to use Retrofit , but I have only managed to send the data to the server in JSON form. To be honest, I have no idea how to implement data reception...
asked by 09.10.2016 / 00:03
1
answer

When implementing a navigation drawer and listview, the navigation drawer does not perform any action

I try to implement a navigation drawer and a listview in the same activity, but the problem is that only lisview (listview1) works for me. The listview of the navigation drawer (listview2) does not work: the menu is displayed but does not ex...
asked by 09.10.2016 / 07:10
3
answers

Array of native query to Java object

I have a problem when performing a native query, where the result in SQLManager is this: Query: "select p.cod_producto, p.deno_producto, array(SELECT t.cod_tanque FROM estagas.tanqu063 t where t.cod_producto = p.cod_producto) as tanks, array(S...
asked by 27.11.2017 / 12:38
3
answers

Event to detect loaded image GLIDE

I am using the Glide library to display images, like this: GlideApp.with(this).load("https://i1.wp.com/blogthinkbig.com/wp-content/uploads/2015/07/shutterstock_148972376.jpg").into(imageView); How I can tell when the image finished loadi...
asked by 05.12.2017 / 05:57
1
answer

Obtain total permissions to move files to the external card: microSD

I have been developing an app for a few months, and I still need to be able to move files to the external one from Lollipop onwards (Android M, etc). With the following line of code the user is shown a window for Show SD, mark and give in Sele...
asked by 27.06.2017 / 13:36
2
answers

How to use a HashMap with two Keys? [closed]

I need to create a HashMap whose access form is the combination of two keys.     
asked by 22.08.2017 / 04:17
6
answers

Error with words in Java - "error: incompatible types: String can not be converted to int"

Here is the code that gives error: int frase; frase = "hola"; And the error pointing to the last of these lines:    error: incompatible types: String can not be converted to int     
asked by 16.11.2016 / 14:22
1
answer

AlertDialog Android Studio

My question is this: Is there any way to make an AlertDialog always show (even if you tap outside the object or on the back button) until you click on the "accept" or "cancel" button?     
asked by 23.01.2018 / 11:56
2
answers

Problem with for loop, does not enter

I have a problem, I do not enter the for loop: for(int j = 0;j >= items;j++){ //No entra al for if(plugin.getPropertiesKit().getString("Kits."+allNameKits[w]+".name").equals(kit)){...
asked by 16.08.2016 / 21:04