Questions tagged as 'java'

1
answer

Java Object Array [closed]

I have a doubt regarding the arrangement of objects, in the attached image I have the declaration of the arrangement, then I charge with the set method, but when it comes to returning the loaded arrangement it does not return any value to me,...
asked by 31.07.2016 / 11:17
1
answer

Compile an Eclipse Project with only the console and javac

Someone has the idea of how to compile an eclipse project, with only the command line, I have usually done it with Ant / maven or gradle, but now they have requested me at a lower level with direct commands to use it directly on server. Somet...
asked by 11.08.2016 / 20:38
2
answers

FATAL ERROR when launching an activity on Android. SettingsActivity.class

I have a problem when launching an activity, I get this error.    E / AndroidRuntime: FATAL EXCEPTION: main                     Process: jhon.casique.baccus, PID: 2424                     java.lang.RuntimeException: Unable to start activity C...
asked by 20.10.2016 / 11:54
2
answers

You lose the dpi of the image when you lower the resolution

I have the following code. What it does is take an image and lower the resolution because I need it to weigh less. but the problem is that you lose the original ppp or dpi of 200 to 1 and must keep the same when downloading resolution public v...
asked by 14.08.2016 / 22:11
1
answer

How to pass a Java String to Javascript

It is a java web application project. I want to put a bookmark using google maps, I have my jsp where I show it and I have the javascript where I use the api. I have a java where I make the connection to the bd MySQL and another where I make the...
asked by 27.10.2016 / 02:12
2
answers

Pass parameters to the Constructor or a method

My doubt is as follows, should I pass the parameters obtained from a JTextField to the setter methods of the User class? or pass them directly to the constructor of the User class, what would be the difference? //Esta es la clase registro pero...
asked by 16.10.2016 / 04:29
1
answer

How to search the path of an app by its name?

I want to search the path of an app by its name, I searched and researched and the PackageManager method seems the ideal but I do not know how to adapt it so that it does what is desired.     
asked by 19.10.2016 / 18:53
2
answers

Exception: java.util.InputMismatchException

Good morning Community: I have an employee.dat file with the following content (the correlative numbering in the left margin is not part of the contents of the file): employees: 3 Carl Hacker | IT Manager | 75000.0 | 1987 | 10 | 15 Ha...
asked by 20.10.2016 / 15:15
1
answer

Problem with FirebaseListAdapter, the list does not appear

Why do not I see anything in the emulation with this code? Firebase rootRef = PantallaPrincipal.rootRef; ListView lista_cursos; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);...
asked by 24.05.2016 / 01:11
2
answers

Click on an item in a listview on Android?

I'm trying to make the onItemClickListener of a list that is updated through a database in android studio but I can not do it. What happens is that I'm doing something like that link but it does not let me in any way get the position...
asked by 17.05.2016 / 10:08