Questions tagged as 'android'

1
answer

How to show the old android timePicker? the one that appears only the numbers

I'm using a code from the android documentation itself to create the timepicker as a dialog, but it's popping up like this AndIwantittoappearlikethis ClassthatcreatestimepickerpublicclassTimePickerFragmentextendsDialogFragmentimplementsTimeP...
asked by 29.03.2017 / 01:02
1
answer

Environment Variable ANDROID_HOME Linux [duplicate]

I'm having trouble with the ANDROID_HOME environment variable, whenever I try to run the command to run an app on the emulator (or connected cell phone), this error message appears Error: Failed to find 'ANDROID_HOME' environment variable. T...
asked by 05.06.2017 / 14:31
1
answer

How to open a dialog box to search for a file on Android? A FileDialog

My question is about opening files in my Android application, such as uploading image from mobile to the server where I first need to choose the image on my phone. I would like to know what I need to use to open a FileDialog , as in C # if...
asked by 03.06.2017 / 04:52
2
answers

Change the color of the NavigationDrawer menu?

Change the color of the NavigationDrawer menu, the one you pull a drawer and the menu ]1     
asked by 23.03.2017 / 21:13
1
answer

When importing the android project is giving error in java.lang

Good afternoon, I installed the IDE android studio in linux and opened the project I'm doing, but this error giving in gradle files, in Windows was working without error, it was only coming to linux that started to give these errors .. I tried t...
asked by 19.04.2017 / 22:43
3
answers

Random numbers in Android Studio

This code is generating random numbers at 6% with% different, but I can not code to prevent these numbers from repeating. package com.example.kelvin.myapplication; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; imp...
asked by 09.05.2017 / 04:34
1
answer

Thread does not execute

Adding BreakPoints I noticed that the Thread below is not executed. I do the ZIP code search using HTTP, returning a JSON, via the viacep.com webservice. if (cep.length() == 8) { final ProgressDialog dialog = ProgressDialog.show(Inicial.t...
asked by 22.03.2017 / 22:27
2
answers

Help with sounds in LibGdx

I am using this library for games, and wanted to know how I could do to put sounds to play during the game and with pre-set time?     
asked by 07.04.2017 / 03:59
1
answer

How to use gif on Android?

I've tried to use GIF in ImageView , but it does not work, is there any way to get Android to accept GIF images?     
asked by 03.04.2017 / 06:32
1
answer

Central alignment appears correctly in the preview of the activity, but not in the execution of the app?

I placed center alignment for all textView and activity preview, still in android studio, all right: ButwhenIruntheappitdoesnothappen: Evenifyousetthelayout_widthoftextViewstomath_parentsothattheyhidethewholeextensionofthedeviceinthehori-zon...
asked by 20.03.2017 / 00:06