Questions tagged as 'java'

1
answer

Error generating a JSON object

I'm trying to create this object: { "schema": [ "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:core:2.0:User" ], "endereco": "Rua 0"...
asked by 21.11.2017 / 17:15
1
answer

Find custom ListView values

I have the following ListView that was generated with a custom adapter : Iwouldliketoknowhowtolookupthevalues(date,time,history,id,etc)oftheitemwithsetOnItemLongClickListener,asIneedthesevalues(oratleasttheidvalueoftheitem)tosearchth...
asked by 05.02.2018 / 15:03
1
answer

I can not find solution to the "java.lang.NullPointerException" Error - Android Studio

The following error appears: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Object.equals(java.lang.Object)' on a null object reference at novapetbeta.platypus.com.novapetbeta.Principal$6....
asked by 12.11.2017 / 15:00
1
answer

How do I get the value returning from console.log (results [4] .geocode) to use when comparing my if?

var init = [iAppLib.getPersonalBits(), iAppLib.getGeoCode() ]; var codes = false; var gcOk = new Array("BRH04700","BRH04600","BRH00200","BRH04500","BRJ01400","BRM00100","BRM00200","BRM096...
asked by 13.12.2017 / 12:56
1
answer

6 build path entries are missing in eclipse

When reinstalling eclipse and importing my project back that was cloned from gitHub into a newly formatted machine there was an error and my project does not compile, it gives me a nonsense error on the console. What I saw was that some librarie...
asked by 15.12.2017 / 14:26
1
answer

Script for Telnet

How to create a script with pre-set commands for Telnet? In the company where I work, we use Telnet daily to configure ONUs, however, because we do not have a programming team, it is a very manual and repetitive task, because we always give the...
asked by 21.12.2017 / 22:34
1
answer

HttpURLConnection returning empty [duplicate]

Message    Attempt to invoke virtual method 'int java.lang.String.length ()' on a null object reference Call JSONArray data = new JSONArray(getHttpGet(url)); Code: public static String getHttpGet(String url) { String re...
asked by 31.10.2017 / 21:04
1
answer

How to center the title bar of the action bar and how to change its size?

JAVA package togglebutton.cursoandroid.com.togglebutton; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle save...
asked by 30.10.2017 / 23:14
1
answer

Listview in another Activity

I have a Listview in my activity main when I click on a button, it adds data in my Listview , so everything is correct. How do I show this listview to another activity ? I show other data ( EditText ) wi...
asked by 16.11.2017 / 17:15
2
answers

Image within a ScrollView is blank on one device but appears normally on another

I have an AlertDialog whose content is a ScrollView with an image and a button inside. ScrollView works fine (I can "scroll" the bar), but the image does not appear (blank), although the button appears (scrolling to the end). Already on the cell...
asked by 20.11.2017 / 03:47