我可以使用与您在不同活动之间传递数据相同的过程吗?这将适用于活动和游标适配器之间的数据传递。产生的错误不是运行时是编译
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);
我有一个名为 MyAdapterQuestion 的适配器和一个名为 Basic_database_questionsActivity 的活动。
我有一个计数器,它在方法 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();
}
}