Android activity onPause() method -
in current project, have activity named calendarview.java
, launcher activity named firstscreenactivity.java
should appear whenever user press home button/back button calendar.java
. added interstitial ads in firstscreenactivity.java
.
now, problem when start calendarview.java
, ads appears, activity goes in onpause()
state, when cancel ads , comes on calendarview.java
activity comes in onresume()
state. here don't want activity finish in onpause()
method, want i'm pressing home button , come firstscreenactivity.java
should open.
now want is, when click home button in calendarview.java
, restart project firstscreen.java
should appear, , when ads appear in calendar.java
, user close ads user should remains on calendarview.java
only.
any positive response highly appreciated.
Comments
Post a Comment