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 8651779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:09:12+00:00 2026-06-12T14:09:12+00:00

i have implemented google play successfuly….and its working fine…..but when i close my application

  • 0

i have implemented google play successfuly….and its working fine…..but when i close my application after using…and after few minutes of closing application…error is given that”APPLICATION HAS STOPEED UNEXPEXTEDLY”…..in log cat it gives that error is in BillingService.java

10-10 13:38:38.739: E/AndroidRuntime(3586): Caused by: java.lang.NullPointerException

10-10 13:38:38.739: E/AndroidRuntime(3586): at .BillingService.handleCommand(BillingService.java:372)

10-10 13:38:38.739: E/AndroidRuntime(3586): at .BillingService.onStart(BillingService.java:362)

10-10 13:38:38.739: E/AndroidRuntime(3586): at android.app.Service.onStartCommand(Service.java:438)

and my code is….

public void onStart(Intent intent, int startId) {

    handleCommand(intent, startId);------>362
}

public void handleCommand(Intent intent, int startId) {
    String action = intent.getAction();------>line 732
    if (Consts.DEBUG) {
        Log.i(TAG, "handleCommand() action: " + action);
    }

}
  • 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-06-12T14:09:13+00:00Added an answer on June 12, 2026 at 2:09 pm

    I think you have to exclusively exit the application. After exiting the application check the task manager, if it is still enlisted in the running application section then you have to end the process.

    You can check the following code:

    // This you have to insert inside the exit button click event
        Intent intent = new Intent(Intent.ACTION_MAIN);
                        intent.addCategory(Intent.CATEGORY_HOME);
                        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                        startActivity(intent);
                        onQuitPressed(); 
    
    //This is the onQuitPressed method
    
    //to remove application from task manager
        public void onQuitPressed() {
    
            int pid = android.os.Process.myPid();
            android.os.Process.killProcess(pid);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application just like Pulse and its in beta stage https://play.google.com/store/apps/details?id=com.braindigit.nepal.khabar I
Building an Android application using Google's GCM service. I have implemented the onRegistered method
I have implemented Google Analytics in my iPhone Application. And I can able to
I have implemented an iframe into my flex application. The iframe contains a google
In my application, I implemented Google signout using jsapi. I used the url https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=xxxxxx
I am working on an android application in which i have implemented voice recognition
I'm using a database in my application which is currently on the Google Play.
I have implemented Google Analytics tracking in my iOS app and it is working,
I have an application created with Play 2.0. I implemented scribe-java library to use
I have implemented a bluetooth connection using the now-classic Google Bluetooth Chat code. However,

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.