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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:53:33+00:00 2026-06-16T18:53:33+00:00

I just updated my app on the play store and i started receiving crash

  • 0

I just updated my app on the play store and i started receiving crash reports from people, one was a person i know, so he started helping me to solve this problem, and i discovered that the problem is caused by something i didn’t even modify.

The code looks like this
The part that’s causing the problem is the bulb.onClickListener

    public class Bulb extends Activity {

    public boolean isAwake = false;
    boolean timerActivated = false;
    static ImageView glow;
    public static boolean bulbActIsRunning = false;

      public void startWake() {
        Intent wS=new Intent(getBaseContext(), WakeService.class);
        startService(wS);
      }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ImageButton bulb = (ImageButton) findViewById(R.id.bulb);
        ImageButton ghl = (ImageButton) findViewById(R.id.ghl);
        glow = (ImageView) findViewById(R.id.glow);

        if (WakeService.isAwake) {
            glow.setVisibility(View.VISIBLE);
        }
        else {
            glow.setVisibility(View.INVISIBLE);
        }

        bulb.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                startWake();

                if (WakeService.isAwake) {
                    glow.setVisibility(View.INVISIBLE);
                }
                else {
                    glow.setVisibility(View.VISIBLE);
                }        
           }
        });

        ghl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.geekshavelanded.com/"));
                startActivity(browserIntent);
           }
        });
    }

    @Override
    protected void onResume() {
        // TODO Auto-generated method stub
        super.onResume();

        glow = (ImageView) findViewById(R.id.glow);

        if (WakeService.isAwake) {
            glow.setVisibility(View.VISIBLE);
        }
        else {
            glow.setVisibility(View.INVISIBLE);
        }
    }

    @Override
    public void onStart() {
       super.onStart();
       bulbActIsRunning = true;
    } 

    @Override
    public void onStop() {
       super.onStop();
       bulbActIsRunning = false;
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}

After my friends clicks the bulb button the app crashes without reason, i’ve put some toast notification at the beginning of the onClickListener to see if it appeared before crashing, but it didn’t

The crash reports look like this

    java.lang.RuntimeException: Unable to start service com.doublep.wakey.WakeService@41740bb8 with Intent { cmp=com.doublep.wakey/.WakeService }: java.lang.NullPointerException
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2933)
at android.app.ActivityThread.access$1900(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1438)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5454)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at android.os.Parcel.readException(Parcel.java:1436)
at android.os.Parcel.readException(Parcel.java:1384)
at com.android.internal.appwidget.IAppWidgetService$Stub$Proxy.updateAppWidgetIds(IAppWidgetService.java:513)
at android.appwidget.AppWidgetManager.updateAppWidget(AppWidgetManager.java:333)
at android.appwidget.AppWidgetManager.updateAppWidget(AppWidgetManager.java:400)
at com.doublep.wakey.WakeService.keepAwake(WakeService.java:86)
at com.doublep.wakey.WakeService.onStartCommand(WakeService.java:48)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2912)
... 10 more

Can anyone see something suspicious?
I didn’t even touch the code of this activity when i was updating my app, and everything else works fine, because i can call the service from a widget aswell.
So the problem must be here

I also modified the min SDK from 8 to 7 (but to see if it works i’ve put it back to 8)
And i compressed some graphics a little bit more to save space

EDIT oh i forgot to say, this happens only to few devices, on most it seems working fine

UPDATE 2 this is the piece of code that caused those issues

    AppWidgetManager mgr=AppWidgetManager.getInstance(this);
 mgr.updateAppWidget(ToggleWidget.appWidgetId, ToggleWidget.remoteViews);
  • 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-16T18:53:35+00:00Added an answer on June 16, 2026 at 6:53 pm

    Please check the parameter to updateAppWidget(). Ether remote view is null or you are setting null bitmap.

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

Sidebar

Related Questions

I just updated an app from .NET 2.0 to .NET 4.0 and I have
I currently have an app published on the App Store but I've just updated
I just updated a rails app bundle from capybara 2.0.0.beta2 to the current 2.0.1
The Google Play Store app (aka. Android Market) has updated to have many cool
I created an App (https://play.google.com/store/apps/details?id=com.widget.analytics) that displays one's Google Analytics statistics on the Android
I just updated my OS from Snow Leopard to LION 10.7.3, and I usually
I just published a new release of an android app on google play yet
I want to just update the description of my app on Google play and
Just updated from xcode 4.1 to 4.3 because I needed some functions. But now
I have an app deployed on Goole's Play Store that uses Facebook SSO login.

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.