I’m receiving this exception when I try to use DateUtils.addMinutes(): My code is calling DateUtils.addminutes() to add 1 minute to variable date like this: I put the right dependency on my Gradle file: I researched a lot about this error and none of the solutions mentioned in another posts solve my pro…
Tag: android
Android Foreground service without notification – how to?
I have created foreground service for notifications in my application. It’s working fine, the problem is to start the foreground service we need foreground notification which tell that your application is running like this. I don’t want this notification. How I can remove that notification without…
HeaderListView with Horizontal Scrolling Header
I’m looking for a HeaderListView like this one: http://applidium.github.io/HeaderListView/ but instead have a header that has a horizontal scrolling ability that lists categories of my list view, like in uber eats where it comes up with stuff like: Drinks Coke Sprite Pizza Pepperoni Pizza Cheese Pizza I…
App crashes when connection is lost while using HttpUrlConnection
i’m making a class that get json data from an external url, it is working fine if there is a connection. also shows an error if there isn’t. the problem is if the connection lost while the class is getting data the app crashes. here is my code: so guys is there any solution to prevent the app from…
Android Studio – Error Module not specified
i’m a newbie to Android/Java development and purchased a book Java Programming for Android Developers For Dummies, 2nd Edition. This comes with a code samples section http://users.drew.edu/bburd/Java4Android/ (chapter 02_01) I understand the book is a few years old hence so the code samples will be. How…
How to use AWSDateTime in Java
Trying to figure out how to input a AWSDateTime. I don’t want to use Java 8. createDate requires Temporal.DateTime Is there any other way I can accomplish this? Answer I ended up using the function in DateUtils. https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html AWSDateTime An extended ISO…
Android: Should I use local Storage or SQLite (or similar)?
I am just starting to learn Android Development. I have to develop something similar to a Log APP where the user can save information.This is student project, so I don’t have to use Users/Passwords, instead I am allowed to save the info using the Local Storage of the device. The problem is that I will n…
Android Constraint Layout in Scroll View not showing the last item
I’m trying to make a fragment that have a sort of form with lots of textViews, EditTexts and spinners, so i have to use a scrollView to see all the items. For some reason the last item is not showing and i don’t understand why, I read lots of questions about this problem but no one works for me. C…
Semaphore does not invoke release()
I have implemented a thread in an Android app that is invoked every minute, the invocation of the process occur through an Alarm Manager. @Override public void onReceive(Context context, Intent intent)…
org.json.JSONException: Value {“storeid0”:[“1535″],”storeid1”:[“1862”]} at idddsss of type org.json.JSONObject cannot be converted to JSONArray
I am getting this response from my api {“idddsss”:{“storeid0”:[“1535″],”storeid1”:[“1862”]}} this is the code that I am using to get response from server and save all storeids in an array: But whenever i run the code i got following error, I don̵…