. f June 2013 ~ Android Developers Blog

Friday, 28 June 2013

Asserting Toast message using Robolectric | Testing Toast message Android

Hello Friends, Today , I am sharing my another android tutorial. In this tutorial I am going to show how to write the test case for android Toast message using Roboelectric and Junit.  @Test  public void testToastMesaage() throws Exception{ Helper.showBadServerNotification(activity); assertThat( ShadowToast.getTextOfLatestToast(),equalTo( shadowActivity.getString(R.string.bad_server_response))); } ...

Sunday, 23 June 2013

Activity Life Cycle | Android Activity Life Cycle

Hello Droid Guys, 1. If an activity in the foreground of the screen (at the top of the stack), it is active or running. 2. If an activity has lost focus but is still visible (that is, a new non-full-sized or transparent     activity has focus on...

 

Copyright @ 2013 Android Developers Blog.