未捕获的异常引发的终结

未捕获的异常引发的终结

本文介绍了未捕获的异常引发的终结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我是歌厅此错误。我用这code的

当我上单击显示的地方在地图上的这个错误我收到。 PLZ ASY我的解决方案

  08-28 16:38:20.554:E /系统(49​​78):未捕获的异常抛出终结
08-28 16:38:20.554:E /系统(49​​78):java.lang.IllegalStateException:活页夹已经敲定!
08-28 16:38:20.554:E /系统(49​​78):在android.os.BinderProxy.transact(本机方法)
08-28 16:38:20.554:E /系统(49​​78):在android.database.BulkCursorProxy.close(BulkCursorNative.java:288)
08-28 16:38:20.554:E /系统(49​​78):在android.database.BulkCursorToCursorAdaptor.close(BulkCursorToCursorAdaptor.java:133)
08-28 16:38:20.554:E /系统(49​​78):在android.database.CursorWrapper.close(CursorWrapper.java:49)
08-28 16:38:20.554:E /系统(49​​78):在android.content.ContentResolver $ CursorWrapperInner.close(ContentResolver.java:1591)
08-28 16:38:20.554:E /系统(49​​78):在android.content.ContentResolver $ CursorWrapperInner.finalize(ContentResolver.java:1604)
08-28 16:38:20.554:E /系统(49​​78):在java.lang.Daemons $ FinalizerDaemon.doFinalize(Daemons.java:182)
08-28 16:38:20.554:E /系统(49​​78):在java.lang.Daemons $ FinalizerDaemon.run(Daemons.java:168)
08-28 16:38:20.554:E /系统(49​​78):在java.lang.Thread.run(Thread.java:856)
 

这是我在clickevent ..我refered相同的code从上面的Andr​​oid蜂巢样..这里是我的codeUU需要Can有人指导我怎么去利用两个地点之间的谷歌路线JSON

onclick事件

  btnShowOnMap =(按钮)findViewById(R.id.btn_show_map);

    //调用后台异步任务加载谷歌的地方
    //获得来自谷歌的地方后,所有数据都显示在列表视图
    新LoadPlaces()执行();

    / **按钮单击事件在地图上显示* /
    btnShowOnMap.setOnClickListener(新View.OnClickListener(){

        @覆盖
        公共无效的onClick(查看为arg0){
            意图I =新的意图(getApplicationContext(),PlacesMapActivity.class);
            //发送用户当前的地理位置
            Log.i(getLatitude,+ gps.getLatitude());
            i.putExtra(user_latitude,Double.toString(gps.getLatitude()));
            i.putExtra(user_longitude,Double.toString(gps.getLongitude()));

            //附近经过的地方地图活动
            i.putExtra(near_places,nearPlaces);
            //盯着活动
            startActivity(ⅰ);
        }
    });
 

解决方案

我写了这样的回答:http://stackoverflow.com/a/13161591/1716620

我认为这个问题是由uncorrect变焦水平,同时进行拉伸,尝试执行图纸前检查您的缩放级别,我解决了这样

Hi i am geting this error. i am using thiscode http://www.androidhive.info/2012/08/android-working-with-google-places-and-maps-tutorial/

when i on click of Show place on map this error i am getting. plz asy me solution

08-28 16:38:20.554: E/System(4978): Uncaught exception thrown by finalizer
08-28 16:38:20.554: E/System(4978): java.lang.IllegalStateException: Binder has been finalized!
08-28 16:38:20.554: E/System(4978):     at android.os.BinderProxy.transact(Native Method)
08-28 16:38:20.554: E/System(4978):     at android.database.BulkCursorProxy.close(BulkCursorNative.java:288)
08-28 16:38:20.554: E/System(4978):     at android.database.BulkCursorToCursorAdaptor.close(BulkCursorToCursorAdaptor.java:133)
08-28 16:38:20.554: E/System(4978):     at android.database.CursorWrapper.close(CursorWrapper.java:49)
08-28 16:38:20.554: E/System(4978):     at android.content.ContentResolver$CursorWrapperInner.close(ContentResolver.java:1591)
08-28 16:38:20.554: E/System(4978):     at android.content.ContentResolver$CursorWrapperInner.finalize(ContentResolver.java:1604)
08-28 16:38:20.554: E/System(4978):     at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:182)
08-28 16:38:20.554: E/System(4978):     at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:168)
08-28 16:38:20.554: E/System(4978):     at java.lang.Thread.run(Thread.java:856)

here is my on clickevent.. i refered samecode from above sample of android hive.. here is my code u u needCan anyone guide me how to get Google Directions between two locations using JSON

onclick event

btnShowOnMap = (Button) findViewById(R.id.btn_show_map);

    // calling background Async task to load Google Places
    // After getting places from Google all the data is shown in listview
    new LoadPlaces().execute();

    /** Button click event for shown on map */
    btnShowOnMap.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View arg0) {
            Intent i = new Intent(getApplicationContext(), PlacesMapActivity.class);
            // Sending user current geo location
            Log.i("getLatitude",""+ gps.getLatitude());
            i.putExtra("user_latitude", Double.toString(gps.getLatitude()));
            i.putExtra("user_longitude", Double.toString(gps.getLongitude()));

            // passing near places to map activity
            i.putExtra("near_places", nearPlaces);
            // staring activity
            startActivity(i);
        }
    });
解决方案

as i wrote in this answer:http://stackoverflow.com/a/13161591/1716620

i think that the problem is caused by uncorrect zoom level while performing drawing,try to check your zoom level before performing drawings, i solved that way

这篇关于未捕获的异常引发的终结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-02 01:26