Note that there are some explanatory texts on larger screens.

plurals
  1. POUncaught exception thrown by finalizer in android app
    primarykey
    data
    text
    <p>Good day. I try to create an activity with map view and list view. What I have done</p> <pre><code>public class EnrouteActivity extends MapActivity { private ListView pointsListView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.enroute_work_layout); this.pointsListView = (ListView)findViewById(R.id.listViewPoints); String[] items = new String[] {"Пункт А", "Пункт Б", "Пункт В"}; //String[] items = this.GetAdapter(); ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, items); this.pointsListView.setAdapter(adapter); this.pointsListView.setItemsCanFocus(false); this.pointsListView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } private String[] GetAdapter(){ Routes routes = new Routes(); String[] items = new String[routes.points.size()]; for(int i = 0; i&lt;routes.points.size(); i++){ items[i] = routes.points.get(i).name; } return items; } </code></pre> <p>part of this layout</p> <pre><code>&lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="2.81" android:orientation="vertical" &gt; &lt;CalendarView android:id="@+id/calendar" android:layout_width="360dp" android:layout_height="234dp" /&gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Список точек по маршруту" android:textAppearance="?android:attr/textAppearanceLarge" /&gt; &lt;ListView android:id="@+id/listViewPoints" android:layout_width="match_parent" android:layout_height="wrap_content" android:choiceMode="multipleChoice" &gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:orientation="vertical" &gt; &lt;com.google.android.maps.MapView android:id="@+id/mapView" android:layout_width="604dp" android:layout_height="match_parent" android:layout_above="@+id/linearLayout1" android:layout_below="@+id/editText" android:apiKey="0FLRiHvfPXL2mqzQihPemczCJMUjk3TTD8umAPw" android:clickable="true" android:enabled="true" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>and here is exception</p> <pre><code>09-14 13:39:02.331: E/MapActivity(9606): Couldn't get connection factory client 09-14 13:39:02.464: D/dalvikvm(9606): GC_CONCURRENT freed 783K, 6% free 15328K/16199K, paused 2ms+3ms 09-14 13:39:02.464: E/System(9606): Uncaught exception thrown by finalizer 09-14 13:39:02.464: E/System(9606): java.lang.IllegalStateException: Binder has been finalized! 09-14 13:39:02.464: E/System(9606): at android.os.BinderProxy.transact(Native Method) 09-14 13:39:02.464: E/System(9606): at android.database.BulkCursorProxy.close(BulkCursorNative.java:288) 09-14 13:39:02.464: E/System(9606): at android.database.BulkCursorToCursorAdaptor.close(BulkCursorToCursorAdaptor.java:133) 09-14 13:39:02.464: E/System(9606): at android.database.CursorWrapper.close(CursorWrapper.java:49) 09-14 13:39:02.464: E/System(9606): at android.content.ContentResolver$CursorWrapperInner.close(ContentResolver.java:1591) 09-14 13:39:02.464: E/System(9606): at android.content.ContentResolver$CursorWrapperInner.finalize(ContentResolver.java:1604) 09-14 13:39:02.464: E/System(9606): at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:182) 09-14 13:39:02.464: E/System(9606): at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:168) 09-14 13:39:02.464: E/System(9606): at java.lang.Thread.run(Thread.java:856) </code></pre> <p>I find <a href="https://stackoverflow.com/questions/7265793/android-list-view-with-simplecursor-adapter-crashes-application-no-anr-shown">this</a> topic, but i haven't understand, about what coursor they speak =(( </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload