How to I get album art for each audio file from content provider

by eaindra nilar » Fri, 20 Nov 2009 14:53:17 GMT


Sponsored Links
 Hi,

Everyone,

I cannot see any relationship between audio file and album art .
Also , genre column .


I really want it.

--



Other Threads

1. inflate layout crashes after animation

Hello,

I do an animation moving a webview outside the screen. on Animation
end event, I'm trying to recreate a view containing a webview (using
layoutinflater) but I've always the following error and I don't
understand why.
This method is called to display the content before the animation.
It's the same method called to rebuild the screen.

LayoutInflater layout = getLayoutInflater();
mCurrentLayout.removeAllViews();
RelativeLayout convertViewDetails = (RelativeLayout) layout.inflate(
                                R.layout.layout_photo, null);
mCurrentLayout.addView(convertViewDetails, 0);
String htmlCode = "my html code";
((WebView) convertViewDetails.findViewById(R.id.imgPhotoView))
                                .loadData(htmlCode, "text/html", "utf-8");

((WebView) convertViewDetails.findViewById(R.id.imgPhotoView))
                                .setOnTouchListener(evtOnFlipper);


The (long) exception
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):
android.view.InflateException: Binary XML file line #7: Error
inflating class java.lang.reflect.Constructor
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.LayoutInflater.createView(LayoutInflater.java:512)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView
(PhoneLayoutInflater.java:56)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
com.cbsinteractive.zdnetfr.PhotosContentActivity.displayCurrentPhoto
(PhotosContentActivity.java:170)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
com.cbsinteractive.zdnetfr.PhotosContentActivity.access$1
(PhotosContentActivity.java:159)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
com.cbsinteractive.zdnetfr.PhotosContentActivity$5.onAnimationEnd
(PhotosContentActivity.java:255)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.animation.AnimationSet.getTransformation
(AnimationSet.java:329)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1363)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.View.draw(View.java:5944)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.View.draw(View.java:5841)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.View.draw(View.java:5841)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.View.draw(View.java:5841)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.View.draw(View.java:5841)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw
(PhoneWindow.java:1847)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewRoot.draw(ViewRoot.java:1217)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.os.Handler.dispatchMessage(Handler.java:99)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.os.Looper.loop(Looper.java:123)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
java.lang.reflect.Method.invokeNative(Native Method)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
java.lang.reflect.Method.invoke(Method.java:521)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
dalvik.system.NativeStart.main(Native Method)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347): Caused by:
java.lang.reflect.InvocationTargetException
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.webkit.WebView.<init>(WebView.java:583)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
java.lang.reflect.Constructor.constructNative(Native Method)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at
android.view.LayoutInflater.createView(LayoutInflater.java:499)
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     ... 55 more
12-30 10:57:21.785: ERROR/AndroidRuntime(1347): Caused by:
android.view.InflateException: Binary XML file line #21: Error
inflating class java.lang.reflect.Constructor
12-30 10:57:21.785: ERROR/AndroidRuntime(1347):     at android.view.

-- 

2. Just starting this, not working

I installed the sdk and eclipse. I am attempting to follow the guide
at http://developer.android.com/guide/tutorials/hello-world.html. I"m
not getting any notifications of errors. But my screen after running
does not look like the guide's. My screen opens up with a black
section with the word "Android" in the middle of it, on the left side.
And on the right side there are buttons consisting of a keyboard and
above that other buttons relating to a phone.  Any ideas? I should
point out tht setting up the ADT like they mention in the guide,
doesn't work. I believe I managed to do it correctly via Eclipse.

This is the exact code:

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView tv = new TextView(this);
        tv.setText("Hello, Android");
        setContentView(tv);

    }
}

-- 

3. Shared User Ids

4. blocking UI thread when Yes/No AlertDialog is displayed

5. How to simulate service crash in emulator ?

6. Liputan milis id-android

7. swap + ext partition di rom WG build 10.2