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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:08:30+00:00 2026-05-23T08:08:30+00:00

I am accessing .net web services through my Android Application. If the user is

  • 0

I am accessing .net web services through my Android Application. If the user is successfully registered then log cat will show 1 as the response. If not it will show 0 and If some field is missing then it will show -1 as response. so is it possible to show a dialog box according to the log cat response?

If response is 1 then "successfully registered"

If response is 0 then "Try Again"

How can we do this?

Log.v("TAG", String.valueOf(resultsRequestSOAP)); with this I am getting the response in logcat

Help is always appreciated….Thanks!

In this piece of code,I want to add the required code to show the dialog box.

   Button signin = (Button) findViewById(R.id.regsubmitbtn);

    signin.setOnClickListener(new OnClickListener() {
        public void onClick(View v) {
            showDialog(0);
            t = new Thread() {
                public void run() {
                    register();
                    try {
                        Thread.sleep(5000);
                        removeDialog(0);
//   I want to show the dialog box like registered successfully after removing this dialog//
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
                }
            };
            t.start();
        }
    });
       @Override
protected Dialog onCreateDialog(int id) {
    switch (id) {
    case 0: {
        dialog = new ProgressDialog(this);
        dialog.setMessage("Registering...");
        dialog.setIndeterminate(true);
        dialog.setCancelable(true);
        return dialog;
    }
    }
    return null;
} 
  • 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-23T08:08:31+00:00Added an answer on May 23, 2026 at 8:08 am

    Write a method that will create dialogs according to a parameter. Then you just have to call this method with a right parameter to create a right dialog depending on the server’s response.

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

Sidebar

Related Questions

I am developing a sample application to call .Net web services. I have added
I've seen some questions where people have trouble with accessing .NET SOAP web services
I am refactoring a working ASP.NET Web Application to expose Web Services interface using
I am accessing .NET webservice methods from my Android application using Java SOAP jar.
I'm working on a .net system that will both expose and consume web-services with
I have a asp.net website and I am accessing that web service from my
I have an ASP.NET MVC application with the default membership database. I am accessing
I'm running CR XI, and accessing .RPT files through a ReportViewer in my ASP.NET
I'm relatively new to utilizing web services. I'm trying to create one that will
I'm trying to enforce windows authentication for users of a .Net application on Web

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.