2013/12/17 下午 06:47:38
A way for you reference. Code a service and run it when the app was launched . it must contains a variable - count . The variable is to calculate the times of executing the app. And when you launch the app again , it means it was executed twice or more . the variable of service - count was checked and verified its value is 2 , then the service must fire an event that can terminate the app , please see this post about how to kill a porcess - http://stackoverflow.com/questions/2092951/how-to-close-android-application and then open the home page of Google , please see how to open a URL - http://stackoverflow.com/questions/3450387/best-way-to-open-url-in-android .