다른 액티비티간에 데이터를 전달하는 데 사용하는 동일한 프로세스를 사용하여 액티비티와 cursoradapter간에 데이터를 전달할 수 있습니까? 시간이 실행되지 않습니다 생성 오류 내가 어댑터라는 이름 MyAdapterQuestion 및 Basic_database_questionsActivity라는 활동을 컴파일customcursoradapter에서 액티비티로 정수 전달하기
The constructor Intent(MyAdapterQuestion, Class<Basic_database_questionsActivity>) is undefined
Intent i = new Intent(MyAdapterQuestion.this, Basic_database_questionsActivity.class);
Bundle b = new Bundle();
// get the current value of timerStart variable and store it in timerlogic
//Log.e(LOGS, "Whatis the value of timerstart inside the intentcalls method" + aInt);
b.putInt("timerlogic", aInt);
입니다.
나는 당신이 어댑터에 텐트를 보낼 수있는 방법의 Bindview 방법
public void bindView(View v, Context context, Cursor c) {
if(radiopos1.isChecked())
{
// i want to update my main activity
// this method increment the correct answer by one I want to get that value and //pass it back to the activity
correctAnswer();
}
}
하나님을 사랑하고 코드를 형식화하는 법을 배우십시오! 이건 너무 불쾌해서 거의 불쾌 해! –