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...
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...
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...
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...
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...
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...
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...
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...
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:
{"...
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...