458
votes
6answers
100k views

'Must Override a Superclass Method' Errors after importing a project into Eclipse

Anytime I have to re-import my projects into Eclipse (if I reinstalled Eclipse, or changed the location of the projects), almost all of my overridden methods are not formatted correctly, causing the ...
346
votes
13answers
127k views

Any good graphing packages for Android? [closed]

With Android removing the Swing and AWT libraries from Java, I was wondering what solutions have been developed to display simple bar histograms, line graphs and other simple data visualizations in ...
283
votes
6answers
114k views

How to discover memory usage of my application in Android

I would like to know how I can find the memory used on my Android application, programmatically. I hope there is a way to do it. Plus I would like to understand how to get the free memory of the ...
249
votes
20answers
227k views

How to call SOAP web service in Android

I am having a lot of trouble finding good information on how to call a standard SOAP/WSDL web service with Android. All I've been able to find are either very convoluted documents and references to ...
219
votes
9answers
132k views

decompiling DEX into Java sourcecode

Are there any tools or recipes for turning Android DEX (VM bytecode) files into corresponding Java sourcecode?
182
votes
3answers
85k views

Download a file with Android, and showing the progress in a ProgressDialog

I am trying to write a simple application that gets updated. For this I need a simple function that can download a file and show the current progress in a ProgressDialog. I know how to do the ...
140
votes
4answers
31k views

CharSequence VS String in Java?

Programming in Android, most of the text values are expected in CharSequence. Why is that ? What is the benefit and what are the main impacts of using CharSequence over String ? What are the main ...
30
votes
6answers
16k views

custom listview adapter getView method being called multiple times, and in no coherent order

I have a custom list adapter: class ResultsListAdapter extends ArrayAdapter<RecordItem> { in the overridden 'getView' method I do a print to check what position is and whether it is a ...
28
votes
2answers
3k views

Fragment design: Adapting to multiple screen layouts by showing/hiding fragments within a single Activity?

I am trying to understand how to use Fragments to create apps that adapt well to multiple screens and layouts. I have studied a few examples: The Fragments document on Android Developer guide. ...
24
votes
6answers
20k views

Garbage collector in Android

I've seem many Android answers that suggest calling the garbage collector in some situations. Is it a good practice to request the garbage collector in Android before doing a memory-hungry operation? ...
22
votes
6answers
43k views

JSON Array iteration in Android/Java

I am building an android app that needs to download and synchronise with an online database, I am sending my query from the app to a php page which returns the relevant rows from a database in JSON ...
17
votes
3answers
8k views

Jar Mismatch Found 2 versions of android-support-v4.jar in the dependency list

I am trying to create 2 versions of an Android app (free/paid). I have an Android Library that contains files common to both. I created a new Android project and am trying to use the Library but get ...
17
votes
4answers
8k views

Android HttpClient persistant cookies

I have an Android application with multiple intents. The first intent is a login form, subsequent intents rely on cookies provided from the login process. The problem that I am having is that ...
16
votes
2answers
15k views

Can the android SDK work with JDK 1.7?

I Just installed the Android SDK R16 and JDK 7 but I keep getting the error "Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project ...
15
votes
4answers
5k views

Difference between Fragment And FragmentActivity

My question is apart from the obvious inheritance differences, what are the main differences between Fragment and FragmentActivity? To what scenarios are each class best suited? I'm trying to get an ...

1 2 3 4 5 2958
15 30 50 per page