Questions tagged as 'android-studio'

1
answer

Android Keyboard with different @ type @

Currently I find that using my MASCARA class for the amounts written, as the phone reacts differently, this is my mask class public class Mask implements TextWatcher { private DecimalFormat df; private DecimalFormat dfnd; private boolean hasF...
asked by 02.11.2017 / 16:02
1
answer

Error in android.widget.Button.setOnClickListener, "Attempt to invoke virtual method"

Why do I have the following error:    Attempt to invoke virtual method ... on a null object reference the signIn.java is public class SignIn extends AppCompatActivity { EditText edtPhone,edtPassword; Button btnSignIn;...
asked by 12.11.2017 / 15:14
1
answer

FATAL EXCEPTION: Timer-0

I am showing in a fragment, a sequence of three images through a ViewPager, I have added to the fragment a timer TimerTask for the images, occasionally an error is generated that closes the application and refers to the line: getActivity().run...
asked by 14.11.2017 / 20:35
2
answers

Android Studio - Problem when playing audio

Good morning. I'm doing a simple test where I press a button and a sound plays. When emulating the application (or using it in the mobile) and clicking the button, the app is peta and closes. I think the problem is that it does not find the audi...
asked by 04.10.2017 / 12:59
1
answer

Load Spinner with SQLite Android database

Hello, I need help to load a spinner from a database as easily as possible. I have a class where doing all sorts of methods would ideally be that from the activity call those methods and load the spinner. public ArrayList getAllClientes() {...
asked by 27.10.2017 / 20:23
1
answer

A service is restarted after closing the app

I have a service that connects to a database every 10 seconds to verify the existence of certain data, if it exists it sends a notification to the user. everything works correctly. But when I close the app, the service restarts and returns to sh...
asked by 17.10.2017 / 05:07
2
answers

Google Play Android certificate error

Good afternoon, I recently uploaded an app to google play, I currently want to upload an update but it will not let me, I get the following error in the console: Upload error    You have uploaded a signed APK with a different certificate t...
asked by 12.10.2017 / 19:40
3
answers

Remove the white background from my image png

I am working on an application in Android Studio and I have read in several threads that to remove the background in my buttonimage I have to put in its Android properties: Background="null" . Indeed the background is removed and...
asked by 02.10.2017 / 10:40
1
answer

Android Studio: everything appears out of square [duplicated]

I have a small code in Android Studio with a couple of buttons, an EditText and a TextView, all quite basic. In the preview everything comes to me more or less as I want, well squared and so on, as you can see in the following image, the part...
asked by 20.09.2017 / 15:13
2
answers

How can I make a notification permanent?

What I want is to make that while the app is open the notification does not close, the notification has a button to expand that is to close it. To help me they have as an example the code of the notification: Intent notificationIntent = new...
asked by 21.09.2017 / 06:08