Questions tagged as 'java'

1
answer

user_likes from facebook on android

Good morning I'm trying to use the user_likes permission in an android application, This is how I implement the request to bring the json with all the data protected void getLikedPageInfo(LoginResult login_result){ Log.v("facebook","fac...
asked by 09.07.2018 / 18:54
2
answers

Problem when calling with a button in an android widget

I have the following problem: I have created a widget that contains a text and a button that says call. I have added the permissions and the corresponding manifest, but even so I can not reach that by pressing the button, this one calls. this...
asked by 07.07.2018 / 20:43
0
answers

How can I consume a soap webservices from android that returns an arraylist of objects and pass them to a ListView?

I'm doing an android application and this has to be connected to a webservices that I did in netbeans that returns an arraylist of database objects and show it in a listview, I consume it with ksoap2 in android studio but I do not know how to do...
asked by 07.07.2018 / 20:15
0
answers

listen to everything that enters port 80 and based on the url redirect to different jsp

I need from an app (all this in java) always listen to what comes through port 80 and capture its url, once I have the url I must redirect to a jsp. from an application in aws when an error occurs or the client enters a site that I do not wan...
asked by 11.07.2018 / 13:37
1
answer

How to open dialog to know if you want to close the app (android studio)

I'm doing a web app, I've been documenting and I can not find an easy and effective way to open a dialogue when the user is about to close the application and ask him if he really wants to close it or not. I'm using a webview. Thanks for t...
asked by 11.07.2018 / 11:10
0
answers

Error when registering events

Well, that's it, I'm a bit of a rookie in this and I can not fix it. public void registerEvents(){ PluginManager pm = getServer().getPluginManager(); pm.registerEvents(new Chat (), this);     
asked by 12.07.2018 / 17:01
2
answers

How to stop looking in an array when finding an element?

I have the following exercise: A restaurant has commissioned us an application to place customers in your tables. On a table you can seat from 0 (empty table) to 4 people (full table). When a customer arrives, they are asked how many they are....
asked by 04.07.2018 / 16:28
0
answers

Upload an image to MySQL by uploading the image through an HTML form via Java

I have a form to update the information of the profile, in this case a new password and the image. The fact is that changing the password works but upload the image to the database no, I already have a medium blob column in my database for the i...
asked by 04.07.2018 / 21:18
0
answers

Help with socket error 'connection refused: connect'

I'm trying to make a client-server application, this is the client code: try { Socket socket = new Socket("192.168.1.66", 9999); PrintWriter salida = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()), tr...
asked by 04.07.2018 / 19:28
0
answers

Data Structure

I request a tip of how I could store in database a block of text that is composed of several characteristics, which I have to extract for certain types of query. nombre: carro, numero de llantas: 4, numero de puertas; 2, motores: 1, capacidad...
asked by 04.07.2018 / 19:41