Questions tagged as 'android'

1
answer

Simulate insufficient balance error in PayPal

I'm developing an Android application in which I need to integrate PayPal into the buying part, I'm using the PayPal Sandbox to test, it seemed to be working perfectly. I create my personal account and the business account and the fakes tran...
asked by 07.03.2014 / 21:20
0
answers

Facebook Login Button has no action

I'm testing the Facebook Login API, however clicking the Signing in with Facebook button will not happen, only the bar where the time is black for a moment and then comes back with the color of the application defined in styles.xml file...
asked by 24.12.2015 / 21:25
2
answers

My image does not appear in ImageView

I'm looking for the image on SdCard. Everything works fine, opens the gallery, selects the image, but the selected image does not appear in ImageView. Code: public void btnFoto(View view){ Intent intent = new Intent(Intent.ACTION_GET_...
asked by 08.09.2015 / 16:20
6
answers

How to fix this "Error can not resolve symbol R" error in Android Studio

I imported a project in Eclipse to Android Studio and there were errors in the code regarding R with the following message    can not solve symbol R How can I fix this error?     
asked by 24.06.2015 / 15:28
3
answers

What are asynchronous processing and synchronous processing?

I'm having this doubt while I'm studying about the Handler class. In the book says that when a Thread is being used to perform some asynchronous processing and needs to update the graphical interface of the screen, it is required to use a...
asked by 05.09.2016 / 21:52
3
answers

What is the difference between methods for obtaining a context? [duplicate]

You can, in addition to this , get the context in various ways, with different methods. As shown in the code below, we have getApplicationContext() and getBaseContext() that apparently has the same purpose. public class M...
asked by 27.01.2017 / 13:35
2
answers

Rotate applications in Android Studio via mobile phone via USB

Does anyone know how I can configure Android Studio to run applications on USB connected on the mobile? I currently use GenyMotion and wanted to know if there is any compatibility problem. I tried to change it inside "run configurations" where I...
asked by 28.12.2014 / 01:29
2
answers

How to limit characters?

I would like to know how to limit characters and then run something on Android. For example, in a EditText or a TextView I type 5 characters, typing the fifth character executes a command, for example, it deletes what was typed....
asked by 28.01.2015 / 18:16
3
answers

Create temporary in-app lock

In the app I am developing there is a usage policy, and if this policy is cheated I want to suspend the use of the app for 30 mins, how can I do that?     
asked by 02.05.2016 / 19:14
2
answers

Many "if" in an old game for android

When checking if someone has won, I need to use IF several times. I would like to know if you can simplify the code a bit and even replace the IF s. //left, top, right, bottom are int positions relative to canvas //state is a enum{Blank,Re...
asked by 06.08.2018 / 22:20