FATAL EXCEPTION: main
Process: com.im_festivalsms, PID: 3202
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.im_festivalsms/com.im_festivalsms.ChooseMsgActivity}: java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView
at android.widget.AdapterView.addView(AdapterView.java:487)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:810)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at com.im_festivalsms.ChooseMsgActivity.onCreate(ChooseMsgActivity.java:33)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
【蜘蛛侠TG@abin789】-2400
【蜘蛛侠TG@abin789】-2401
【蜘蛛侠TG@abin789】-2402
【蜘蛛侠TG@abin789】-2403
【蜘蛛侠TG@abin789】-2404
【蜘蛛侠TG@abin789】-2405
【蜘蛛侠TG@abin789】-2406
【蜘蛛侠TG@abin789】-2407
【蜘蛛侠TG@abin789】-2408
【蜘蛛侠TG@abin789】-2409
【蜘蛛侠TG@abin789】-2410
【蜘蛛侠TG@abin789】-2411
【蜘蛛侠TG@abin789】-2412
【蜘蛛侠TG@abin789】-2413
【蜘蛛侠TG@abin789】-2414
【蜘蛛侠TG@abin789】-2415
【蜘蛛侠TG@abin789】-2416
【蜘蛛侠TG@abin789】-2417
【蜘蛛侠TG@abin789】-2418
【蜘蛛侠TG@abin789】-2419
【蜘蛛侠TG@abin789】-2420
【蜘蛛侠TG@abin789】-2421
【蜘蛛侠TG@abin789】-2422
【蜘蛛侠TG@abin789】-2423
【蜘蛛侠TG@abin789】-2424
【蜘蛛侠TG@abin789】-2425
【蜘蛛侠TG@abin789】-2426
【蜘蛛侠TG@abin789】-2427
【蜘蛛侠TG@abin789】-2428
【蜘蛛侠TG@abin789】-2429
【蜘蛛侠TG@abin789】-2430
【蜘蛛侠TG@abin789】-2431
【蜘蛛侠TG@abin789】-2432
【蜘蛛侠TG@abin789】-2433
【蜘蛛侠TG@abin789】-2434
【蜘蛛侠TG@abin789】-2435
【蜘蛛侠TG@abin789】-2436
【蜘蛛侠TG@abin789】-2437
【蜘蛛侠TG@abin789】-2438
【蜘蛛侠TG@abin789】-2439
【蜘蛛侠TG@abin789】-2440
【蜘蛛侠TG@abin789】-2441
【蜘蛛侠TG@abin789】-2442
【蜘蛛侠TG@abin789】-2443
【蜘蛛侠TG@abin789】-2444
【蜘蛛侠TG@abin789】-2445
【蜘蛛侠TG@abin789】-2446
【蜘蛛侠TG@abin789】-2447
【蜘蛛侠TG@abin789】-2448
【蜘蛛侠TG@abin789】-2449
【蜘蛛侠TG@abin789】-2450
【蜘蛛侠TG@abin789】-2451
【蜘蛛侠TG@abin789】-2452
【蜘蛛侠TG@abin789】-2453
【蜘蛛侠TG@abin789】-2454
【蜘蛛侠TG@abin789】-2455
【蜘蛛侠TG@abin789】-2456
【蜘蛛侠TG@abin789】-2457
【蜘蛛侠TG@abin789】-2458
【蜘蛛侠TG@abin789】-2459
【蜘蛛侠TG@abin789】-2460
【蜘蛛侠TG@abin789】-2461
【蜘蛛侠TG@abin789】-2462
【蜘蛛侠TG@abin789】-2463
【蜘蛛侠TG@abin789】-2464
【蜘蛛侠TG@abin789】-2465
【蜘蛛侠TG@abin789】-2466
【蜘蛛侠TG@abin789】-2467
【蜘蛛侠TG@abin789】-2468
【蜘蛛侠TG@abin789】-2469
【蜘蛛侠TG@abin789】-2470
【蜘蛛侠TG@abin789】-2471
【蜘蛛侠TG@abin789】-2472
【蜘蛛侠TG@abin789】-2473
【蜘蛛侠TG@abin789】-2474
【蜘蛛侠TG@abin789】-2475
【蜘蛛侠TG@abin789】-2476
【蜘蛛侠TG@abin789】-2477
【蜘蛛侠TG@abin789】-2478
【蜘蛛侠TG@abin789】-2479
【蜘蛛侠TG@abin789】-2480
【蜘蛛侠TG@abin789】-2481
【蜘蛛侠TG@abin789】-2482
【蜘蛛侠TG@abin789】-2483
【蜘蛛侠TG@abin789】-2484
【蜘蛛侠TG@abin789】-2485
【蜘蛛侠TG@abin789】-2486
【蜘蛛侠TG@abin789】-2487
【蜘蛛侠TG@abin789】-2488
【蜘蛛侠TG@abin789】-2489
【蜘蛛侠TG@abin789】-2490
【蜘蛛侠TG@abin789】-2491
【蜘蛛侠TG@abin789】-2492
【蜘蛛侠TG@abin789】-2493
【蜘蛛侠TG@abin789】-2494
【蜘蛛侠TG@abin789】-2495
【蜘蛛侠TG@abin789】-2496
【蜘蛛侠TG@abin789】-2497
【蜘蛛侠TG@abin789】-2498
【蜘蛛侠TG@abin789】-2499
【蜘蛛侠TG@abin789】-2500
【蜘蛛侠TG@abin789】-2501
【蜘蛛侠TG@abin789】-2502
【蜘蛛侠TG@abin789】-2503
【蜘蛛侠TG@abin789】-2504
【蜘蛛侠TG@abin789】-2505
【蜘蛛侠TG@abin789】-2506
【蜘蛛侠TG@abin789】-2507
【蜘蛛侠TG@abin789】-2508
【蜘蛛侠TG@abin789】-2509
【蜘蛛侠TG@abin789】-2510
【蜘蛛侠TG@abin789】-2511
【蜘蛛侠TG@abin789】-2512
【蜘蛛侠TG@abin789】-2513
【蜘蛛侠TG@abin789】-2514
【蜘蛛侠TG@abin789】-2515
【蜘蛛侠TG@abin789】-2516
【蜘蛛侠TG@abin789】-2517
【蜘蛛侠TG@abin789】-2518
【蜘蛛侠TG@abin789】-2519
【蜘蛛侠TG@abin789】-2520
【蜘蛛侠TG@abin789】-2521
【蜘蛛侠TG@abin789】-2522
【蜘蛛侠TG@abin789】-2523
【蜘蛛侠TG@abin789】-2524
【蜘蛛侠TG@abin789】-2525
【蜘蛛侠TG@abin789】-2526
【蜘蛛侠TG@abin789】-2527
【蜘蛛侠TG@abin789】-2528
【蜘蛛侠TG@abin789】-2529
【蜘蛛侠TG@abin789】-2530
【蜘蛛侠TG@abin789】-2531
【蜘蛛侠TG@abin789】-2532
【蜘蛛侠TG@abin789】-2533
【蜘蛛侠TG@abin789】-2534
【蜘蛛侠TG@abin789】-2535
【蜘蛛侠TG@abin789】-2536
【蜘蛛侠TG@abin789】-2537
【蜘蛛侠TG@abin789】-2538
【蜘蛛侠TG@abin789】-2539
【蜘蛛侠TG@abin789】-2540
【蜘蛛侠TG@abin789】-2541
【蜘蛛侠TG@abin789】-2542
【蜘蛛侠TG@abin789】-2543
【蜘蛛侠TG@abin789】-2544
【蜘蛛侠TG@abin789】-2545
【蜘蛛侠TG@abin789】-2546
【蜘蛛侠TG@abin789】-2547
【蜘蛛侠TG@abin789】-2548
【蜘蛛侠TG@abin789】-2549
【蜘蛛侠TG@abin789】-2550
【蜘蛛侠TG@abin789】-2551
【蜘蛛侠TG@abin789】-2552
【蜘蛛侠TG@abin789】-2553
【蜘蛛侠TG@abin789】-2554
【蜘蛛侠TG@abin789】-2555
【蜘蛛侠TG@abin789】-2556
【蜘蛛侠TG@abin789】-2557
【蜘蛛侠TG@abin789】-2558
【蜘蛛侠TG@abin789】-2559
【蜘蛛侠TG@abin789】-2560
【蜘蛛侠TG@abin789】-2561
【蜘蛛侠TG@abin789】-2562
【蜘蛛侠TG@abin789】-2563
【蜘蛛侠TG@abin789】-2564
【蜘蛛侠TG@abin789】-2565
【蜘蛛侠TG@abin789】-2566
【蜘蛛侠TG@abin789】-2567
【蜘蛛侠TG@abin789】-2568
【蜘蛛侠TG@abin789】-2569
【蜘蛛侠TG@abin789】-2570
【蜘蛛侠TG@abin789】-2571
【蜘蛛侠TG@abin789】-2572
【蜘蛛侠TG@abin789】-2573
【蜘蛛侠TG@abin789】-2574
【蜘蛛侠TG@abin789】-2575
【蜘蛛侠TG@abin789】-2576
【蜘蛛侠TG@abin789】-2577
【蜘蛛侠TG@abin789】-2578
【蜘蛛侠TG@abin789】-2579
【蜘蛛侠TG@abin789】-2580
【蜘蛛侠TG@abin789】-2581
【蜘蛛侠TG@abin789】-2582
【蜘蛛侠TG@abin789】-2583
【蜘蛛侠TG@abin789】-2584
【蜘蛛侠TG@abin789】-2585
【蜘蛛侠TG@abin789】-2586
【蜘蛛侠TG@abin789】-2587
【蜘蛛侠TG@abin789】-2588
【蜘蛛侠TG@abin789】-2589
【蜘蛛侠TG@abin789】-2590
【蜘蛛侠TG@abin789】-2591
【蜘蛛侠TG@abin789】-2592
【蜘蛛侠TG@abin789】-2593
【蜘蛛侠TG@abin789】-2594
【蜘蛛侠TG@abin789】-2595
【蜘蛛侠TG@abin789】-2596
【蜘蛛侠TG@abin789】-2597
【蜘蛛侠TG@abin789】-2598
【蜘蛛侠TG@abin789】-2599
注意setTitle的位置!
at com.im_festivalsms.ChooseMsgActivity.onCreate(ChooseMsgActivity.java:33)
你代码第33行有问题,你使用的是AddView(),而不是startActivity()方法?
Unable to start activity ComponentInfo{com.im_festivalsms/com.im_festivalsms.ChooseMsgActivity}: java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView
请问这是什么意思!由第一个活动转跳到第二个也就是短信内容时 自动报错并终止程序并自动退出!