求助各位大神LIstfragment中,分线程获取数据后刷新界面崩溃,用分线程加载数据后 5C
如题:代码如下,要在viewpager中的一个fragment中加载一个listview,用分线程加载数据后,handleMessage给成员变量的集合赋值后,notify,会直接崩溃

/**

  • 报警图片
    */
    public class AlarmPhotoFragment extends ListFragment {

    private int mType = 0;
    private ListView mListView;
    public static int type = 0;
    private String urlStr;
    private LayoutInflater mInflater;
    private List cids = new ArrayList();
    List lists = new ArrayList();
    LocalRecordAlarmAdapter mLocalRecordAlarmAdapter;
    private AlarmPhotoBean alarmPhotoBeans = new AlarmPhotoBean();

    int page = 1;

    private Handler handler = new Handler() {
    @Override
    public void handleMessage(Message msg) {
    super.handleMessage(msg);

        switch (msg.what) {
            case 9:
                String json = (String) msg.obj;
                Gson gson = new Gson();
                AlarmPhotoBean alarmPhotoBean = gson.fromJson(json, AlarmPhotoBean.class);
    
                CLog.v("alarmPhotoBean: " + alarmPhotoBean);
                if (!alarmPhotoBean.getBase_urls().isEmpty() && !alarmPhotoBean.getTimestamps().isEmpty()) {
                    List<AlarmPhotoBean.Timestamps> timestamps = alarmPhotoBean.getTimestamps();
                    List<AlarmPhotoBean.Timestamps.ListEntity> list = timestamps.get(0).getList();
    
                    CLog.v("alarmPhotoBeans:" + alarmPhotoBean);
                    lists.addAll(list);
                    alarmPhotoBeans = alarmPhotoBean;
                    com.lingyang.sdk.util.CLog.v("lists: " + lists);
                    notifyDataSetChanged();
                }
                break;
        }
    }
    

    };

    @Override
    public void onAttach(Activity activity) {
    super.onAttach(activity);
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mType = getArguments().getInt("type", 0);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
    @Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    View view = inflater.inflate(R.layout.fragment_localrecord_alarm, container, false);

    initData();
    mInflater = inflater;
    page = 1;
    return view;
    

    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    mListView = getListView();
    if(mLocalRecordAlarmAdapter == null)
    {
    mLocalRecordAlarmAdapter = new LocalRecordAlarmAdapter(getActivity(), lists, alarmPhotoBeans);
    } else {
    setListAdapter(mLocalRecordAlarmAdapter);
    mLocalRecordAlarmAdapter.notifyDataSetChanged();
    }
    }

    private void notifyDataSetChanged() {
    if (mLocalRecordAlarmAdapter == null) {
    mLocalRecordAlarmAdapter = new LocalRecordAlarmAdapter(getActivity(), lists, alarmPhotoBeans);
    }
    CLog.v("notifyDataSetChanged()");
    setListAdapter(mLocalRecordAlarmAdapter);
    }

    /**

    • 初始化集合信息
      */
      private void initData() {
      Date dNow = new Date(); //当前时间
      long time = dNow.getTime();
      long begoreTime = TimeUtils.getBeforeTimeStamp(time);

      getTimeStamp(begoreTime, time);
      }

    public void getTimeStamp(long start, long end) {
    String userToken;
    String accessToken;
    List mListCamera = AttentionFragment.mListCamera;
    // for (final CameraResponse.MyCameras.Camera cameras : mListCamera) {
    final CameraResponse.MyCameras.Camera cameras = mListCamera.get(0);

        com.lingyang.sdk.util.CLog.v("cid: " + cameras.cid);
        userToken = CloudOpenAPI.getInstance().getUserToken();
        accessToken = CloudOpenAPI.getInstance().getDeviceToken(cameras.cid);
        urlStr = AlarmHttpUtils.TOTIMESTAMP + cameras.cid + "/snapshots?from=" + start / 1000 + "&type=3" + "&to=" + end / 1000
                + "&user_token=" + userToken + "&access_token=" + accessToken;
    
        cids.add(cameras.cid);
    
        Object obj = new Object();
        synchronized (obj) {
            new Thread() {
                public void run() {
                    try {
                        URL url = null;
                        HttpURLConnection conn = null;
                        InputStream is = null;
                        ByteArrayOutputStream baos = null;
                        try {
                            url = new URL(urlStr);
                            conn = (HttpURLConnection) url.openConnection();
                            conn.setReadTimeout(AlarmHttpUtils.TIMEOUT_IN_MILLIONS);
                            conn.setConnectTimeout(AlarmHttpUtils.TIMEOUT_IN_MILLIONS);
                            conn.setRequestMethod("GET");
                            conn.setRequestProperty("accept", "*/*");
                            conn.setRequestProperty("connection", "Keep-Alive");
                            com.lingyang.sdk.util.CLog.v("conn.getResponseCode(): " + conn.getResponseCode());
                            if (conn.getResponseCode() == 200) {
                                is = conn.getInputStream();
                                baos = new ByteArrayOutputStream();
                                int len = -1;
                                byte[] buf = new byte[128];
    
                                while ((len = is.read(buf)) != -1) {
                                    baos.write(buf, 0, len);
                                }
                                baos.flush();
                                baos.toString();
    
                                Message message = new Message();
                                message.what = 9;
                                message.obj = baos.toString();
                                handler.sendMessage(message);
                            } else {
                                throw new RuntimeException(" responseCode is not 200 ... ");
                            }
    
                        } catch (Exception e) {
                            e.printStackTrace();
                        } finally {
                            try {
                                if (is != null)
                                    is.close();
                            } catch (IOException e) {
                            }
                            try {
                                if (baos != null)
                                    baos.close();
                            } catch (IOException e) {
                            }
                            conn.disconnect();
                        }
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
            }.start();
        }
    

    // }
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    }
    @Override
    public void onResume() {
    super.onResume();

    }

}

1个回答

打印日志如下
09-29 11:01:46.792 11062-11062/com.lingyang.camera V/LocalRecordAlarmAdapter.java﹕ 61:getCount()
09-29 11:01:46.802 11062-11062/com.lingyang.camera V/LocalRecordAlarmAdapter.java﹕ 61:getCount()
09-29 11:01:46.802 11062-11062/com.lingyang.camera V/LocalRecordAlarmAdapter.java﹕ 61:getCount()
09-29 11:01:46.802 11062-11062/com.lingyang.camera V/LocalRecordAlarmAdapter.java﹕ 176:getView()
09-29 11:01:46.802 11062-11062/com.lingyang.camera V/LocalRecordAlarmAdapter.java﹕ 197:getView -position:0
09-29 11:01:46.802 11062-11062/com.lingyang.camera V/LocalRecordAlarmAdapter.java﹕ 199:timestamp: 1443081384
09-29 11:01:46.812 11062-11062/com.lingyang.camera V/LocalRecordAlarmAdapter.java﹕ 146:result0:01-18 -result1:01-18 -timeStamp:1443081384 -getTimestamp: 1443081384
09-29 11:01:46.812 11062-11062/com.lingyang.camera V/CloudOpenAPI.java﹕ 204:getUserToken:53574C0090500B56FFFFFFFFB9A8DC87039F728D9151C52275B17EEF
09-29 11:01:46.812 11062-11062/com.lingyang.camera W/dalvikvm﹕ JNI WARNING: received null jstring
09-29 11:01:46.812 11062-11062/com.lingyang.camera W/dalvikvm﹕ in Lcom/lingyang/sdk/api/PlatformAPI;.GetDeviceAccessToken:(Ljava/lang/String;)Ljava/lang/String; (GetStringUTFChars)
09-29 11:01:46.822 11062-11062/com.lingyang.camera I/dalvikvm﹕ "main" prio=5 tid=1 NATIVE
09-29 11:01:46.822 11062-11062/com.lingyang.camera I/dalvikvm﹕ | group="main" sCount=0 dsCount=0 obj=0x4162d700 self=0x401da0b0
09-29 11:01:46.822 11062-11062/com.lingyang.camera I/dalvikvm﹕ | sysTid=11062 nice=0 sched=0/0 cgrp=apps handle=1074810672
09-29 11:01:46.822 11062-11062/com.lingyang.camera I/dalvikvm﹕ | schedstat=( 0 0 0 ) utm=147 stm=28 core=0
09-29 11:01:46.832 11062-11062/com.lingyang.camera I/dalvikvm﹕ #00 pc 00001260 /system/lib/libcorkscrew.so (unwind_backtrace_thread+27)
09-29 11:01:46.832 11062-11062/com.lingyang.camera I/dalvikvm﹕ #01 pc 0005ffe8 /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+35)
09-29 11:01:46.832 11062-11062/com.lingyang.camera I/dalvikvm﹕ #02 pc 0005471e /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+289)
09-29 11:01:46.832 11062-11062/com.lingyang.camera I/dalvikvm﹕ #03 pc 000547ae /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+25)
09-29 11:01:46.832 11062-11062/com.lingyang.camera I/dalvikvm﹕ #04 pc 0003aa3e /system/lib/libdvm.so
09-29 11:01:46.832 11062-11062/com.lingyang.camera I/dalvikvm﹕ #05 pc 0003ad12 /system/lib/libdvm.so
09-29 11:01:46.832 11062-11062/com.lingyang.camera I/dalvikvm﹕ #06 pc 0003bc8a /system/lib/libdvm.so
09-29 11:01:46.832 11062-11062/com.lingyang.camera I/dalvikvm﹕ #07 pc 0003def2 /system/lib/libdvm.so
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #08 pc 00037920 /data/data/com.lingyang.camera/lib/libjplayer.so (Java_com_lingyang_sdk_api_PlatformAPI_GetDeviceAccessToken+31)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #09 pc 0001fb70 /system/lib/libdvm.so (dvmPlatformInvoke+112)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #10 pc 0004e8b8 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+359)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #11 pc 00029020 /system/lib/libdvm.so
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #12 pc 0002d7e8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #13 pc 000601da /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+373)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #14 pc 00067198 /system/lib/libdvm.so
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #15 pc 00029020 /system/lib/libdvm.so
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #16 pc 0002d7e8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #17 pc 0005ff30 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+271)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #18 pc 0004aee6 /system/lib/libdvm.so
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #19 pc 00048c72 /system/lib/libandroid_runtime.so
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #20 pc 00049690 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+367)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #21 pc 00000dce /system/bin/app_process
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ #22 pc 00017310 /system/lib/libc.so (__libc_init+35)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at com.lingyang.sdk.api.PlatformAPI.GetDeviceAccessToken(Native Method)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at com.lingyang.sdk.api.CloudOpenAPI.getDeviceToken(CloudOpenAPI.java:210)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at com.lingyang.camera.ui.adapter.LocalRecordAlarmAdapter.getView(LocalRecordAlarmAdapter.java:225)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.AbsListView.obtainView(AbsListView.java:2425)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.ListView.makeAndAddView(ListView.java:1769)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.ListView.fillDown(ListView.java:672)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.ListView.fillFromTop(ListView.java:733)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.ListView.layoutChildren(ListView.java:1622)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.AbsListView.onLayout(AbsListView.java:2260)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.onLayout(LinearLayout.java:1420)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.support.v4.view.ViewPager.onLayout(ViewPager.java:1594)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.onLayout(LinearLayout.java:1420)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.onLayout(LinearLayout.java:1420)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.support.v4.view.ViewPager.onLayout(ViewPager.java:1594)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.842 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.onLayout(LinearLayout.java:1420)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.LinearLayout.onLayout(LinearLayout.java:1420)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.View.layout(View.java:13873)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewGroup.layout(ViewGroup.java:4498)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1940)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1761)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1070)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4296)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.Choreographer.doCallbacks(Choreographer.java:555)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.Choreographer.doFrame(Choreographer.java:525)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.os.Handler.handleCallback(Handler.java:615)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.os.Handler.dispatchMessage(Handler.java:92)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.os.Looper.loop(Looper.java:137)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at android.app.ActivityThread.main(ActivityThread.java:4914)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at java.lang.reflect.Method.invokeNative(Native Method)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at java.lang.reflect.Method.invoke(Method.java:511)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:808)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:575)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ at dalvik.system.NativeStart.main(Native Method)
09-29 11:01:46.852 11062-11062/com.lingyang.camera I/dalvikvm﹕ [ 09-29 11:01:46.852 11062:11062 E/dalvikvm ]
VM aborting
09-29 11:01:46.852 11062-11062/com.lingyang.camera A/libc﹕ Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 11062 (lingyang.camera)

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问