Questions tagged as 'android'

1
answer

Is there a way to avoid the size specifications in the Android layout?

I work with Android on a day-to-day basis, and I'd like to avoid specs of size visualizations. For example: If I make a TextView , I have to assign Height and Width properties, like this: <TextView android:id="@+id/activity_lbl"...
asked by 04.02.2014 / 20:41
2
answers

Updating Listview when I come back from a screen

I have a ListView that has a button that goes to another screen that when filling that screen and clicking the save button, it returns the ListView but I did not find a way to update this ListView. Follow the codes: ListActivity public c...
asked by 02.02.2015 / 17:52
1
answer

How can I have this marker that blue in my application?

I wonder how to implement this marker in my app?     
asked by 16.10.2015 / 18:07
2
answers

Infinite listview on android

I have an app that consumes a web service, but I have a generic call that searches all users and this is taking too long because I have several records, I want to do so the user goes down the screen and there is more data in the listview , but m...
asked by 31.07.2015 / 00:55
2
answers

Convert float value to String

I'm programming for android, and I'm trying to display a float value found by the getX() function on a Toast, which only displays String values. How do I do this conversion?     
asked by 02.07.2018 / 01:03
2
answers

Check connection at any time [duplicate]

It's the following, I'm creating app that depends on the internet connection for most services. To make it more dynamic, I thought I'd do something like the YouTube app. In the youtube app it warns you almost instantly that the application is...
asked by 25.04.2018 / 05:00
3
answers

Preview Android stopped working after update

I work on an android project and after upgrading to Android Studio 3.0, my project started to give trouble. The preview of my activities has stopped working, although the app is build and I can install it in the mobile / emulator, I can not s...
asked by 08.11.2017 / 13:30
3
answers

How to show icon in action Bar when item is in overflow?

I wanted the called item to appear on your side as well: Theresultyou'dexpectwouldbethis: Activity code with the help of @Alexandre Strevenski: import android.app.Activity; import android.content.Intent; import android.os.Bundle; imp...
asked by 23.10.2014 / 12:09
2
answers

Problem in database connection class

I'm having problems with my MySQL database connection class in Android Studio. Error: 10-16 15:04:02.872 532-532/com.example.dev.mbstore W/dalvikvm﹕ VFY: unable to find class referenced in signature (Ljavax/naming/Reference;) 10-16...
asked by 16.10.2014 / 20:41
1
answer

Erase text in the EditText field

How do I delete text after submission. enviar.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String value = editText.getText().toString(); //push creates a...
asked by 19.01.2018 / 14:09