Questions tagged as 'java'

1
answer

How to take the name of the elements of a folder in an orderly way JFileChooser

I'm doing a program which can choose a folder with JFileChooser and that in the console shows the name of the files in the folder in an orderly way. JFileChooser selecto = (JFileChooser) e.getSource(); String comand = e.getActionCommand();...
asked by 11.01.2018 / 23:55
0
answers

Error "getoutputstream () has already been called for this response" when opening pdf

I have this code that what it does is open a PDF that is in a route. When opening this file, it actually opens it, but in console it shows me the error of getoutputstream() has already been called for this response and it is annoying beca...
asked by 11.01.2018 / 21:14
1
answer

Error compiling in Android Studio Unable to merge dex

Hello everyone , I'm trying to compile my app, but it shows me this error Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > java.lang.RuntimeException: java.lang.RuntimeException: com.android.bu...
asked by 29.12.2017 / 23:01
1
answer

ERRORS can not resolve symbol REQUEST_LOCATION

I'm getting the following errors: Error 1: can not resolve symbol REQUEST_LOCATION, Error 2: FusedLocationApi, appears crossed out. when I try to request permission This is the code fragment public void onConnected(Bundle bundl...
asked by 30.12.2017 / 16:38
1
answer

LocationServices.FusedLocationApi ... ERROR

AS shows me an error in the next line, the problem is that it causes my app to stop, and when I go to the activity in java it appears underlined in red, I do not know why because LocationServices.FusedLocationApi.requestLocationUpdates(googleA...
asked by 30.12.2017 / 13:46
1
answer

Why when you print an array (array. [variable] .length) does it return the columns?

public static void main(String[] args) { int[][] tabla=new int [5][3]; System.out.println(tabla.length); for (int filas = 0; filas < tabla.length; filas++) { for (int columnas = 0; columnas < tabla.length; columnas+...
asked by 29.12.2017 / 19:31
0
answers

Volley, Custom Header

Currently I have a problem I find the following code to make a POST call public void pendingPaymentsCollections(final Context context, String request, final Response.Listener<GetPendingPaymentsCollections> listener, final Response.Error...
asked by 29.12.2017 / 16:57
2
answers

How to get the number of rows and columns in a matrix

my question is the following, I want to get the number of rows and columns of my matrix , to print its content on screen, but in the for no I want to place i < (number of elements that you put), I would like something like i < rows.leng...
asked by 27.12.2017 / 20:30
1
answer

Project Android studio crashea app when finished listview load

good afternoon community, and happy year I would like to ask why when I finish loading a listview through a service in my project, instead of showing up, the app crashes directly? the test I'm doing with a G4 plus motorcycle (if you have somethi...
asked by 03.01.2018 / 21:41
1
answer

Events on itunes

Is it possible to do that when someone makes the payment of a subscription to my app through itunes this can connect to an endpoint and send me the information of the purchase in a Json by body as do the webhooks of stripe ? I have researched an...
asked by 03.01.2018 / 17:26