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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:21:48+00:00 2026-05-22T16:21:48+00:00

I recently published an app on the Android Market and have got some error

  • 0

I recently published an app on the Android Market and have got some error reports I could not figure out. My app has functionality that can be “activated” for a $1 fee, and it is loosely based on the Dungeons example app from Google.

There are a two main problems with the example app that I think will cause problems for a lot of devs.

1) It uses a deprecated method in it’s BillingService. The BillingService is app specific and handles RPC communication with the Android Market App. It needs to be around even if your Acitivty is not. It implements this method.

@Override
public void onStart(Intent intent, int startId) {}

Instead of the newer

public int onStartCommand(Intent intent, int flags, int startId) {}

2) More seriously, the corner case where Intent us null, on onStart/onstartCommand invocations causes a NPE, since the code

String action = intent.getAction();

is Executed in the sample app without any null check.

According to the doc
http://developer.android.com/reference/android/app/Service.html#onStart(android.content.Intent, int)

“this may be null if the service is being restarted after its process has gone away, and it had previously returned anything except START_STICKY_COMPATIBILITY.”

Since I am a novice Android dev I don’t want to cry wolf. Can anyone tell me if the Dungeons sample app is broken, or if I have misunderstood something here?

  • 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-22T16:21:49+00:00Added an answer on May 22, 2026 at 4:21 pm

    The apps are not designed to be bug free and resilient to situations, only to demonstrate one aspect. I’ve noticed a lot of quirks in other examples.

    Can’t you just add a test for when the intent is null?

    As you hinted, your app should use onStartCommand() instead of onStart(), unlike the Dungeon example.

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

Sidebar

Related Questions

I've found today that my recently published app on the Android Market, is not
i have recently published my app in android market site. After a month i
I recently published a password generator app on the Android market called Mega Pass.
Recently I published my first Android App on the Market Place (Trophy-to-Gamerscore Converter). It's
I have an Android project that I recently published to the market after running
I published several free and paid app in the Market. I recently get several
I have an application published in the Android Market. Its target is 1.6 and
i recently published an iphone app using monotouch to the market. It's currently in
I recently co-authored and published a simple app to test the Android waters and
I'm an android developer with few free apps published on android's market. I've recently

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.