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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -