Questions tagged as 'android'

1
answer

Remove components at runtime in Delphi with Android

When creating a TButton dynamically at run time inside a TVertScrollBox. When I need to delete this button it will not disappear from the screen. This problem only occurs by running the application on Android (Windows works correctly). To del...
asked by 15.11.2017 / 02:48
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
2
answers

Android Studio and Google Maps API - Change Travel Mode

Oops, guys, what's up? So I'm developing an app using Android Studio and the Google Maps API. So I came across an issue that until then I could not find anything that could solve my problem. Here's how I'm working with Routes and by default Goog...
asked by 15.12.2017 / 17:02
1
answer

Android: Error when using Retrofit with XML Converter

I'm doing a simple example of Retrofit on Android with an XML converter, but every time I run I get the following exception: java.lang.RuntimeException: org.simpleframework.xml.core.ValueRequiredException: Unable to satisfy @org.simpleframewor...
asked by 31.10.2017 / 22:40
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

How to do this FloatingActionButton? [closed]

Hello, in my project I would like to be able to do a FloatingActionButton that by clicking on it it will disappear the background screen and displays above 3 FloatingActionButton with its respective caption on the side. As if the other 3 Floating...
asked by 17.11.2017 / 05:11
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