All Questions
56 questions
4
votes
1
answer
914
views
Android + Kotlin advanced color picker (HSV and RGB)
For almost the past year, I have been working on a pixel art editor for Android.
My pixel art editor was relying on an external library for its color picker. For 0.2.0, I wanted to change this by ...
2
votes
1
answer
59
views
Easter date calculator Android application
Since Easter holidays are close, I have decided to develop my Android skills by writing an Android app that calculate that date for the Western and Easter calendars.
The formulas were gotten from the ...
3
votes
1
answer
89
views
Android text to speech app
Since I am trying to learn many programming languages, I created this simple Android app. What it does basically is taking a sentence phrase from an EditText ...
4
votes
1
answer
150
views
Finding the type of number entered by the user
I am making a fractions calculator that can calculate fractions, whole numbers and mixed fractions.
So there is a String fraction, which is the input.
Also, the user will enter the fraction in a ...
2
votes
2
answers
915
views
Adapter for RecyclerView with supported onClick handling and select color text on last clicked item
I have written an adapter for RecyclerView. It can handle onClicks for RecyclerView items and select the color name and edit <...
3
votes
2
answers
153
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
129
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
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
...
3
votes
0
answers
61
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 ...
2
votes
1
answer
142
views
Night out with friends. Calculating the costs per person with Kotlin and Android
The following app basically sums up the costs for an evening and calculates the costs per person. The user can input the description of the costs [String] (for example, round one = Spare Ribs Place, ...
4
votes
1
answer
169
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 &...
3
votes
0
answers
74
views
Listing YouTube videos using API with RxJava
I am new to RxJava and have the following code which I use to search YouTube videos via the API and ultimately display them in a list.
...
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
80
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
388
views
Simple Android Flashlight app
One of my first projects. I present to you - Android Flashlight app!
...
1
vote
1
answer
131
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
100
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
562
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
647
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
848
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 ...
4
votes
0
answers
4k
views
Creating Android layout with GridLayout
I'm trying to create a Layout with two columns which are next to each other (I'm accomplishing this behavior with a LinearLayout).
Inside each column, I have two TextViews and two Buttons, which I ...
2
votes
0
answers
617
views
Extend OnClickListener and animate view in android
I'm working on animation and I want to organize my code in best way I'm new in android and not know too much about this. Here is my code that I'm using to animate ...
3
votes
1
answer
4k
views
Android App Simple calendar/scheduler
Wanted to make a schedule for myself that was (hopefully) light-weight. Right now it just has the bare essential function of saving text for a certain day.
Looking for advice on literally anything ...
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 ...
2
votes
1
answer
988
views
Animation with orientation change of Android device
I've started my first "job" like 2 weeks ago, and to be honest I've received a quite hard task to do, since I'm beginner with Android, and quite fresh at programming. The thing I needed was to find ...
2
votes
3
answers
847
views
Storing quiz questions in SQLite
I am creating my first android app. It is going to be a quiz.
There are 40 different question categories and each category has its own database table.
I am writing all questions into a sqlite database ...
3
votes
0
answers
5k
views
A BaseActivity to render toolbar and navigation drawer
I'm new to Android programming and this is my first project so I'm not sure if this is the correct method of rendering the toolbar or the navigation of the drawer on the screen:
So I have a ...
6
votes
1
answer
5k
views
Simple calculator in Android Studio
I have been learning Java for a few months now and have created a basic calculator application in Android Studio for a school project. Since this is my first attempt at programming, I am sure that my ...
-2
votes
2
answers
150
views
How do I reduce the use of if else in this display function? [closed]
I have a method which uses the same code over and over again. I would like to optimize my code in such a way that there is no repetition in my code. I am sure there is a better way to do things ...
2
votes
0
answers
127
views
Randomizer App as Decision Maker
I am a newbie and self taught in programming.
This is my first attempt to make app.
Appreciate any input or comment to make my code writting skill better.
https://github.com/snufflesrea/Decision-...
2
votes
1
answer
6k
views
Counter with increment and decrement buttons
For my first Kotlin project, I'm implementing the Redux pattern with simple Increment and Decrement buttons and a text view to display the current value.
My main questions have to do with Kotlin and ...
1
vote
1
answer
905
views
Android music-streaming app
This is my first time building an Android app or even using Java in the first place. All of this code does work, but I'm hoping to optimize it or find out if things could be done more easily than how ...
3
votes
1
answer
1k
views
An app that uses the quadratic formula to solve ax^2+bx+c=0 so long that the answers aren't imaginary
I'm a beginner to Java and Android programming, and I wrote this app in order to get some practice. It works, but it's most likely not as good or efficient as it could be, since I'm new. I'm hoping to ...
2
votes
0
answers
178
views
Android app that listens for commands over a socket
I've just begun programming Java and I'm working on the following code that deals with socket-based communications. Basically it connects to a client on port 8888:
Gist of code
...
4
votes
1
answer
157
views
First Android game: changing colors of neighboring squares
I have created a small game to learn more about Android.
So the game is you start with a single gray square, and you try to take over neighboring squares. You can only attack 1 color per move, but ...
0
votes
2
answers
65
views
Creating five media players with many text views and buttons
I'm wondering if there is a way to make my code more efficient? Perhaps by using loops or something similar?
I have posted the code below. Please tell me how I can make it more efficient.
P.S.: I'm ...
6
votes
1
answer
3k
views
Task Reminder - Repeatedly notify every 6 hours
So I'm very much a beginner to Java and Android programming. I've worked a lot more with Python so I might have some quirks from there bleeding into my code here. I'd like a particular focus on ...
2
votes
0
answers
2k
views
Android calculator app
I am new to android developement.
Created calculator application.
Want to improve my code quality.
Will be helpfull for any advice to make the code better and more professional
(overall structure, ...
3
votes
1
answer
6k
views
Tic Tac Toe Android game
Can you help me with suggestions regarding my code for Tic Tac Toe Game? This is my code, I've tested it and it works, but I feel like it can still be made shorter/clearer. I am not a good coder and ...
5
votes
1
answer
813
views
Speed unit converter
I'm basically a newbie in android app developing. So I'm not sure if this is the right way to write these codes. I have made an app called "Zconverter". It has 9 fragments and the code i m showing ...
2
votes
2
answers
372
views
Commute info entry fragment for Android app
This is a simple app for taking down a user's home and work address, the days of their commute, and the times they go to work and go home. The times and workweek are entered via TimePicker dialogs ...
4
votes
1
answer
2k
views
Performing a background task and managing battery notifications for Android
On the main view, all you see is a button to click on that says, "start setup". Once the user clicks on Start Setup, a file is read in the background and a progress bar is shown in the main thread. ...
26
votes
2
answers
3k
views
Android Flashlight app
This is my first project, a Flashlight application for Android-based devices:
...
5
votes
1
answer
564
views
Downloading a page in Android
I tried to create a class which downloads the HTML source from a link and saves it. I'm a newbie to all this Android stuff, even new to Java, but this is what I have so far.
It seems to work at least,...
5
votes
3
answers
653
views
Multiple background tasks
This is taken from my post at Stack Overflow here.
I need your help to review my code for improvement and best practice.
...
2
votes
1
answer
714
views
Android Gradle script in multi-module project
I have a multi-module Android project built by Gradle with the new Android-plugin 0.10+.
All modules are mainly configured from the root project.
I've enable the new code coverage feature. The major ...
7
votes
2
answers
2k
views
Android Thread and Runnable
This is my code for running a background thread. I believe it is very poor in naming and code structure.
...
3
votes
1
answer
9k
views
Android sharing selected text to other apps
I am somewhat new to Java. I want to know if this is the proper way to share text with other Android applications, and if I am properly determining if the text is selected. Is there a better way to ...