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
-2
votes
0answers
11 views
What is the best way to navigate android app(guidance/advice is needed) [closed]
Here is what I'm trying to achieve.(I'm an android noob, obviously)
I have a slide-menu on the left like in Facebook app.
When user clicks on a button in the menu what is the best way to ...
0
votes
0answers
43 views
Dual Analog Stick Controls
I started this question to get people to grasp a little bit more on how it is to develop analog controls for android devices. But my code is a little outdated so if anyone knows how to implement it ...
0
votes
0answers
62 views
Optimization of Android code suggestions? Iteration based
At the "if(a==2)" part of my code below, the android emulator takes 8 seconds to process and display some data in a list. I need to reduce this time to 1 second or less. I am accessing a 50 KB .txt ...
0
votes
0answers
53 views
Android database access
For my simple Android application I don't want to use an ORM, anyway I'd like to have a db-communcation layer easy to user, to read and efficient.
This is my solution: every entity (ex: Person) as an ...
3
votes
1answer
152 views
Java thread safety and caching techniques
This is my first Java multi-threading code. It is part of an Android application that is a client to a webpage that serves books. Each page of the book is in a separate PDF, and the Book class ...
3
votes
2answers
59 views
Is my logic correct checking for a newer remote file?
String slm = status.getHeader("last-modified");
SimpleDateFormat sdf = new SimpleDateFormat(
"EEE, dd MMM yyy HH:mm:ss zzz");
Date serverLastMod = null;
try {
...
5
votes
1answer
127 views
Get rid of pokemon exception handling
I wrote a productivity app for Android. It let's you switch system settings, like bluetooth, wifi, screen brightness, volumes, ringtones, mobile data, airplane mode, etc. Unfortunately I have ...
0
votes
0answers
26 views
Android Homescreen Widget Service… Efficient or a Mess?!
I have implemented changes from a question I asked on this widget here: Android Widget Code Review
I've added and changed a few things, so would love some more coding advice! Ever learning, but ...
1
vote
0answers
38 views
suggestion to improve http get and post code
Hi all I had developed an application in which I hit several urls and show data on mobile. But problem is that it requires more time. If I check same url on Firebug tool I got response in 2-3 seconds, ...
2
votes
0answers
40 views
Is this a correct way to handle a thread which uses a socket?
I am building an app for android to control VLC (mediaplayer) that runs on my computer.
Atm it's just a prototype and it works but I was wondering if I am correctly managing my HandlerThread and ...
1
vote
0answers
22 views
Is this code optimal? Image-downloader/wallpaper setter
I'm making an image-downloading app that sets the image as the device wallpaper. For this I used the class:
ImageDownloader.java
This class has a function which accepts a url and an ImageView. It ...
0
votes
0answers
78 views
Please criticize my mini-app for android
Began to read the book "Clean Code" by Robert Martin, I had a strong desire to learn how to write clear, easy to understand other people code.
ColorViewer application allows you to view the color in ...
2
votes
2answers
73 views
Android Widget Code Review
Anyone have any comments? Just trying to better my code if can be done. Thanks.
public class SacWidget extends AppWidgetProvider {
String roseUrl;
AQuery aq;
public void onUpdate(Context ...
1
vote
2answers
52 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 solution to my exception handling or ...
0
votes
0answers
44 views
I would like to ask for suggestions, criticisms and/or possible edits on my class file to be used on an Android Applciation?
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 ...