I have the below code:
Intent myintent = new Intent (ScreenOne.this, ScreenTwo.class);
startActivity(myintent);
ScreenTwo consists of a list of phone numbers.
Both the screens extend BaseScreen.
What I need to do is click on a phone number and make a call from within my app.
I have the code right, only problem is the call screen is behind ScreenTwo.
I am guessing it is something to the with the context that I am passing in the Intent.
I have used
- ScreenOne.this,
- this,
- getBaseContext(),
- getApplicationContext(),
- getApplication and
- getParent(),
all to no avail.
There was no light shed on this, and all the contexts don’t seem to work in bringing the screen to the top, I guess I’ll have to find another workaround.