Questions tagged as 'android-studio'

1
answer

Infinite loop when retrieving and writing data in Firebase

I'm new to Android and had a problem retrieving a data from Firebase and recording again, I know the reason for the infinite loop but I do not know how to fix it. public static void setVoto (String candidato){ votoFirebase = referenciaData...
asked by 26.07.2018 / 20:28
1
answer

Android Studio: Invisible problem? [closed]

Hello, I'm making an app to calculate the best buy between 2 products, in this case it's toilet paper. In the title I put invisible problem because android studio 3 does not detect any errors in the compilation, however, when I run the applic...
asked by 13.11.2017 / 15:46
2
answers

I did something wrong in my code in android studio and I can not go back to what it was before [closed]

How can I get my code back to what it was before I did something wrong in android studio? Apparently I deleted my code and there is only the gradle script. How can I recover it?     
asked by 30.05.2017 / 18:59
2
answers

Problem with special characters

I have an application that downloads a csv file from an ftp server and within that file it contains product information and the app should insert them into a database, however the special characters are coming "zuados", as in the image below:...
asked by 30.03.2017 / 20:22
2
answers

TextView - Leave only one word in bold

I have TextView which shows the following text on the screen: Like this: value: PROMOTION! How do I: value: PROMOTION! Do you have put bold in just one word of TextView ? That is, I have to do this without ha...
asked by 08.02.2017 / 20:59
1
answer

Change the project API

I'm having an application in android studio pretty much done, except that I wanted to switch from API 9 to API 16 (Android 4.0). Can anyone explain? Thank you!     
asked by 24.01.2017 / 02:37
2
answers

Make an Acitivity on Android appear once only [duplicate]

Well, my question is: How do I make an activity appear only once, and then when the user opens the app again this screen does not appear, just the others. I'll explain how my project is to become clearer. My project is very simple. There ar...
asked by 07.12.2016 / 23:33
2
answers

Show all content of a layout in the preview of Android Studio

Hello, I would like to know how (if possible) to show the entire contents of a layout in the preview of Android Studio. Here is an example image: The blue marking is a button that is in the layout, but I can not manipulate or prev...
asked by 08.08.2016 / 23:21
1
answer

Android does not resolve Firebase dependencies

I'm having an error resolving gradle dependencies: I try to compile and get the following error: Error:FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > Could not resolve all de...
asked by 18.07.2016 / 21:06
1
answer

How to use the power button on the mobile phone?

I wonder if you can use the power button on an app in your phone. Example: Performing some function if pressed the button three times in a row. If possible I would like some example. Thank you!     
asked by 30.04.2016 / 18:36