I have a small function here:
public Activity getRootActivity() { Activity a = this; while (a.getParent() != null) a = a.getParent(); return a; }
But a.getParent () always returns null. It doesn't seem how deep I go into my interface, it will always return null.
Does anyone have an idea why?
EDIT
Here's how I get started (as part of other activities)
startActivity(new Intent(this, activityname.class));
Apparently, this means that I am not โembeddingโ them? How to "implement" it?
android
Peanut
source share