Questions tagged as 'android'

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

Error using Kotlin Android Extensions

I'm using these extensions and everything works great, but I've noticed that sometimes does not perform the bind correctly, in modules such as Adapters, ViewHolders and this time in a DialogFragment. This exception is throwing me: java.lang.Nu...
asked by 08.10.2017 / 20:24
1
answer

Problem with ScheduledExecutorService when running in Android service

One question, I'm creating a service on android, and I need this one to call a method every so often, and for that I'm using ScheduledExecutorService . Here I put the code: @Override public int onStartCommand(Intent intent, int flags...
asked by 06.10.2017 / 01:15
1
answer

How to pass data from an Activity to an Adapter?

Hello my problem is the following one I am developing an app in android where I have an Activity and a RecyclerView.Adapter, where what I want is to pass some parameters from the activity to the adapter by means of in intent. The problem is that...
asked by 05.10.2017 / 02:38
1
answer

Listview and slow button

is my first app, and I have the problem that when you click on ListView the app as it freezes a moment and then responds, I think it's because my code is poorly optimized, how can I solve it? package com.david.animefm2; import andr...
asked by 05.10.2017 / 19:58
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
1
answer

delete callback history Android

I have an application which consists of 3 activities, A , B , C , I already have in onBackPressed of B and C return me to A : Intent intent = new Intent(this, MainActivity.class); inten...
asked by 11.12.2017 / 21:08
2
answers

Error parsing json in android: t user of type org.json.JSONObject can not be converted to JSONArray

I have a String that I need to parse and it gives me the following error:    Value {"name": "test", "code": "1", "photo": "test"} at user of   type org.json.JSONObject can not be converted to JSONArray my json's format is as follows: {"...
asked by 12.12.2017 / 23:49
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