Questions tagged as 'android'

4
answers

Removing a specific space in a string

I'm having trouble implementing replace in String in Android Studio. I need to remove some white space in String . Real examples: 8 hrs 2 mins 1 day 2 mins I need the text to look like this: 8hrs 2mins...
asked by 16.12.2015 / 12:21
2
answers

Why does not my image appear when I run the app?

I have the following xml code in Android Studio: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:app = "http://schemas.android.com/apk/res-auto"...
asked by 27.10.2016 / 02:38
1
answer

Input type file does not work in webview

I have an HTML page that has a form of uploading images in Chrome on your pc or in any browser works but in my application it has a WebView that opens this page then clicking choose file does nothing. Is it possible to arrange thi...
asked by 16.01.2017 / 17:36
1
answer

Can not update my app on google play?

I know that it is necessary to change the version number, but when I make the change and try to generate an apk it gives an error and shows me a message ... Error: XML version "2.0" not supported; only XML 1.0 is supported.     
asked by 22.02.2015 / 02:52
2
answers

Saving a list of elements with Shared Preferences

I'm creating a contact list and would like to save this list with SharedPreferences . Example: public class MeusContatos extends Activity implements OnClickListener { int pos=0; public static final String PREFS_NAME = "Preferences"...
asked by 23.04.2015 / 05:30
2
answers

AsyncTask x MultiThreading

When it is more advantageous to use AsyncTask, and when to use Threads. For example: Home Download some file (ex: JSON). Which would be more advantageous in this case and why ??     
asked by 06.05.2014 / 14:58
1
answer

How to make an Expandable ListView?

I want to make a ListView only custom, clicking on it will open a tab below to show more information and the next item of ListView will automatically go down a bit to the open tab, follow the example: / p> In the image we no...
asked by 26.12.2014 / 14:31
3
answers

Screen Inheritance - Android

Wanted creates a base (Activity) screen for the android app I'm developing so all other screens inherit from this base. Therefore, the screen would have an area reserved for the top of the page, a central region where the content will be variabl...
asked by 23.02.2015 / 12:29
1
answer

What is ViewHolder Pattern?

I am implementing a RecyclerView on Android and I noticed that it is necessary to create a class called ViewHolder . This class seems to be a design pattern called ViewHolder Pattern, and my doubts arise exactly at this point....
asked by 17.09.2017 / 17:40
1
answer

How to put a logo on the Toolbar?

I was searching here and found something very interesting, the company logo on Toolbar . How do I put a company logo on Toolbar ?     
asked by 28.03.2017 / 21:08