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

The Archive Base Latest Questions

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

I have a live wallpaper that crashes from time to time, and I would

  • 0

I have a live wallpaper that crashes from time to time, and I would like to harvest the benefits of integrating ACRA (http://code.google.com/p/acra/) for generating and collecting crashreports in a google spreadsheet.

However I just couldn’t integrate ACRA in my live wallpaper. Here is what I tried so far:

  1. Followed the basic setup guide (http://code.google.com/p/acra/wiki/BasicSetup)
  2. Initialized ACRA with ACRA.init(WallpaperService.getApplication()); in WallpaperService.onCreate()
  3. Annotated WallpaperService with @ReportsCrashes(formKey = "dFhXY3Y4N2NXXXXXXXXwM1g3Z1FZUVE6MQ", mode = ReportingInteractionMode.TOAST, forceCloseDialogAfterToast = false, resToastText = R.string.crash_text_toast)

When I build and deploy the app, it just crashes like before, and ACRA is not enabled.

It seems the problem stems from the fact that ACRA expects a subclass of Application to be annotated.

I am compiling my app for android 2.1-update and using latest version of ACRA (4.23 as of now), and running on a phone with android 2.3.4.

Any help is more than welcome!

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

    I missed the basic fact that Android Live Wallpapers can have an optional class extending android.app.Application referenced from its AndroidManifest.xml.

    Using this class is the best way to include ACRA in your wallpaper because it allows ACRA to start at the earliest possible moment in the lifecycle of your wallpaper.

    Simply create a class extending android.app.Application in your project and name it from the android:name attribute in the application element of your manifest. Example.

    In your manifest:

    <application
     android:debuggable="true"
     android:icon="@drawable/icon"
     android:label="@string/app_name"
     android:name=".MyApplication" >
    

    In MyApplication.java:

    package com.mycompany.myapp;
    
    import org.acra.ACRA;
    import org.acra.ReportingInteractionMode;
    import org.acra.annotation.ReportsCrashes;
    
    @ReportsCrashes(resDialogIcon = R.drawable.icon, resToastText = R.string.crash_text_toast, formKey = "dFhXY3YXXXXXXXXXXXXXXZUVE6MQ", mode = ReportingInteractionMode.TOAST, forceCloseDialogAfterToast = false)
    public class MyApplication extends android.app.Application {
        @Override
        public void onCreate() {
            ACRA.init(this);
            super.onCreate();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm extracting Android Grass live wallpaper code from the Android source. I have put
So I am modifying the Cube live wallpaper example. I have a class that
I have a live database that had some data deleted from it and I
I am developing a live wallpaper and I would like to know how to
I have a live wallpaper that uses vibrate permission. When the slide screen that
I have a Live Wallpaper that uses various screen touches to trigger certain events.
I have a custom image preference in my Live Wallpaper that allows a user
I have an OpenGL Live wallpaper that works fine on all phones except those
I have created a simple image slider 'Live Wallpaper' that will call in an
I have to draw a circle in live wallpaper when it touches the boundary

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.