Questions tagged as 'java'

2
answers

Read JSON by OpenHttpConnection in a Public IP

I have a problem trying to read a JSON by OpenHttpConnection on a Public IP. I tried the JSON link and it is perfect, but when I try to read the JSON I have the following message by Log: D / NetWorkSecurityConfig: No NetWork Security Confi...
asked by 13.03.2018 / 15:58
0
answers

Error: The fragment is visible when I return to the previous fragment

I have 3 fragments 1 fragmentListArticles ...  in this fragment I obtain data from a webservice and fill a Recycler View .. when clicking on an item it takes me to the second fragment fragmentDynamicPurchase in this I confirm an order and fill a...
asked by 28.03.2018 / 16:36
1
answer

How do I add only the options A and I display the total and so on (are 4 options)

<html> <h1>TEST DE PERSONALIDAD</h1> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script> function Suma(formulario){ totalA=0 totalB=0; nombre=""; for(i=0;i<f...
asked by 28.03.2018 / 17:19
1
answer

Java Modify a property to perform a @Test

By doing some Test in Java I find two problems when trying the function to obtain a file from a folder that is in the properties of the application: The first problem is that when doing the @Test it does not recognize the value extract...
asked by 19.03.2018 / 14:27
0
answers

Save data type many2one in Odoo using the library aXMLRPC android

I'm working on an Android project that consists of connecting an Android application to Odoo using the library aXMLRPC . The application will allow the user to create a sale ( sale.order ). But now, I have the object (...
asked by 19.03.2018 / 17:02
0
answers

I need a "listenerstopplaying" when playing music with Mediaplayer, JavaFX,

I want to make the MediaPlayer of the JavaFX library play one song after another. The problem is that I have to determine which song is played next when it finishes playing one, for that reason I need to execute a code when it finishes playing....
asked by 19.03.2018 / 17:36
0
answers

Insert only new data in BBDD

My problem: 1-I have a REST API that I use a lot of data to insert in an internal database (Process that lasts for hours). 2-The API dumps whole tables or filtered by an attribute (Select * from table where attribute = parameter): ex: www....
asked by 10.03.2018 / 15:20
0
answers

Choose what amount of core I want to use

It could help me in something, I need to execute this code but choosing how much core I want to use from my pc, this is to determine the search time, for my case I have four core and I need to see what time it takes to search for a file. Than...
asked by 26.03.2018 / 21:55
0
answers

Label does not return the value extracted from a database

I'm trying to get a value from a base by means of a query and show it through a label all this happens at the click of a button try{ String carne = txtcarnet.getText();//Se crea un string que captura el carnet ingresado Restablecer_Co...
asked by 26.03.2018 / 21:15
0
answers

Problem Simulator / Smartphone in Android Studio

I am developing an app for my final degree project and I have a particular problem; in the simulator of Android Studio the app runs without problems, however, when I try the same app on my phone it does not run well, I've tried it on several mod...
asked by 14.03.2018 / 18:56