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

  • Home
  • SEARCH
  • 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 6836513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:21:52+00:00 2026-05-26T23:21:52+00:00

I subclassed a TimerTask to periodically capture an image and some sensor data to

  • 0

I subclassed a TimerTask to periodically capture an image and some sensor data to upload to an AppEngine server. The application works perfectly on the emulator but when loaded on phone (2.2.1) and task is scheduled with Timer, I get the following error:

11-18 19:32:45.810: E/AndroidRuntime(685): FATAL EXCEPTION: main
11-18 19:32:45.810: E/AndroidRuntime(685): java.lang.IllegalArgumentException
11-18 19:32:45.810: E/AndroidRuntime(685):  at java.util.Timer.schedule(Timer.java:483)
11-18 19:32:45.810: E/AndroidRuntime(685):  at com.ms.revolver.CaptureActivity$3.onClick(CaptureActivity.java:77)
11-18 19:32:45.810: E/AndroidRuntime(685):  at android.view.View.performClick(View.java:2449)
11-18 19:32:45.810: E/AndroidRuntime(685):  at android.widget.CompoundButton.performClick(CompoundButton.java:99)
11-18 19:32:45.810: E/AndroidRuntime(685):  at android.view.View$PerformClick.run(View.java:9027)
11-18 19:32:45.810: E/AndroidRuntime(685):  at android.os.Handler.handleCallback(Handler.java:587)
11-18 19:32:45.810: E/AndroidRuntime(685):  at android.os.Handler.dispatchMessage(Handler.java:92)
11-18 19:32:45.810: E/AndroidRuntime(685):  at android.os.Looper.loop(Looper.java:123)
11-18 19:32:45.810: E/AndroidRuntime(685):  at android.app.ActivityThread.main(ActivityThread.java:4627)
11-18 19:32:45.810: E/AndroidRuntime(685):  at java.lang.reflect.Method.invokeNative(Native Method)
11-18 19:32:45.810: E/AndroidRuntime(685):  at java.lang.reflect.Method.invoke(Method.java:521)
11-18 19:32:45.810: E/AndroidRuntime(685):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-18 19:32:45.810: E/AndroidRuntime(685):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-18 19:32:45.810: E/AndroidRuntime(685):  at dalvik.system.NativeStart.main(Native Method)

Not sure why it works on emulator but not on phone; any ideas?

  • 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-26T23:21:53+00:00Added an answer on May 26, 2026 at 11:21 pm

    It is giving you this error because the time you scheduled is negative. From the docs

    Throws:
    IllegalArgumentException – if delay is negative, or delay + System.currentTimeMillis() is negative.

    Try debugging it to make sure you don’t come up with a negative value.

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

Sidebar

Related Questions

We have subclassed the Silverlight Application class to add some additional functionality and then
I got class (subclassed from QThread), that recieve data from server at many sockets
I have subclassed Form to include some extra functionality, which boils down to a
I've subclassed an UIImageView. After self = [super initWithImage:image] I try to access the
I've subclassed DropDownList to add functionality specific to my application: public class MyDropDownList :
I have a subclassed JPanel that acts as a view for some information. When
I have subclassed UIView and provided my own drawRect, which works fine. However I
I'm using subclassed UIAlertView window as a login prompt in my application (I know
I have a subclassed UITableViewController that performs some animations when editing mode is entered,
I try to capture events on a subclassed MKOverlayView with a UIGestureRecognizer. However the

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.