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
3
votes
2answers
3k views

Extracting Android contact Info

I am new to Android programming and I'm working on an Activity in an app that will plot the location of contacts from a specific email account on to a map. The following is what I in a class that the ...
8
votes
2answers
32k views

Secure AES encryption and decryption in Android [closed]

Is this implementation of AES for Android safe? Is it 128 bit encryption? How can I strengthen this implementation? Please help me, all suggestions are welcome :) ...
6
votes
1answer
467 views

Database interaction logic

I have a database-intensive app, almost every activity requires access to the database, both reading and writing. I had a lot of problems with separate threads and activities on the stack closing ...
3
votes
5answers
1k views

Three edittext boxes: suggestions to clean up code

I am a newbie at writing Android apps and using Java in general. I have went through most of the Android hello view tutorials but still seem to be lacking some understanding of the basics. Here is a ...
2
votes
2answers
1k views

How to make a int not be used twice when it randomly generates them? [closed]

I've coded a simple quiz game for Android, and currently Im having troubles with making questions not appear after they've been shown, i.o. I dont want it to ask me the same question twice.. This is ...
7
votes
1answer
240 views

Random Q&A system

Basically, I made a simple app for my Android, where it picks a random question for you, and picks specific answers. Only 1 of the answers is correct, while other's aren't. Also, after editing the <...
4
votes
1answer
807 views

AsynTask example

As I was trying to demystify the Android AsyncTask functionalities, I wrote this sample app to test it. Please review my code and suggest possible improvements: ...
6
votes
3answers
989 views

Is using java enums to store filepaths good practice

I'm working on an android application, but this is basically plain 'ole java. The aim is to do the right thing and not repeat myself. ...
6
votes
2answers
1k views

Template for creating 2D games

I am using the following template to program my 2D games in. Is there any way I can improve it? Splash screen: ...
13
votes
5answers
16k views

Remove useless whitespace from styled string

I have a big string resource (basically the "about" text of the application) which contains styles (such as <b>, <a> ...
8
votes
2answers
1k views

Adding a Fish Eye Distortion to a Bitmap

I have the following class that processes a Bitmap to place a fisheye distortion on it. I've run my app through TraceView and found that virtually all the processing time is spent looping through the ...
4
votes
1answer
5k views

EPUB reader for Android

How do I improve this code for reading an epub file? The code is as follow: ...
4
votes
1answer
6k views

Unit Converter App

Please review this Android UnitConverter App which has been designed using Strategy Pattern. ...
-1
votes
1answer
185 views

Specify table data in code, reference objects

...
39
votes
7answers
3k views

Is my code a 'safe' singleton?

I was wondering if my code will produce a true singleton. I am creating an Android app, and all activities should access my API through one instance of the SyncApi ...
32
votes
2answers
32k views

Custom CursorAdapter Design

Here's the code which I use for my Android custom cursor adapter which I use to bind data to my list view. ...
7
votes
2answers
2k views

How to increase download speed using the following method?

I have written an Android application which downloads pdf files through web service. I am using kSoap2 android library to parse the response of web service which basically contains file name & ...
1
vote
2answers
214 views

Function to turn to requested bearing

I've been writing a function: float turnToRequestedHeading(float initialHeading, float requiredHeading, float turnRate) I keep thinking there must be a clever ...
11
votes
3answers
19k views

Simplified Android Spinner

I have written a simple spinner wrapper, but was wondering if any of you could think of any ways to make it more robust. It only handles strings at the moment. ...
6
votes
1answer
809 views

Android ListAdapter design advice

I want to write an Android ListAdapter to serve data from a database that look like this: ...