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. Database location and management via external tools.

How can I get direct access to created database (via sqlite tools)?
I'm develop application that should contain an already formed and
filled database. Also, I want manage this database via external tools
(mySql for example) and provide only fulfilled database within
completed application.

--~--~---------~--~----~------------~-------~--~----~

2. Native MediaPlayer plays audio but not video (3gp format)

Hi,
I have the following native source code that is supposed to display
video.
It plays 3gp file ok and I can hear the audio, but the video is not
shown.

Code:

// Global surface initialized elsewhere
extern sp<Surface> g_surface;

void media_player_test(void) {
    MediaPlayer *mp;

    mp = new MediaPlayer();
    if(mp == NULL) {
        return;
    }

    mp->setDataSource("/data/local/video.3gp");
    mp->setVideoSurface(g_surface);
    mp->prepare();
    mp->start();
}

End of code

In Java I manage to play video with almost the same implementation.
The only difference I can see is that Java code calls setType() for
the surface holder.
I can't find a matching operation for setType() in native code.
Is it important?

One more thing, I tried with and without listeners/callbacks, but the
video still doesn't play.

Thank you.
David

--~--~---------~--~----~------------~-------~--~----~

3. Transparency on Views behaving differently in 1.5

4. Make a application default launcher

5. How can disable/suspend/resume audio service at runtime?

6. How to debug on an actual device?

7. android market merchant accounts not available in europe