Questions tagged as 'java'

1
answer

Get the value of a variable in SeekBar - Java / Android

I am a beginner in Java / Android and am developing an application with image processing. At the moment I already have the application working with the necessary filters. In case I have: Canny(edges, edges, thresholdCanny, thresholdCanny2);...
asked by 06.12.2018 / 13:10
1
answer

Conversion error when setting value '' to 'null Converter'. - JSF

I am doing a program that registers and relates a customer to a credit card. I'm using JSF and PrimeFaces. It is not necessary to use the Database, so I am storing the data in an ArrayList myself. Basically, when creating a new card I need to...
asked by 20.11.2018 / 17:57
1
answer

FragmentActivity on swiper tab

I am not able to insert a FragmentActivity to swiper tab: @Override public Fragment getItem(int position) { switch (position) {case 0: return new HomeActivity(); case 1: return new ListaBancada();...
asked by 01.06.2014 / 21:56
1
answer

Problem when performing a button event in Java Swing

I have a problem making an event on a button (using textfield to set values) and calling a method to calculate the IMC (I have not yet finished this method). Code: (screen.java) package calculadoraimc; import javax.swing.*; import java.awt....
asked by 21.11.2018 / 11:06
1
answer

Android with external barcode reader

Hello, I have a screen with fields for typing and a specific field where I will use the external barcode reader. The problem is that the scanner turns off the virtual keyboard. Any ideas on how to leave both assets?     
asked by 28.05.2014 / 19:41
1
answer

IReports, generate variable number of subrelatorios

I'm using Jasper for reporting, I use IReport to build Layouts. I have a main report that has a sub report (the reason for my problem), my main report gets a list of objects, I need to generate one subrelatorio for each item in this list and pop...
asked by 23.11.2018 / 19:24
1
answer

Go from Main Activity to Fragment

I'm building an app on Android and it will have among the various activities a fragment for user profile. The problem is that, from the selection of the profile, you need to go from the main activity to the fragment. But I'm having trouble wi...
asked by 27.11.2018 / 12:26
1
answer

Is there anything wrong with this code that sends a String to the server?

Because it is giving nullPointerException. I use the same OutPutStream to send to the server? public void envia(String minhastring) { HttpURLConnection conn = null; URL url = null; try { url = new URL( "htt...
asked by 01.09.2015 / 16:16
1
answer

HttpSession java

I'm trying to implement HttpSession in my code but this is giving an error in    request.getsession () that says    The method getSession () is undefined for the HttpRequest type My code import java.io.IOException; import java.util.L...
asked by 04.09.2015 / 17:17
2
answers

Cancel AsyncTask when choosing another menu item with Navigation Drawer

The Problem I'm developing an app that has a side navigation menu ( Navigation Drawer ) as shown in the figure below. Uploading some items from this menu requires an Internet request. Here everything works perfectly. When the m...
asked by 04.09.2015 / 13:15