All Questions
11 questions
3
votes
2
answers
120
views
Code for saving / loading a class object
As I was advised, I broke my code into 2 classes. Could you take a look at the repository class and report what problems this code has
...
2
votes
1
answer
132
views
Populate an ArrayList of different instances of a class
First of all, here is an overview of my application. I want to create a multiple-choice app, on android, using data stored on a remote MySQL database. The DB has 100 questions that will appear in ...
2
votes
0
answers
616
views
Updating UI in Retrofit onResponse
I have an Android project that queries the BART train API. I was curious if updating the UI inside the Retrofit onResponse method is correct or if there is a better way. Below is my code. Also, here ...
2
votes
1
answer
188
views
Kotlin Android request client
As part of an android app, I've written a simple wrapper that makes requests to an api and fetches stuff.
...
3
votes
0
answers
266
views
Search GitHub users when text field changes in Kotlin Android app
Problem: Search for users by their name using the GitHub API (sorted by the number of followers) and display the results in a RecyclerView.
Implementation: Hitting the GitHub API every time when user ...
5
votes
2
answers
3k
views
Java/Kotlin JSON parsing improvement
I consume an API which gives me this type of JSON:
...
4
votes
0
answers
150
views
Dynamically creating login screen on Android devices
This has been an experience. I'm well above "hello world" java is not a language I use often when programming and I don't program too much. I find myself a lot on Google.... basically just about for ...
4
votes
2
answers
1k
views
App to list books from JSON data
I recently submitted the code for this for an 2 hour interview but I was rejected.
The app shows book information with a image, title, and author. Each entry has a title but some entries have no ...
0
votes
1
answer
660
views
Android export browser history as JSON
I wrote a simple android app to export the browsers history as JSON, but I do not know if the resulting JSON is a format that the user will easily be able to parse and use.
Is there any way that i ...
6
votes
1
answer
1k
views
Populate views in Android application
I wrote these classes and I would like to know if this is a correct way. I created a new Project with Blank activity and "Scrollable Tabs + Swipe" as Navigation type.
My main activity:
...
8
votes
1
answer
27k
views
Optimize JSON insertion to SQLite (insert ... on duplicate key ignore)
In current task, I'm refactoring the code of converting JSON file into SQLite database on Android device. Code compliant with Java 6.
As a benchmark, grabbing the code from remote server takes ...