안녕하세요! Android 앱 (2.1-update1)에서 액티비티간에 변경하려고하지만 작동하지 않습니다. 제안 사항이 있으십니까? :/활동 간 변경이 적용되지 않습니다.
I 앱이이 Instrumentation.java의 코드의이 부분에 중지한다는 것입니다 디버깅 할 때 발생하는 유일한 것은 :
public void waitForIdle() { synchronized (this) { while (!mIdle) { try { wait(); } catch (InterruptedException e) { } } } }
이클립스가 Instrumentation.checkStartActivityResult에 스레드 1에 있음을 말한다 (int, Object) line : 1537. 앱을 다시 시작하면 ZygoteInit.java에서 다음 실행 중지가 실행됩니다. Throwable cause = ex.getCause(); 돕는
package com.example.app; import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public class HappyHomes extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button login = (Button) findViewById(R.id.btnLogin); login.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { ProgressDialog laddRuta = ProgressDialog.show(HappyHomes.this, "", "Loggar in, vänligen vänta...", true); Intent myIntent = new Intent(view.getContext(), Kategorier.class); myIntent. startActivity(myIntent); } }); } }
package com.example.app; import android.app.Activity; import android.os.Bundle; public class Kategorier extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.kategorier); } }
감사 : 864 여기
소스 코드입니다 : ... Eclipse는 ZygoteInit $ MethodAndArgsCaller.run() 선은 말한다!
logcat의 출력을 표시 할 수 있습니까? – Flo
매니페스트를 표시하십시오. – zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz