Questions tagged as 'java'

1
answer

Error loading image from path with BufferedInputStream

Good morning, I'm trying to send an image from JAVA-ANDROID to a server via ftp, this is the code I'm using within an asynchronous task. try { FTPClient ftpClient = new FTPClient(); ftpClient.connect(InetAddress.getBy...
asked by 09.02.2018 / 20:50
1
answer

Drag marker in Android Google Maps

It is possible to do this in android studio, I have my map but I need the user to drag the marker to specify something. I know how to get my current lat and lng but how can I implement the drag?.     
asked by 05.12.2017 / 10:51
1
answer

How can I add a second navigation drawer?

How can I add a second navigation drawer Convert part of onCreateOptionsMenu to navigation drawer public class Inicio extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener {...
asked by 30.11.2017 / 21:31
1
answer

Parameters between URL's

Good morning! I can not find the solution to the next problem. I have an Intranet, which consumes another project (Web page) and shows it inside an IFrame. The question is: How can I retrieve the parameters of the URL of the intranet page...
asked by 19.12.2017 / 19:09
2
answers

Do not load me the Bootstrap styles

good morning, I have an HTML template that uses bootstrap, but I do not load the styles I'm using NetBeans 8 and the App Engine server. So I am creating the references: <link href="../src/java/font-awesome/font-awesome.css" rel="styleshe...
asked by 19.12.2017 / 16:48
2
answers

Exit nested while loops in java

I have the following structure: do{ do{ if(){ } }while(); }while(); All this within a method. If the condition of the if is fulfilled, I want to leave the 2 loops do while, but continue in the function. I tried retu...
asked by 19.12.2017 / 19:59
2
answers

how to fill a jtable from sql

I have a graphical interface that includes a jtable, at the time of registering, it runs normally, only in the jtable it shows me what I have registered repeatedly but in the database it is registered only once. Is there a way to fix it so th...
asked by 19.12.2017 / 21:28
2
answers

How can I calculate the distance between 2 points on Google Maps V3

Good afternoon. I am using the Google Maps API which I must trace from any location and trace a line to my geolocation. This I have already accomplished, but the problem is that when I perform the calculation using SphericalUtilities....
asked by 11.11.2017 / 22:36
1
answer

Pass an instance of a class with data to another class in Java

I have a class with GETTERS and SETTERS of the attributes and I want to pass the instance of this class with the information it has stored, to another class in order to use its data with the GETTERS. public class Data_user package datos; p...
asked by 09.11.2017 / 01:13
2
answers

Get a response from USSD Android Studio

I am currently facing the problem of getting the answer from a USSD call, I have researched a bit and found that just from the API 26, OREON, Android I get an api called TelephonyManager.UssdResponseCallback link that the code to execute...
asked by 25.10.2017 / 16:23