這是我如何把它從一個活動發送ApplicationInfo另一個
Intent i = new Intent(v.getContext(), Permissions.class);
i.putExtra("AppSelected",installedApps.get((int) id));
startActivity(i);
這是我如何找回它:
Bundle extras = getIntent().getExtras();
ApplicationInfo a = extras.get[What do I put here?]("AppSelected");
我似乎無法找出得到這個工作。有什麼想法嗎?
ApplicationInfo是' Parcelable'? –
@ρяσѕρєяK:其實,它是 - 我需要自己去看看。 – CommonsWare
我似乎無法得到任何這些工作。 爲了更簡單地說明我的問題,我想採用ApplicationInfo的實例並在其他活動中使用它的字段。 – UserK