Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6752447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:02:44+00:00 2026-05-26T13:02:44+00:00

How do I fully close a PhoneGap Android app? I’ve tried using device.exitApp() as

  • 0

How do I fully close a PhoneGap Android app? I’ve tried using device.exitApp() as well as navigator.app.exitApp() and have the same problem with both.

The problem is that I have an html file, index.html, that links to an external html file, main.html. Now if I hit the close button without going to the external file, the app closes just fine. If I go to the external file and then go back to index then hit close, it closes index but brings up main. How do I completely close the app whether or not I go the external page?

Index.html

<html>
<head>
    <script type="text/javascript" src="Scripts/phonegap-1.0.0.js"></script>
</head>
<body>
    <a href="index.html">Index</a>
</body>
</html>

Main.html

<html>
<head>
    <script type="text/javascript" src="Scripts/phonegap-1.0.0.js"></script>
</head>
<body>
    <a href="index.html">Index</a>
</body>
</html>

Android Manifest

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name=".TestActivity"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="com.phonegap.DroidGap" 
            android:label="@string/app_name" android:configChanges="orientation|keyboardHidden">
    </activity>
</application>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:02:45+00:00Added an answer on May 26, 2026 at 1:02 pm

    This was how PhoneGap Android worked with PhoneGap 1.0.0.

    This behaviour has changed to more like what you are expecting in PhoneGap 1.1.0. Try upgrading.

    http://simonmacdonald.blogspot.com/2011/10/changes-in-phonegap-android-110.html

    “Now when you are dealing with multiple page apps there is a change to navigator.app.exitApp(). This command now exits the app completely it does not return to the previous page. If you want to go back a page you should use navigator.app.backHistory().”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems that using socket.Close() for a tcp socket, doesn't fully close the socket.
I am using fully qualified name of the enum inside a method in one
i do not fully understand how to communicate between adobe air (using flex3) and
What I have is a set of Java classes (close to 25) representing message
Greetings! I have a working iPhone app (huzzah!) that uses a MainView.xib containing a
When I press the Home button it doesn't fully close, but resides in memory.
Does InputStreams and OutputStreams in Java close() on destruction? I fully understand that this
Trying to download file with apache httpclient library and have a problem with resulting
I have the following fully functional, working code: import urllib.request import zipfile url =
I fully appreciate the atomicity that the Threading.Interlocked class provides; I don't understand, though,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.