Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/198.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 应用程序通过编译挑逗我,但随后失败并发出大量错误MSG_Android_Android Intent_Android Activity_Android Logcat - Fatal编程技术网

Android 应用程序通过编译挑逗我,但随后失败并发出大量错误MSG

Android 应用程序通过编译挑逗我,但随后失败并发出大量错误MSG,android,android-intent,android-activity,android-logcat,Android,Android Intent,Android Activity,Android Logcat,通过将我的活动代码更改为“this”(双关语不是最初的意思),我可以编译我的活动代码: 将你的程序拟人化是第一个标志或疯狂。LogCat的这部分内容与你的应用程序无关。在调试器外部运行它(例如,在Eclipse中按绿色的播放按钮而不是小错误图标按钮),或者让它在调试器中运行超过异常点,以便在LogCat中获得完整的堆栈跟踪。 public class OnDemandAndAutomatic_Activity extends Activity implements View.OnClickLis

通过将我的活动代码更改为“this”(双关语不是最初的意思),我可以编译我的活动代码:


将你的程序拟人化是第一个标志或疯狂。LogCat的这部分内容与你的应用程序无关。在调试器外部运行它(例如,在Eclipse中按绿色的播放按钮而不是小错误图标按钮),或者让它在调试器中运行超过异常点,以便在LogCat中获得完整的堆栈跟踪。
public class OnDemandAndAutomatic_Activity extends Activity implements View.OnClickListener {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ondemandandautomatic_activity);

        Button buttonAuthorizeUsers = (Button) findViewById(R.id.buttonAuthorizeUsers);
        buttonAuthorizeUsers.setOnClickListener(this); // <- this is different
}

    @Override
    public void onClick(View v) {
        Intent configure = new  Intent(OnDemandAndAutomatic_Activity.this, Configure_Activity.class);  
        OnDemandAndAutomatic_Activity.this.startActivity(configure);
    }
01-28 17:02:40.453: E/Zygote(33): setreuid() failed. errno: 2
01-28 17:02:49.863: E/Zygote(33): setreuid() failed. errno: 17
01-28 17:02:51.273: E/BatteryService(61): usbOnlinePath not found
01-28 17:02:51.273: E/BatteryService(61): batteryVoltagePath not found
01-28 17:02:51.273: E/BatteryService(61): batteryTemperaturePath not found
01-28 17:02:51.283: E/SurfaceFlinger(61): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
01-28 17:02:51.433: E/SensorService(61): couldn't open device for module sensors (Invalid argument)
01-28 17:02:56.993: E/System(61): Failure starting core service
01-28 17:02:56.993: E/System(61): java.lang.SecurityException
01-28 17:02:56.993: E/System(61):   at android.os.BinderProxy.transact(Native Method)
01-28 17:02:56.993: E/System(61):   at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
01-28 17:02:56.993: E/System(61):   at android.os.ServiceManager.addService(ServiceManager.java:72)
01-28 17:02:56.993: E/System(61):   at com.android.server.ServerThread.run(SystemServer.java:207)
01-28 17:02:57.013: E/EventHub(61): could not get driver version for /dev/input/mouse0, Not a typewriter
01-28 17:02:57.013: E/EventHub(61): could not get driver version for /dev/input/mice, Not a typewriter
01-28 17:02:57.303: E/SoundPool(61): error loading /system/media/audio/ui/Effect_Tick.ogg
01-28 17:02:57.303: E/SoundPool(61): error loading /system/media/audio/ui/KeypressStandard.ogg
01-28 17:02:57.303: E/SoundPool(61): error loading /system/media/audio/ui/KeypressSpacebar.ogg
01-28 17:02:57.303: E/SoundPool(61): error loading /system/media/audio/ui/KeypressDelete.ogg
01-28 17:02:57.313: E/SoundPool(61): error loading /system/media/audio/ui/KeypressReturn.ogg
01-28 17:02:58.023: E/ThrottleService(61): Could not open GPS configuration file /etc/gps.conf
01-28 17:03:00.983: E/logwrapper(163): executing /system/bin/tc failed: No such file or directory
01-28 17:03:01.063: E/logwrapper(164): executing /system/bin/tc failed: No such file or directory
01-28 17:03:01.083: E/logwrapper(165): executing /system/bin/tc failed: No such file or directory