Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
104 views

Android APP FTP host profile class implementation

This is a follow-up question for Android APP connect to FTP server in Java. I am attempting to create a tiny FTP host manager with FTPHostProfile class and ...
JimmyHu's user avatar
  • 7,098
4 votes
0 answers
2k views

Android APP connect to FTP server in Java

I am attempting to build an Android APP with the ability to connect specified FTP server in Java. The connection operation has been performed in FTPconnection class ...
JimmyHu's user avatar
  • 7,098
2 votes
0 answers
221 views

running a task on UI every x seconds

I often come around a requirement where we have to perform a repetitive task on the user's screen (for eg, updating a counter like flash sale/ live class timer, autoscrolling the banner, etc) . I have ...
ansh sachdeva's user avatar
3 votes
1 answer
119 views

Login system using callbacks in android

I wrote a login system for an app I am developing, but I'm not really happy with the code I have at the moment. I feel like there is a better way at tackling a problem like this. In particular I'm not ...
RuuddR's user avatar
  • 131
1 vote
1 answer
1k views

Starting an activity after 1000ms from a splash screen with Runnable and Handler().postDelayed

I have implemented a splash screen which is the main activity of my Android app. This splash screen shows an image, and after 1000ms there is an animation to show another activity's layout. The code ...
JarsOfJam-Scheduler's user avatar
6 votes
2 answers
4k views

Multithreaded TCP Client

I implemented a multithreaded TCP client in java for use in an android application. The purpose is to implement the TCPClient interface to allow another thread to post strings to the server and read ...
Final Hazard's user avatar
0 votes
1 answer
120 views

Adventure game for Android

Features Abstract class World.java which works for basically any game Game engine class Simulation.java which steps forward time and introduces random events Walking persons, places and connections ...
Niklas Rosencrantz's user avatar
2 votes
1 answer
1k views

Loading interstitial adMob in different threads

I want to load Interstitial AdMob after 5 second, after the Activity started, in another Thread. Is this code right, or I'm duplicating ...
MohammadL's user avatar
  • 163
1 vote
2 answers
3k views

FutureTask in Android, wait for a thread to execute the next one

This code is executed on a background service every 60 seconds on an Android app. Each class instantiated on FutureTask (WifiInfoFetch and WifiApResults) contains an insert to an SQLite database. We ...
Julio's user avatar
  • 301
2 votes
1 answer
160 views

Using a new thread to post to observers

I have implemented my own Observer pattern. I want to post my events in a new thread. This thread would simply call all the the observers/listeners with the posted event. ...
J_Strauton's user avatar
5 votes
1 answer
377 views

Simple Background Thread Worker Class (follow-up)

This is a follow up of Simple, generic background thread worker class What changed? Moved from synchronized lazily evaluated static instances to true Singletons per the on-demand holder idiom https://...
mdd-sbo's user avatar
  • 457
2 votes
1 answer
2k views

Custom countdown timer class to replace the Android CountdownTimer

This project was made to replace the stock Android CountdownTimer class. It is more responsive when completing the timer and adds additional functionality such as ...
Moshe Stauber's user avatar
6 votes
2 answers
2k views

Android splash screen

I have implemented a splash screen, to hold/pause the screen for few seconds and then launch the next screen. I am very enthusiastic to know if there is a more basic way to write the code. ...
VIRAG's user avatar
  • 163
1 vote
1 answer
140 views

Limiting the amount of Calls to a Server

I have a server side operation which takes a percentage value from 0 - 100. The user controls this percentage using a SeekBar on the android client. Time-wise the ...
flakes's user avatar
  • 1,935
4 votes
1 answer
6k views

Self-stopping started and bound Android service

I've written a small Service class that contains a thread pool so that it can process multiple tasks in parallel. The kicker is that is also allows clients to bind ...
Andrew Gunnerson's user avatar

15 30 50 per page