Questions tagged as 'android-studio'

0
answers

Problem in editing interface of android studio XML layout

Build.grad (app) apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.example.karlo.menu" minSdkVersion 15 targetSdkVersion 28 versionCode 1...
asked by 15.09.2018 / 18:44
0
answers

Application does not display AlertDialog

Hello I'm developing an app in Android Studio that at some point instantiates an object called Mesa with input from user. For this, there is a button with the following behavior: if (botao_criar_mesa.isEnabled()) { botao_cria...
asked by 03.08.2018 / 01:12
1
answer

Marquee in TextView - Android

I would like to know if you can do the marquee effect on textview the text is too large, and I do not want to break line, I want the text to move from right to left horizontally. The text I want to manipulate and what contains the mus...
asked by 25.07.2018 / 18:30
1
answer

What code do I use to create a validation class in AndroidStudio?

I'm trying to create a class to check if the 2 EditText fields are filled, called Validacao . I wanted to call type: if (Validacao(TextoA, TextoB) == true) { executa código; I'm not sure how to code the class Validacao...
asked by 20.07.2018 / 01:35
1
answer

Lock buttons on the phone, by android studio

I have a question. I would like to push a button on the layout created in Android Studio, I could lock the buttons of the phone (volume and on / off). And that he only came back to normal, after I pressed another button on the screen or typed a...
asked by 16.07.2018 / 17:03
0
answers

Error: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $

I'm trying to consume data from an API using retrofit, however whenever I try to connect it returns that error. I'm using a class that is an Array of these objects (SisalfaCatalog) and throwing the return inside it, but it does not work. Here is...
asked by 06.08.2018 / 01:16
0
answers

Emulator: emulator: ERROR: Unknown AVD name [Nexus_5X_API_26], use -list-avds to see valid list

I installed the emulator all right, but when I go to run, this error is appearing there. I'm using Linux Mint.     
asked by 05.08.2018 / 03:43
0
answers

Erasing a gallery photo on Android

I have a code where I am using my camera to take a picture, then put it in an ImageView , just for viewing, as it is saved in my SQLite . I would like to know how do I delete this photo from the gallery since it is already in the database....
asked by 30.07.2018 / 14:09
0
answers

Android Error: Apache HttpClient does not exist

Now it is mandatory for google to have in the code that update where the version is changed of targetSdkVersion to apply the latest APIs in the applications. I changed the values from SdkVersion to 26 as recommended by google...
asked by 01.08.2018 / 15:16
0
answers

Android Studio Linux does not recognize my cell phone

Hello I'm using Android Studio on Ubuntu 18.04 and I have a LG K10 power. When I try to run the app on my device Android Studio does not recognize it. How can I fix this problem?     
asked by 19.06.2018 / 14:53