Questions tagged as 'java'

1
answer

Buttons + Intents with multiple destinations

From an activity with data from one sensor and two buttons, one to show graphs and another to show its parameters. Question : How to do it so that it takes to the corresponding activity when a click is done on one of the buttons. It seems...
asked by 28.08.2016 / 18:10
1
answer

Handle an SQL type from java

I have a plSql that returns a type of data. How can I handle these from java, I mean, I make the call to the PL from java, but I do not know how to pick up that type of response to use their fields.     
asked by 25.08.2016 / 14:59
2
answers

Android studio Error converting result java.lang.NullPointerException: lock == null [closed]

I was finishing programming a connection to a remote database, but as soon as I hit the app, it loads a few seconds checking the connection and closes the app, I do not know the reasons, I have downloaded several missing libraries and othe...
asked by 24.08.2016 / 23:10
1
answer

Difference between DataSource and DriverManager

As the title says, I want to know what is the difference between DataSource and DriverManager in a web application using Tomcat. So far I know that DataSource serves as a pool of connections to a database while DriverMana...
asked by 19.09.2016 / 21:02
1
answer

Convert from JPG to TIFF in Android (Java)

As the title says, I wonder if someone has converted a bitmap or JPG to TIFF in android. Thank you in advance. Greetings.     
asked by 09.11.2016 / 18:21
2
answers

getFragmentManager null the second time

Good morning, I've been programming on Android for a few weeks and I'm having some problems with using getFragmentManager . I have read post about the termination of activities and this is what I have made clear: Stack Over Flow Quo...
asked by 03.11.2016 / 10:51
2
answers

Get the next number using JSF + PrimeFaces

I have the following problem, which I do not know how to solve. I want that when making the registration in a table I already propose in the view a following number. I managed to arm the query, but for some reason it does not refresh in the view...
asked by 21.09.2016 / 19:31
1
answer

Call Class Magnetic Sensor in activity main Android Studio

Good evening experts I have the following code from a class of type Main that uses the sensor Magnético of Android and shows the values in textView : import android.app.Activity; import android.hardware.Sensor; im...
asked by 21.09.2016 / 23:54
1
answer

FATAL EXCEPTION: main. Error in RecyclerView adapter

When I try to run the application in Android Studio I get the exception FATAL EXCEPTION: main, in the adapter class of a RecyclerView public class PetAdapter extends RecyclerView.Adapter<PetAdapter.PetViewHolder>{ //Linea del error priv...
asked by 20.08.2016 / 12:34
1
answer

How to handle a variable date within a loop

Problem I take data from an excel xls document (use jxl libraries), the data goes to text, and the dates must be converted to YYYY-MM-DD. But when I read them with the application, it takes them in the following way (length of the date v...
asked by 22.08.2016 / 05:49