Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
thebluepandabear's user avatar
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 ...
user10191234's user avatar
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 ...
user10191234's user avatar
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 ...
DeathVenom's user avatar
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 <...
Destroyer's user avatar
  • 459
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 ...
Destroyer's user avatar
  • 459
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 ...
Destroyer's user avatar
  • 459
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 ...
Destroyer's user avatar
  • 459
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 ...
user209795's user avatar
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, ...
Hooni's user avatar
  • 165
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 &...
Elizabeth Sinclair's user avatar
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. ...
Adam's user avatar
  • 321
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 ...
Marten's user avatar
  • 585
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: ...
Castiel's user avatar
  • 33
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. ...
Niklas Rosencrantz's user avatar
0 votes
1 answer
388 views

Simple Android Flashlight app

One of my first projects. I present to you - Android Flashlight app! ...
Bar Akiva's user avatar
  • 161
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 ...
Florian Walther's user avatar
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 ...
Adam's user avatar
  • 129
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 ...
S. Nekosi's user avatar
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 (...
Larpee's user avatar
  • 143
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. ...
Larpee's user avatar
  • 143
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 ...
Bobzone's user avatar
  • 31
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 ...
Larpee's user avatar
  • 143
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 ...
Fiverr Projects's user avatar
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 ...
kalenpw's user avatar
  • 163
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 ...
Nolan Robidoux's user avatar
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 ...
ArturS's user avatar
  • 23
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 ...
Schwesi's user avatar
  • 245
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 ...
Areeb Beigh's user avatar
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 ...
Jenni's user avatar
  • 61
-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 ...
AndroidNewBee's user avatar
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-...
Andrea Liureta's user avatar
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 ...
Daniel T.'s user avatar
  • 866
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 ...
McLemore's user avatar
  • 389
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 ...
Todd's user avatar
  • 33
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 ...
Bernardo Meurer's user avatar
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 ...
Timotheus's user avatar
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 ...
user avatar
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 ...
SuperBiasedMan's user avatar
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, ...
Leonid's user avatar
  • 21
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 ...
Shailang Kharsati's user avatar
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 ...
Rasheeq Zaman's user avatar
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 ...
Harry Tuttle's user avatar
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. ...
Kala J's user avatar
  • 542
26 votes
2 answers
3k views

Android Flashlight app

This is my first project, a Flashlight application for Android-based devices: ...
user avatar
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,...
Davlog's user avatar
  • 677
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. ...
bEtTy Barnes's user avatar
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 ...
ben75's user avatar
  • 121
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. ...
prasad thangavel's user avatar
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 ...
kyle k's user avatar
  • 1,517