paly youtube fail on android platform

by jason » Wed, 20 Jan 2010 02:07:43 GMT


Sponsored Links
 below is my log message:

# D/dalvikvm( 1919): GC freed 84 objects / 3544 bytes in 177ms
I/ActivityManager( 1871): Starting activity: Intent
{ act=android.intent.action.MAIN   cat=
[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.google.android.youtube/.HomeActivity }
I/ActivityManager( 1871): Start proc com.google.android.youtube for
activity com.google.android.youtube/.HomeActivity: pid=2177 uid=10023
gids={3003, 1015}
D/dalvikvm( 1833): GC freed 281 objects / 10704 bytes in 111ms
select 2165 (app_process), adj 15, size 4994, to kill
send sigkill to 2165 (app_process), adj 15, size 4994
D/dalvikvm( 1833): GC freed 47 objects / 2064 bytes in 119ms
I/ActivityManager( 1871): Process com.android.settings (pid 2165) has
died.
D/dalvikvm( 1833): GC freed 2 objects / 56 bytes in 114ms
I/ActivityThread( 2177): Publishing provider
com.google.android.youtube.SuggestionProvider:
com.google.android.youtube.suggest.SuggestionProvider
E/ActivityThread( 2177): Failed to find provider info for
com.google.settings
E/ActivityThread( 2177): Failed to find provider info for
com.google.settings
E/ActivityThread( 2177): Failed to find provider info for
com.google.settings
I/YouTube ( 2177): Distribution channel:mvapp-android-google
D/AndroidRuntime( 2177): Shutting down VM

could anybody tell me what happen the two issue:
1. I/ActivityManager( 1871): Process com.android.settings (pid 2165)
has died.
2. I/ActivityThread( 2177): Publishing provider
com.google.android.youtube.SuggestionProvider:
    com.google.android.youtube.suggest.SuggestionProvider
    E/ActivityThread( 2177): Failed to find provider info for
com.google.settings

how to do fix this problem?



Other Threads

1. setImageURI is changing the size of the image!

I am running into a very weird thing.  I have an ImageView, and when I
call setImageURI with an image, it seems to change the size of the
image view.

                        <ImageView
                                android:id="@+id/MyImage"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_gravity="center_horizontal"
                                android:src="@drawable/default_image"/>

the default image is 195 x 195, i am trying to set the image to be 200
x 200, after setting the image using setImageURI, i get the dimensions
back and it says it's 48 x 48.

I have tried a bunch of different android:scaleType parameters, and I
couldn't find anything that worked.

I also tried explicitly setting the size (layout_width="200px") and it
seems to work.

any ideas?

tia.

-- 

2. context menu is black

I followed the instructions how to create a context menu but mine
shows up completely black and nothing in it. Anyone has already had
the same issue and can help me how he/she solved it?

Thanks

Here my class .java and menu .xml files

package com.MyProject;

import android.view.MenuInflater;
import android.view.MenuItem;
import android.app.Activity;
import android.view.ContextMenu;
import android.view.View;
import android.view.ContextMenu.ContextMenuInfo;

public class ColorsActivity extends Activity {

        @Override
        public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
                  super.onCreateContextMenu(menu, v, menuInfo);
                  MenuInflater inflater = getMenuInflater();
                  inflater.inflate(R.menu.context_menu, menu);
                  registerForContextMenu(v);

        }
        public boolean onContextItemSelected(MenuItem item) {
                switch (item.getItemId()) {
                        case R.id.red:
                                if (item.isChecked()) item.setChecked(false);
                                else item.setChecked(true);
                                return true;
                        case R.id.blue:
                                if (item.isChecked()) item.setChecked(false);
                                else item.setChecked(true);
                                return true;
                        case R.id.green:
                                if (item.isChecked()) item.setChecked(false);
                                else item.setChecked(true);
                                return true;
                        case R.id.yellow:
                                if (item.isChecked()) item.setChecked(false);
                                else item.setChecked(true);
                                return true;
                        case R.id.black:
                                if (item.isChecked()) item.setChecked(false);
                                else item.setChecked(true);
                                return true;
                        case R.id.white:
                                if (item.isChecked()) item.setChecked(false);
                                else item.setChecked(true);
                                return true;
                        case R.id.orange:
                                if (item.isChecked()) item.setChecked(false);
                                else item.setChecked(true);
                                return true;
                        default:
                                return super.onContextItemSelected(item);
                }
        }
}

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <group android:checkableBehavior="single">
        <item android:id="@+id/red"
              android:title="@string/red"
              android:checked="true" />
        <item android:id="@+id/blue"
              android:title="@string/blue" />
        <item android:id="@+id/green"
              android:title="@string/green" />
        <item android:id="@+id/yellow"
              android:title="@string/yellow" />
        <item android:id="@+id/black"
              android:title="@string/black" />
        <item android:id="@+id/white"
              android:title="@string/white" />
        <item android:id="@+id/orange"
              android:title="@string/orange" />
    </group>
</menu>

-- 

3. Easiest way to know if SD card has been prepared?

4. Sharing a stream object between activities of a tab view

5. eclipse - parseSDKContent failed message

6. HttpURLConnection or HttpClient

7. specify audio out