The app I am working on needs to read a JSON file that may be anywhere from 1.5 to 3 MB in size. It seems to have no problem opening the file and converting the data to a string, but when it attempts to convert the string to a JSONArray, OutOfMemoryErrors are thrown. The exceptions look something like this:
E/dalvikvm-heap( 5307): Out ...
I am adding a local database as a cache to a remote web service in my android application to answer queries. I used ArrayAdapters before for list views to display the results from the web service. Now with a database cache, the result could be either a Cursor(from database) or a List(from web), which means the adapter can be CursorAdapte...
Is it possible to take a csv file stored in the res/raw resource directory and use it to populate a table in the sqlite3 database?
My thought was that, if there was a way to do a bulk import for the entire file into the table then that would be cleaner and faster than iterating over each line in the file and executing individual insert ...
I have been looking it up and I just cant seem to wrap myself around the onCreate and Bundles. I understand that the onCreate is called when the program starts but its how the Bundles get passed around and how they are pertinent. Can anyone try to put this into plain english because I cant seem to find it well described.
Thanks
...
Hi,
I have a Listview in my application. Listview rows are clickable. I have introduced a seek bar in each row of a Listview. Despite settings android:clickable="false" for Seekbar in layout xml, I am still able to click on it and move seek bar as desired. I don't want Seekbar to be clickbale but I do want Listview row to clickable.
An...
I moved my Android project to a laptop and now I get this when I hit Debug. Sounds like this is a bug? This shouldn't happen via Eclipse as far as I know.
Re-installation failed due to different application signatures.
The weirdest thing is this happened after I upgraded sdk/adt and Eclipse to support SDK 2.2 It was working fine earli...
I have some questions regarding database in android.
In my project, I would like to create a database with single table. I would also like to insert data on this table from word or excel document. is it possible? if so please how can I do it? some code snippets would be of great help.
I have four different activities which I would like...
Is it possible that the Android browser renders the HTML list box, such as:
item 1
item 2
item 3
item 4
All
as a dropdown? I can't seem to get it to display a proper multiline listbox. Anyone knows what the trick is?
...
How can i use .net webservice to make login app in android phone app?
i have the Main.xml in layout like this
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<E...
I am developing a game. In which, i want do set different vibration intensities for different events. I just want know if its really possible to control the vibration intensity and duration. Any advice or reference links, could be very helpful. Thanks in advance.
...
hello,
I am new in android. i am able to called single webmethod from a .net webservice. i am usuing ksoap2 to implement soap. But in my .net webservice there are many web methods.
I want to call more than one web methods.
So please give some idea on this matter.
Even i have tried by taking 2 soap_action and 2 method_name with single na...
I will be releasing two applications soon, one for my company and one for me. Publishing app on my own is straightforward, but I'm not sure which account to use for the company.
What practice do you use in your company?
I only see one solution, creating a special google account like [email protected] shared by the company Android dev...
Hi.
I have been developing android apps out of hobby and fun. I want to get more serious about android development. One particular thing that I am very keen on doing (or atleast trying my hand at) is andoroid ROM development for specific handsets. Like, maybe outdated HTC Touch. (Elf/Elfin).
I am at a loss to understand, what does it t...
How would I force the current thread to wait until another has finished before continuing.
In my program the user selects a MODE from an AlertDialog, I want to halt executing of the program before continuing as the mode holds important configuration for the gameplay.
new AlertDialog.Builder(this)
.setItems(R.array.game_mode...
How do I go to previous screen from current screen in Android app? I know there is a back button on phone, but it takes me to beginning screen of my app and I want my buttons on app to work for going back to previous screen.
...
how to change the font in textview? as default its shown up as Arial. how to change it to helvetica?
...
can someone explain to me the concept behind using bluetooth
my project in my studies is to make an android app using bluetooth, SQLLIGHT and google app
the app itself is a very easy one but i just dont get the tools i need to use :
how does the bluetooth works?
is there a simple example ?
the concept behind android GUI (i allready n...
Before making this question, I have searched and read these ones:
http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview
http://stackoverflow.com/questions/1409623/android-issue-with-lazy-loading-images-into-a-listview
My problem is I have a ListView, where:
Each row contains an ImageView, whos...
I have an android app for which i need to ensure that it has no design/interface issues on both Motorola Droid and HTC touch-screens.
Now my question is that do i have to have both devices available for testing? If not, then is there an alternate?
...
LEts say you have a normal textview, with "Stackoverflow" written in it, I would like to know if it it possible to rotate the textview about -90°, to have the S at the bottom and the W at the top of the screen?
of course, i could write my text in an image, rotate it and use it that way, but im interested in text right now.
thank you
...