Problem I wrote my first Android UI application for a test job, but it was declined as employer said that […]
Tag: android
HTTP Get & Post code with slow performance
Problem I had developed an application in which I hit several URLs and show data on mobile. But the problem […]
Login UI for an Android app
Problem This code starts a new thread for login and reacts according to the JSON result returned by the server. […]
Getting a value from shared preferences
Problem I use this code to get values from SharedPreferences. public static String getSharedPreferenceValue(Context context, String key) { SharedPreferences sp […]
Android SharedPreferences Utility
Problem I just created a utility class for Android shared preferences. I want to know it is working well on […]
Handle network response and parse it
Problem First I have method called in LoginActivity to call my login API. This is my Listener that reads user […]
Implementation of an OkHttp singleton for Android
Problem I’m new to Android programming. I am going to make lots of HTTP requests: 500, 1k, 2k, 10k. I […]
Calculate sum of all the items in array list?
Problem I am setting the sum total of all the items in an array to a text view in android.The […]
Validating an IP address and returning the reason it’s invalid
Problem I have a method that validates a user-written IP address in an Android application. If it’s invalid, I need […]
Android game inspired by Space Invaders and Moon Patrol
Problem I’m creating a mini game for Android inspired by space invaders and Moon Patrol. I have completed the important […]