我的應用程序崩潰,當我點擊和錯誤日誌出現引導到下面提及的行,它也表明你必須RecyclerAdapterNew申報到清單文件,但沒有必要BCZ我還沒有擴展到程序兼容性如何使用context.startActivity(intent)啓動活動; ...?
public void onClick(View view) {
tableData = Integer.parseInt(table.getText().toString());
Context context = view.getContext();
Intent intent = new Intent(context, RecyclerAdapterNew.class);
intent.putExtra("transfer", tableData);
context.startActivity(intent);//error in this line
}
發佈您的回收站ViewAdapter – Athul
發佈錯誤日誌。 – Piyush
無法調用這樣的簡單類 –