All Questions
Tagged with android error-handling
16 questions
2
votes
1
answer
91
views
Processing charge current error messages with HashMap<>
I have certain error states that I am displaying in my Android TextView but only one message is displayed at a time and if all values are set to 0, no message is displayed. So, I check all the values ...
3
votes
0
answers
1k
views
Android APP FTP downloading file implementation in Java
This is a follow-up question for Android APP connect to FTP server in Java and Android APP FTP uploading file implementation in Java. I am attempting to perform the download operation to specified FTP ...
1
vote
1
answer
895
views
Android APP FTP uploading file implementation in Java
This is a follow-up question for Android APP FTP host profile class implementation and Android APP connect to FTP server in Java. I am attempting to perform the upload operation to specified FTP ...
1
vote
1
answer
66
views
Android APP user registration page implementation
This is a follow-up question for Android APP User class implementation. I am attempting to build a user registering system and this post shows the user registration page implementation.
The ...
1
vote
1
answer
80
views
Android APP Password Strength Assessment class implementation
This is a follow-up question for Android APP User class implementation. I am attempting to create a password strength assessment class which is named ...
5
votes
1
answer
137
views
Proper Error handling when we expect results from secondary functions
I'm building an android application and I have some second thoughts on some error handling case.
I have a method that gets data from the internet by calling this method:
...
2
votes
0
answers
396
views
Custom MediaController with full screen video image option
I have overridden setAnchorView() of MediaController class to display full screen option icon using below code.The code seems to be working fine in devices I tested but I have few doubts for which I ...
2
votes
1
answer
90
views
Code for adding a user to the database
I have a code that adds a user to the database, getting the username from the dialog.My fragment implements the interface with the onInputSend method, which is called by the dialog when the user ...
2
votes
1
answer
1k
views
Retrieving access token from SharedPreference
Here is code that retrieves an access token from SharedPreference.
...
3
votes
1
answer
22k
views
Checking for Internet connectivity on Android
I wrote this code to check an internet connection and was wondering if this is the best way to do this check.
...
3
votes
1
answer
3k
views
Functionality for automatic retry after exception
I have made the following system to automatically retry network calls if some exception is thrown. (Earlier posted on stackOverFlow, solution inspired by what @Boris answered)
...
5
votes
1
answer
6k
views
AsyncTask which allows to handle exceptions on UI
The AsyncTask available in android, gives you the result from doInBackground on the UI thread so that you can update UI ...
5
votes
3
answers
2k
views
Class for catching error and logging
I often write something like this in my code:
...
4
votes
1
answer
382
views
Simple helper method for JUnit3 tests
In JUnit 3, I cannot tell JUnit what type of exception is expected. In JUnit 4, the ...
12
votes
2
answers
2k
views
Productivity app for Android
I wrote a productivity app for Android. It lets you switch system settings, like Bluetooth, wife, screen brightness, volumes, ringtones, mobile data, airplane mode, etc. Unfortunately I have ...