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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:23:14+00:00 2026-06-14T05:23:14+00:00

I managed to successfully process an HttpPost of a JSON Object through AsyncTask .

  • 0

I managed to successfully process an HttpPost of a JSON Object through AsyncTask. As you all know whole the coding goes in the doInBackground() method and afterwards onPostExecute() whatever is needed to show as UI goes there. Therefore, I want to show a dialog box with an OK button that the procedure has been successfully finished.

But I get that notorious “Source Not Found” run-time error while I debug/run.
Here’s the link of the scrshot of the error I took :
Dialog.class missing!

And the code is like this:

 protected void onPostExecute(JSONObject result)
    {
        if (statusCode==HttpStatus.SC_CREATED) 
        {
            AlertDialog.Builder msgBox = new AlertDialog.Builder(getBaseContext());
            msgBox.setTitle("User registration");
            msgBox.setIcon(R.drawable.confirmed_icon);
            msgBox.setMessage("Registration succesfully completed!");
            msgBox.setPositiveButton("OK", new OnClickListener() 
            {                   
                public void onClick(DialogInterface dialog, int which)
                {
                    dialog.dismiss();
                    /*Intent intent = new Intent(getApplicationContext(), ScardsMainActivity.class);
                    startActivity(intent);*/
                }
            });
            msgBox.create();
            msgBox.show();
        }//if statement ends.       
    }//onPostExecute ends.

I know this is redundant and maybe a dummy question and asked several times in SO but I’m new to Android therefore I need furthermore help and information regarding such like issues of error encountering.

  • 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-14T05:23:15+00:00Added an answer on June 14, 2026 at 5:23 am

    If you’re encountering this while debugging a stacktrace from a crash, you’ll need to attach the Android source in order to see the code for built-in classes such as Dialog.java. There are a few tutorials online that show the proper steps, such as this one.

    EDIT:

    The references to the Android source code are out of date in the link that I gave, but you can obtain the relevant Java classes by cloning from the platform_frameworks_base repository on Github.

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

Sidebar

Related Questions

I have successfully managed to get System.Speech.Synthesis to read English text in arbitrary voices
Have anyone successfully managed to setup a combined Java/C++ project for Eclipse? What I
I've successfully managed to connect to Apple's feedback APNS server but I'm not sure
I managed to successfully reload certain settings when the user presses the back button
I have managed to successfully deploy my Symfony2 application to a production web server,
In my application,I successfully managed to encode/decode H264 video and Speex audio using libavcodec
I am trying to use the Google Map API- I've successfully managed to add
I'm building WP7 application using DropNet. I have successfully managed to log in and
I have successfully implemented interop beftween Win32 application and managed .Net dll as described
After much fiddling, I've managed to install the right ODBC driver and have successfully

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.