Problem with ActivityGroup app ported to 1.5

by Breno » Wed, 29 Apr 2009 21:02:39 GMT


Sponsored Links
 i,

We have an app almost done, and what is done untill now is
working perfectly. I tried yesterday to use with SDK 1.5 Official, and
after inserted the

<uses-sdk android:minSdkVersion="3"></uses-sdk>

Compiled normally. But, when starts the app, crashes at beginning.
Our app consist in a list of contacts, downloaded from a server.
This contact list have a ImageViewer, an Icon and few text, each
contact. The main Activity is a ActivityGroup, because we use a
TabActivity and a Activity inside. The Activity is just a Combo Box
with a ViewHolder. So, nothing special untill here.
When the app crashes, the output log in logcat is below:

04-29 09:24:36.608: INFO/dalvikvm(1031): Stack overflow, expanding
(0x41048200 to 0x41048000)
04-29 09:24:36.618: INFO/dalvikvm(1031): Shrank stack (to 0x41048200,
curFrame is 0x41049cd8)
04-29 09:24:36.628: DEBUG/AndroidRuntime(1031): Shutting down VM
04-29 09:24:36.641: WARN/dalvikvm(1031): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
04-29 09:24:36.648: ERROR/AndroidRuntime(1031): Uncaught handler:
thread main exiting due to uncaught exception
04-29 09:24:36.718: ERROR/AndroidRuntime(1031):
java.lang.StackOverflowError
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.ImageView.onDraw(ImageView.java:842)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.View.draw(View.java:5838)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.AbsListView.dispatchDraw(AbsListView.java:1319)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.ListView.dispatchDraw(ListView.java:2820)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.View.draw(View.java:5944)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.AbsListView.draw(AbsListView.java:2121)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.View.draw(View.java:5841)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-29 09:24:36.718: ERROR/AndroidRuntim



Other Threads

1. android and restful api

Hi there !,

I am a very new to android application development and need to solve
this problem.

In my activity window, I would like to provide a button which makes a
restful api call. That call returns an xml response. My server will
wait until it gets back that response. Once it get backs response. It
opens another activity window and parses the xml results and display
them accordingly.

How is this possible ? . To break down my questions again

How to hit a button which in return does restful API call ?

How to be remain in the wait state until I get the response back ?.
Whats normally done ?. What to do during that wait ?

How to open a new activity window and parse the xml file and display
the results accordingly ?

--RJ





-- 

2. how to parse this string using json

String s  = [{"id": 1, "fields": {"Name": "hello1", "Age": "10" }},
{"id": 2, "model": "fields": {"Name": "hello2", "Age": "12"}}]

I get error when I do this

jObject = new JSONObject(s);


--RJ

-- 

3. Problem Solved Upgrade AmonRa di Dream Re

4. Android laper

5. Oracle Android App Store

6. bug with notifyDataSetChanged() in ArrayAdapter ?

7. Problem With Motorola Droid