Android is Google's software stack for mobile devices. Please use the Android-specific tags such as [android-intent], not [intent]. For non-developer questions, see http://android.stackexchange.com
0
votes
1answer
16 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. ...
3
votes
0answers
42 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 ...
0
votes
1answer
31 views
Compare Arrays in Dice game [closed]
I found an open source project that has a few bugs (I have fixed a couple so far) but this one has me stumped. The issue that I am trying to solve... If I have 3 sets of pairs (isThreePair) and it ...
1
vote
2answers
42 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 ...
2
votes
1answer
36 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 ...
-1
votes
0answers
33 views
Issue with Car Physics implementation [closed]
I ported the car physics found here to java/android:
http://www.gamedev.net/topic/470497-2d-car-physics-tutorial/
The problem is that when I steer it does not steer, but when I throttle it steers ...
3
votes
1answer
104 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 class.
I'm asking if the following would be a good solution and what are the potential problems?
...
0
votes
0answers
22 views
Error Copying Source File in Audio Spectrum Visualizer [closed]
Good afternoon, my name is David and I have a question regarding on the Gtomee.com website. You see, I'm testing this code using LibGDX, Java, and Eclipse to test the music player that detects the ...
1
vote
1answer
45 views
An XML stats page for my game
So 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, ...
4
votes
1answer
59 views
Android 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, I have:
AdLoader al = new ...
0
votes
0answers
89 views
Encrypt images before uploading to Dropbox [closed]
I want to encrypt a file first before the file will be uploaded to the dropbox. So i have implement the encryption inside the uploading of the codes. However, there is an error after i integrate the ...
0
votes
0answers
49 views
Model View Control Issue: Null Pointer Initialization Question [closed]
Good morning again. This is David. Please, I need an urgent help regarding control model view where I making a code that uniquely separating into groups:
An Activity Java Class to Display the ...
0
votes
0answers
65 views
Null pointer exception while reading from SQLite database [closed]
I've created a class that reads and write into SQLite database, however when I try to get that data into another class (by creating an instance of it and calling one of its functions), it results in ...
0
votes
0answers
122 views
spectral Subtraction in java
hello all this is my Java Code for Boll's 1979 Spectral Subtraction Algorithm in Java .
this is based on Esfandiar Zavarehei Matlab code.
i have added some samples.
the code works very good and i'm ...
0
votes
0answers
133 views
How can I simplify this Android program?
I just started learning Java/Android programming.
This is my first basic program and it is working fine now. Thanks to the Stack overflow folks for helping me out. Now it would be really helpful if ...