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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:31:49+00:00 2026-05-22T23:31:49+00:00

I have an Android application which needs username and password to login. I need

  • 0

I have an Android application which needs username and password to login. I need to save the username and password in a remote server by entering the details in the register page with an alert box showing Registered successfully. When the user opens the app next time, he will login. I want to use client/server mechanism. After I get the response, I want to parse it either using sax parser or soap. I searched a lot through Google, but I didn’t find a correct example. As I am new to webservices, I couldn’t solve it. Please help me.

EditText input1 = (EditText) findViewById(R.id.usertext);
EditText input2 = (EditText) findViewById(R.id.Passtext);
String username = input1.getText().toString();
String password = input2.getText().toString();
  • 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-22T23:31:50+00:00Added an answer on May 22, 2026 at 11:31 pm
    package com.google.android.Test;
    
    
    import org.ksoap2.SoapEnvelope;
    import org.ksoap2.serialization.SoapObject;
    import org.ksoap2.serialization.SoapSerializationEnvelope;
    import org.ksoap2.transport.HttpTransport;
    
    import android.app.Activity;
    import android.os.Bundle;
    import android.widget.TextView;
    
    public class myWebService extends Activity
    {
             private static final String SOAP_ACTION = "HelloYou";
         private static final String METHOD_NAME = "getHello";
         private static final String NAMESPACE = "urn:HelloYou";
         private static final String URL = "http://localhost/lab/service.php";
         private Object resultRequestSOAP = null;
    
                @Override
                public void onCreate(Bundle icicle)
                {
                    super.onCreate(icicle);
                    TextView tv = new TextView(this);
                    setContentView(tv);
    
    
                SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
    
    
                 //SoapObject
                request.addProperty("firstname", "John");
                request.addProperty("lastname", "Williams");
                SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
                envelope.setOutputSoapObject(request);
    
    
                HttpTransport androidHttpTransport = new HttpTransport(URL);
                try
                {
                    androidHttpTransport.call(SOAP_ACTION, envelope);
                    resultsRequestSOAP =  envelope.getResponse();
                    String[] results = (String[])  resultsRequestSOAP;
                    tv.setText( results[0]);
                }
                catch (Exception aE)
                {
                    aE.printStackTrace ();;
                }
               }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a android application which needs username and password to login. I need
I have a username as password which I need to send to a website
I have an Android (version 1.5) application which needs to be constantly running when
I have an android application, which needs to display an image and make that
I have an application for Android which communicates with a Google App Engine (GAE)
Trying to understand the Android framework model. I have an application that needs to
I have a simple android client which needs to 'talk' to a simple C#
I'm currently developing an application for Android which needs to use a custom made
I'm currently writing an Android application which needs to use OCR within it. To
I'm developping an android application. For that I need to have a dynamic tableView.

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.