title: Why does JavaConversions._ do not take place for Buffer when java List is expected?
body: <p>I am using Scala in Android, and I want to convert scala.collection.mutable.ArrayBuffer to Java.util.List. But it do not work out, can some help me out?</p>
  
  <p>code:</p>
  
  <pre><code>package com.ssj.DoubanPipi.activity.fragment
  
  import android.app.Fragment
  import android.view.{View, LayoutInflater, ViewGroup}
  import android.os.Bundle
  import com.ssj.DoubanPipi.R
  import android.widget.{ListView, SimpleAdapter}
  import scala.collection.mutable.ArrayBuffer
  import scala.collection.JavaConversions._
  
  /**
   * Created by shenshijun on 14-5-31.
   */
  class MainFragment extends Fragment {
    override def onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle) = {
      val rootView = inflater.inflate(R.layout.main_fragment, container, false)
      val listView = (rootView findViewById R.id.fragment_list).asInstanceOf[ListView]
      val adapter = new SimpleAdapter(getActivity, MainFragment.menu_list,
        R.layout.main_fragment_list, Array("text", "image"), Array(R.id.action, R.id.action_image))
      listView setAdapter adapter
      rootView
    }
  
    def onSign(view: View) {
    }
  }
  
  object MainFragment {
    val menu_list_text = Array(R.string.login, R.string.exit)
    val menu_list_image = Array(R.drawable.douban, R.drawable.exit)
    val menu_list = new ArrayBuffer[Map[String, Any]]()
    val len = menu_list_image.length
    for (index &lt;- 0 until len) {
      val map = Map("text" -&gt; menu_list_text(index), "image" -&gt; menu_list_image(index))
      menu_list += map
    }
  }
  </code></pre>
  
  <p>and the error message is the following:</p>
  
  <pre><code>type mismatch;
   found   : scala.collection.mutable.ArrayBuffer[scala.collection.immutable.Map[String,Any]]
   required: java.util.List[_ &lt;: java.util.Map[String, _]]
      val adapter = new SimpleAdapter(getActivity, MainFragment.menu_list,
                                                                ^
  </code></pre>