Video Playback issue- Please help

by Naveen Rapaka » Sun, 25 Apr 2010 04:32:52 GMT


Sponsored Links
 The following error i am getting when i do video play back. The video
file is able to play the audio but not able to see the preview on the
screen. The following log is getting printed

[  149.327615] pcm_out: open
[  149.428382] mdp_ppp: could not retrieve image from memory
E/copybit ( 1127): copyBits failed (Operation not permitted)
E/SurfaceFlinger( 1127): GL error 0x0502

Also the pmem block of the android shows the following log which i
have put,
[   50.288855]
<6>Nav: In Major params: start: 21028000 len: 0
[   50.302686]
<3>mdp_ppp: could not retrieve image from memory


Please help me if anyone are aware of this isse.

Thanks in Advance
-Naveen Rapaka

--



Other Threads

1. Strange behavior Spinner in nested LinearLayouts. Bug or Feature?

Hello android enthusiasts,

I noticed a pretty strange behavior today. It seems as if the number
of executions of an overriden getView() methode (of
SimpleCursorAdapter) is correlated to the number of LinearLayouts (the
Spinner widget that uses this adapter) it is nested in.

The following code illustrates this:

############################
####DemonstrateBug.java#####
############################
public class DemonstrateBug extends Activity {

    @Override
    protected void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.bug);

        String[] from = new String[] { People.NAME };
        int[] to = { R.id.tv_name };

        Cursor cursor = managedQuery(People.CONTENT_URI, new String[] {
                People._ID, People.NAME }, null, null);

        SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
                R.layout.in_spinner, cursor, from, to) {
            @Override
            public View getView(int position, View convertView, ViewGroup
parent) {
                Log.d("BUG", "getView for posititon " + position);
                return super.getView(position, convertView, parent);
            }
        };

        Spinner s = (Spinner) findViewById(R.id.spinner);
        s.setAdapter(adapter);
        s.setSelection(2);
    }
}

###############################
###res/layout/bug.xml############
###############################
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:orientation="vertical">
        <LinearLayout android:layout_width="wrap_content"
                android:layout_height="wrap_content" 
android:orientation="vertical">
                <LinearLayout android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="vertical">
                        <Spinner android:id="@+id/spinner"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent" />
                </LinearLayout>
        </LinearLayout>
</LinearLayout>

Output:
...
D/ActivityThread( 5979): Installing external provider
contacts;call_log:
com.google.android.providers.contacts.ContactsProvider
D/BUG     ( 5979): getView for posititon 0
D/BUG     ( 5979): getView for posititon 0
D/BUG     ( 5979): getView for posititon 2
...

Expected Output:
...
D/ActivityThread( 5979): Installing external provider
contacts;call_log:
com.google.android.providers.contacts.ContactsProvider
(maybe: "D/BUG     ( 5979): getView for posititon 0" because of
initialization)
D/BUG     ( 5979): getView for posititon 2
....

If i nest another LinearLayout arround the Spinner, getView will be
executed 4 times. After that I can nest as many Views as I like,
getView will not be called more than 4 times.

I have 2 problems with the bug:
1) I have a pretty complicated layout and I load and scale an image in
getView. When getView is executed 4 times it takes pretty long
(because the image will be scaled and loaded 4 times).
2) Even if I should not do resource intensive stuff in getView() it
creates side effects because 1 time getView is called for the right
position, the other times it is called for the first item in the
spinner.

I have a similar issue with ListView in a ListActivity. But it is
harder to reproduce. I hope gaining insight in this behavior will
reveal insight in the other one as well.

Can you reproduce said behavior? Should I file a bug report?

Bye bye,
Valentin
--~--~---------~--~----~------------~-------~--~----~

2. Button im map

I want to show my contacts on the map showing their photos. But I want
these images to be clickable.
In other words I want to put a button on a Overlay and make link it to
a webpages.
Is that possible?

Gustavo avila.
androidforum.com.br
--~--~---------~--~----~------------~-------~--~----~

3. Are you satisfied or disappointed with the level of support from Google, for Android?

4. Listening to button events.

5. Call out to the community about the poor quality of Android's error messaging

6. Listview & animation problem

7. What happens when an activity does something in for instance onMenuItemSelected() or any other method and other activity comes up?