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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:35:26+00:00 2026-05-29T05:35:26+00:00

hello fellow android programmers, I’m constantly running into the same problem over and over

  • 0

hello fellow android programmers,
I’m constantly running into the same problem over and over again and I can’t figure it out, so I thought I’d ask my question here.

To implement ACRA (Application Crash Reporting for Android @ http://code.google.com/p/acra) I have to create a subclass of android.Application and instantiate ACRA.

I create this subclass from within the Manifest.xml editor by clicking on the left upper field “Name” in the “Application” tab. A window pops up where I’m asked to give a proper name to the new class and it is created in the /gen folder (only the R.java is also in this folder) and the needed attribute android:name is set in the <application/> tag automatically.

This works like a charm and all is good if I run my application from within the IDE on the emulator or on my debugging device… BUT, as soon as I want to export the whole package (doesn’t mind if “signed” or “unsigned”) the previous created android.Application subclass is removed from the /gen folder (must be from compiling), the APK gets saved and no error shows up. Until one tries to install and run the application – this will fail due to the lack of this unlucky subclass…

What is wrong? Where do I have to place this subclass other then in the /gen folder? Does anybody else run into the same problem?

  • 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-29T05:35:26+00:00Added an answer on May 29, 2026 at 5:35 am

    It should not go into the /gen directory; that directory is for code that is automatically generated by the Android compiler during builds. The Application class you’re creating is application code, not auto-generated code. Don’t be confused by the fact that ADT is doing you a favor by “generating” it for you from the GUI editor; that’s not the same thing as the compiler building the code automatically for every build.

    Your Application class should go in the same place as all your other app code (Activity subclasses, etc), namely /src (or /source or whatever depending on how you set up your project).

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

Sidebar

Related Questions

Hello Again my fellow programmers out there, I'm designing and programming from scratch a
Hello fellow programmers, got a few problem here. I am adding a user control
Hello fellow programmers, I have made a function that looks up the database if
Hello fellow stackies, I'm developing a site and I have a small problem. It's
Hello fellow programmers. I have a SQL Server 2005 query that is taking a
Hello fellow developer,i've getting problem to set the Timer method on ZK,default the method
Hello fellow programmers I have been searching the internet for a few days now
Hello fellow earthlings! For some time I'm fantasizing possible solutions, but i'm out of
hello fellow :) i am having a trouble on how can i retry sending
Hello fellow C++ programmers. I have, what I hope to be, a quick question

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.