Questions tagged as 'java'

2
answers

How to create Application Error in Production (Client)

I'm looking for a way (efficient and practical) to globally capture all Exceptions not handled by the application (the ones that take the application to crash or "The application stopped working!") p> Questions: Is there any method...
asked by 23.04.2015 / 17:00
1
answer

How to alphabetically and numerically sort the same list?

In my college work I should make a list of the type of a class I have created and should sort it in two different ways, one in alphabetical order and one in average. Also other information is that alphabetic ordering should not be standard, but...
asked by 20.04.2015 / 03:27
1
answer

How to send data from a Vector to another Activity?

I'm a beginner, and I have the following question: I'm inserting text from a EditText into a array , and I want to get it in another. I'm doing the following: String[] pedidos = new String[11]; And then, when you click the "sav...
asked by 25.11.2015 / 07:01
1
answer

Map opens before picking GPS position

I'm studying programming for Andriod and I came across a feature that I just do not know anything about, which is ordering the functions ! please could anyone give a light? I explain, in my example I call  - API to communicate with GPS,...
asked by 23.01.2017 / 08:17
1
answer

Redirect output from System.out.println to JTextArea

I'm having trouble making this redirect, let's explain. I have a class called Engine.java , this class is responsible for doing my processing and it has all System.out.prints of the process, the problem is that now I created a windo...
asked by 16.02.2016 / 20:46
1
answer

Matrix operations with no set size

I need to perform operations on an array that will be passed by parameter, the problem is that its size is not fixed so I do not know how to loop to go to the end of a column or row for example. private static void calcularMatriz(int[][] matri...
asked by 22.08.2015 / 23:46
1
answer

How to Encrypt with the AES Algorithm using 128-192-256 keys in Java

I need to do an encryption with the AES algorithm by testing the runtime according to the sizes of the keys (128-192-256), but I can not find how to toggle the size of the key to be generated by the system, since my code returns that the key siz...
asked by 15.09.2015 / 21:47
1
answer

Problem with log4j configuration

How do I configure log4j properties? In my application, I'm getting the following message:    log4j: WARN No appenders could be found for logger (org.docx4j.jaxb.Context).       log4j: WARN Please initialize the log4j system properly.      ...
asked by 12.08.2015 / 15:11
1
answer

How to access SDCARD on Android 4.4 (API 19)

I currently have an application running on 100 phones with android 2.3 (set by the client), but they are switching phones to 4.4 and I use sd card to store and then display as a product listing. The problem is in Android 4.4 I can not...
asked by 19.06.2015 / 19:22
1
answer

JSONException being thrown on Twitter search - Java

I have an algorithm that does a search for old tweets on Twitter. The application ran normally for a few days, but out of nowhere it started throwing an exception. Code: public static List<Tweet> getTweets(String username, String sinc...
asked by 05.07.2015 / 17:17