Test if a button starts a new activity in android junit (pref without robotium)?

You need ActivityMonitor it helps you moniotor newly opened activity during instrumentation, check out the pseudo code below.

The parameter 5 which is mentioned in above answer's method is in milliseconds not in seconds. So if it is 5, sometimes testcase get failed Because in 5 milliseconds it can't load the next activity. So 5000 or 10000 milliseconds will definitely work better.

In documentation they have given it in seconds But in fact it is in milliseconds. So following method will work better than above method.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions