Skip to main content

Questions tagged [android]

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

1 vote
2 answers
2k views

Setting a OnClickListener in a loop

I am trying to set a OnClickListener to a image in a loop. If the params platform is "android" then use market app, instead of default browswer. Is there a better ...
wtsang02's user avatar
  • 177
2 votes
1 answer
207 views

SQLite class to manage recipes for an Android application

I have a class file that would be used to connect and execute queries into the database. The only thing I am confused about is this: do you really need to drop tables and re-create them everytime you ...
John Ernest Guadalupe's user avatar
10 votes
2 answers
4k views

Safely accepting a known SSL certificate with a different host name

My app communicates with a server over an internal network through HTTPS. The SSL certificate on this server is listed for the host as its external host name. I want to accept this certificate, but I ...
Drake Clarris's user avatar
2 votes
1 answer
2k views

Sorting parallel ArrayList

I have a model class that contains 3 ArrayList which are in order by parallel of the same size. ...
wtsang02's user avatar
  • 177
2 votes
5 answers
138 views

Calculating the number 8 chars long which contains all possible numbers containing the numbers from 0 to n

I have the following code: ...
JosephGarrone's user avatar
1 vote
1 answer
6k views

Crossword game - designing class structure

I've planning to create crosswords game for Android platform. Basically, crossword is a matrix of TextFields (EditTexts) and <...
Piotr's user avatar
  • 61
1 vote
1 answer
6k views

Force Stop by Error in httpClient.execute(httpPost);

It work's at Smartphone(Android 2.3.3) but Tablet(Android 4.0) => Force Close!! ...
Iqbal's user avatar
  • 11
2 votes
2 answers
13k views

Change View visibility programmatically or through XML?

I have an XML layout used by 2 activities. Within this layout, there's a view that is visible for Activity1 and ...
slybloty's user avatar
  • 152
1 vote
1 answer
3k views

Persistent Cookie Store

So my app needed a cookie store that persists over the app closing, device reboot etc. I decided to use the sharedPreferences for this. The class works pretty well, in both my tests and on the device. ...
jiduvah's user avatar
  • 433
10 votes
2 answers
1k views

OpenCV Mat processing time

I'd like to know whether having different variables for the src (source) and dst (destination) of an OpenCV function will have an effect on the processing time. I have two functions below that does ...
Og Namdik's user avatar
  • 201
1 vote
2 answers
1k views

Reading a Bitmap from disk on a separate thread on Android

I want to defer the reading of a bitmap to another thread. I'm mainly concerned about concurrency issues since I'm kind of green on that subject, so I would like to know if this code has any potential ...
soren.qvist's user avatar
3 votes
1 answer
251 views

File to String Pattern for uploading to a server

I need to upload some images to a server. This is done with a json object. The json object has 2 values, a timestamp and a Base64 encoded string of the image. I am using the jackson library and was ...
jiduvah's user avatar
  • 433
5 votes
1 answer
4k views

Is this the best approch to combine 2 Interfaces?

I have a use case where I want to use both HttpRequestInterceptor and HttpResponseInterceptor in one ...
jiduvah's user avatar
  • 433
2 votes
1 answer
466 views

An XML stats page for my game

I am making a stats page for my Android game, and I have never really used the Android XML layout stuff, so I'm sure things are a little messy and strange. The layout ends up looking pretty good, and ...
KDiTraglia's user avatar
4 votes
1 answer
8k views

findViewById - in separate class

I'm new to Android and I wanted to create a class that would load an ad inside the current layout. All the layouts have a RelativeLayout id=adLayout From my main, ...
romo's user avatar
  • 141

15 30 50 per page
1
48 49
50
51 52
54