All Questions
45 questions
3
votes
2
answers
165
views
List Filtering Code
I am developing applications for android. In my application, the user can add information about his weight and watch the progress of weight change. I decided to add filtering of the elements according ...
6
votes
2
answers
164
views
Code to support different measurement systems
I am developing an application in which the user can use different measurement systems. Currently,
there is support for the metric and imperial measurement systems. To support these systems, I wrote ...
3
votes
2
answers
128
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
...
3
votes
0
answers
67
views
Getting a list of waypoints assuming that there is a map [closed]
I'm a beginner learning ROS. I'm developing an android application that will control my robot and that includes getting the list of waypoints to display it to my spinner. How do you get the list of ...
4
votes
1
answer
187
views
Android clock in/out app
I am writing a clock in / out and payroll app for Android. I am no professional, but I was hoping I could get some feedback on whether my code is spaghetti or not. This is just one of many classes &...
9
votes
2
answers
4k
views
Android Tetris App Design
Recently I have finished my first bigger Android project. I made a little Tetris App.
Here is a picture of my app in emulator:
My Tetris has following functions:
fast drop down
play tetris music
...
3
votes
1
answer
2k
views
Implementation of an OkHttp singleton for Android
I'm new to Android programming. I am going to make lots of HTTP requests: 500, 1k, 2k, 10k.
I have tried to create a singleton class for OkHttp. I wrote this:
...
5
votes
1
answer
87
views
Mini space game for Android
I have created a mini Android game. The aim is to catch aliens in space. You score points for each aliens, there is a pause function and you can change the level of difficulty and change spaceships.
<...
0
votes
1
answer
391
views
Simple Android Flashlight app
One of my first projects. I present to you - Android Flashlight app!
...
1
vote
1
answer
141
views
Restoring the instance state of an SQLite quiz app in Android
The following class is the activity of a little SQLite quiz app, which takes care of showing the actual quiz. Other than that the app only has a starting screen.
I want to save the instance state and ...
0
votes
1
answer
105
views
Personal project for managing photos
I have wrote a small project for Android. It's an app which lets you to take a photo (or find one with Flickr) and save it in the cloud (Cloudinary).
Link to the GitHub repository.
Should MVP layers ...
2
votes
1
answer
571
views
Tic Tac Toe in Android
I made my first Tic Tac Toe game on Android and I'm looking for a way to simplify, make the code more flexible and remove the hardcoded code. I managed to do this game by looking at different ...
0
votes
2
answers
5k
views
ListView + ArrayAdapter: Setting OnClickListener to items
I've recently written a Java program that displays a list of Word objects using a ListView and a custom ArrayAdapter.
I also want to set an OnClickListener on the items that plays an audio file (...
0
votes
1
answer
656
views
Quiz project with XML and Java
I'm learning to code Android apps and have recently finished a quiz app. I would like some feedback about best practices and possible ways to improve performance, as I'm also new to Java.
...
2
votes
1
answer
859
views
Using serializable to preserve/save objects
I'm building one of my first android apps. I met this problem that everytime you change screen orientation, Android destroys the app and builds it up again (I know this is more complex, but this isn't ...