Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [android]

Android is Google's software stack for mobile devices. For non-developer questions, see http://android.stackexchange.com

Filter by
Sorted by
Tagged with
12 votes
4 answers
5k views

Sound manager for Android

I created a singleton class for managing sound effects on Android. This class will only be instanced and loaded once at the beginning, and each activity will use the loaded songs. I don't know either ...
FR073N's user avatar
  • 231
5 votes
1 answer
248 views

Android game inspired by Space Invaders and Moon Patrol

I'm creating a mini game for Android inspired by space invaders and Moon Patrol. I have completed the important part except for collision detection. Before I do collision detection I want to clean the ...
Niklas Rosencrantz's user avatar
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
  • 5,018
2 votes
1 answer
91 views

Android app class serialization

I am attempting to build an Android APP with the custom serializable class User. The public method Save is to save class ...
JimmyHu's user avatar
  • 5,018
5 votes
1 answer
4k views

Android SQLite Database management

I'd like some opinions about my approach at using SQLite databases in android. Everything seems to work very well, but there may be something wrong that I hadn't noticed. I don't like working with ...
Apperside's user avatar
  • 151
3 votes
1 answer
128 views

Refactoring RadioGroup setter code?

I am setting different RadioGroup like this: ...
androidcodehunter's user avatar
2 votes
1 answer
6k views

AES Encryption/Decryption with key

Is this the best way to encrypt/decrypt data? And Is it good to store Generated InitVector and CipherText in database as Base64 String which is converted from byte[]? ...
Hary's user avatar
  • 133
0 votes
1 answer
74 views

Android APP User class implementation

This is a follow-up question for Android app class serialization. The implementation of User class has been updated and the functionality of null string checking, ...
JimmyHu's user avatar
  • 5,018
8 votes
1 answer
448 views

Latency problem for keyboard remoting from Android phone

I'm writing a simple remote PC app (mouse-keyboard). Android is client and is connect with WiFi to Java PC Server. I'm using TCP but I see a bit of latency compared to other remote apps. Then I used ...
user avatar
6 votes
2 answers
1k views

Passing listener to customized extended View in Android

I extended NumberPicker with several methods needed in my application. When I came to defining a OnValueChangeListener this is ...
jackhab's user avatar
  • 163
6 votes
2 answers
2k views

Calculating months elapsed since a given date

I am using traceview and DDMS to analyse my operation. The following is my traceview as displayed in DDMS: According to the above, the LoaderClass.months() ...
Junaid's user avatar
  • 217
5 votes
1 answer
8k views

Do I need to close my FileOutputStreams?

I have inlined temporary FileOutputStream that I am not able to explicitly close. Is that a problem? ...
Benjamin Toueg's user avatar
4 votes
1 answer
116 views

Scheduled Notifications (First Android App)

I'm happy to present my first Android project, which collects market index data (three Asian indices) and fires a notificaiton every Wednesday, Thursday and Friday at 7:30 AM displaying the data. I've ...
ola_bandola's user avatar
4 votes
1 answer
660 views

Simple, generic background thread worker class

While I'm not aiming for a drop-in replacement for AsyncTask, I would like a utility class that accomplishes some of the same goals. Considering the criticisms of <...
mdd-sbo's user avatar
  • 457
3 votes
1 answer
68 views

Generating multiplication questions and answers for a quiz style app

See this link for previous post on this subject Generating mathematical questions and answers I have an Android quiz app that I am building to learn kotlin / android app development. Here is an object ...
UnknownError's user avatar
3 votes
1 answer
350 views

Toggling ActionBar visibility for SherlockFragmentActivity

Method implemented in parent class (extends SherlockFragmentActivity) (source) ...
Marek Sebera's user avatar
3 votes
2 answers
284 views

Android widget code

Anyone have any comments? Just trying to better my code if can be done. ...
jasonflaherty's user avatar
3 votes
1 answer
2k views

Android recycler view adapter filter

I am trying to optimize the filter method for RecyclerView Adapter in Android. The list is used as an ArrayList. I have seen ...
Harish Gyanani's user avatar
3 votes
3 answers
2k views

Android recyclerview filter

I want to optimize the below code, I have asked a similar question here. I know this approach is better than my last code but I feel there are ways to optimize this too.This code is used in almost ...
Harish Gyanani's user avatar
2 votes
1 answer
158 views

Generating mathematical questions and answers

I have an Android quiz app that I am building to learn kotlin / android app development. Here is an object I have which acts as one of many question builders. Is there a better way of writing this? <...
UnknownError's user avatar
2 votes
1 answer
75 views

Processing charge current error messages with HashMap<>

I have certain error states that I am displaying in my Android TextView but only one message is displayed at a time and if all values are set to 0, no message is displayed. So, I check all the values ...
Dylon Jaynes's user avatar
1 vote
3 answers
538 views

Registration and Login System for Application

I am developing a social platform and currently just completed the registration and login PHP pages. The application is an android application that authenticates against a MySQL DB. I am seeking ...
basic's user avatar
  • 205
1 vote
1 answer
856 views

Android APP FTP uploading file implementation in Java

This is a follow-up question for Android APP FTP host profile class implementation and Android APP connect to FTP server in Java. I am attempting to perform the upload operation to specified FTP ...
JimmyHu's user avatar
  • 5,018
1 vote
1 answer
96 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
  • 5,018