Click here to Skip to main content
15,900,973 members
Home / Discussions / Android
   

Android

 
GeneralRe: How can I get started developing in Eclipse for Android? Pin
turbosupramk319-Aug-14 5:21
turbosupramk319-Aug-14 5:21 
GeneralRe: How can I get started developing in Eclipse for Android? Pin
Richard MacCutchan19-Aug-14 5:26
mveRichard MacCutchan19-Aug-14 5:26 
Questionsolution to find the lost/stolen mobile using IMEI Pin
raheemsyed13-Aug-14 22:36
raheemsyed13-Aug-14 22:36 
AnswerRe: solution to find the lost/stolen mobile using IMEI Pin
Richard MacCutchan15-Aug-14 3:02
mveRichard MacCutchan15-Aug-14 3:02 
Questionerror using FragmentTabHost in xamarin Pin
Member 94738098-Aug-14 17:40
Member 94738098-Aug-14 17:40 
QuestionRe: error using FragmentTabHost in xamarin Pin
Richard MacCutchan8-Aug-14 21:33
mveRichard MacCutchan8-Aug-14 21:33 
AnswerRe: error using FragmentTabHost in xamarin Pin
Member 94738099-Aug-14 4:05
Member 94738099-Aug-14 4:05 
QuestionAndroid User Login from Wbeservice Pin
Sandeep20148-Aug-14 2:50
Sandeep20148-Aug-14 2:50 
I want to login the soap based webservice from android application but the code is not working i tried too much :


package com.example.dotnetlogin;

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;

public class WebService {
//Namespace of the Webservice - can be found in WSDL
private static String NAMESPACE = "http://tempuri.org/";
//Webservice URL - WSDL File location
private static String URL = "http://www.domain.co.in/Service.asmx";
//SOAP Action URI again Namespace + Web method name
private static String SOAP_ACTION = "http://www.tempuri.org/GetUserDetails";

public static boolean invokeLoginWS(String username,String passWD, String webMethName) {
boolean loginStatus = false;
// Create request
SoapObject request = new SoapObject(NAMESPACE, webMethName);
// Property which holds input parameters
PropertyInfo userName = new PropertyInfo();
PropertyInfo password = new PropertyInfo();
// Set Username
userName.setName("username");
// Set Value
userName.setValue(username);
// Set dataType
userName.setType(String.class);
// Add the property to request object
request.addProperty(userName);
//Set Password
password.setName("password");
//Set dataType
password.setValue(passWD);
//Set dataType
password.setType(String.class);
//Add the property to request object
request.addProperty(password);
// Create envelope
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
// Set output SOAP object
envelope.setOutputSoapObject(request);
// Create HTTP call object
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

try {
// Invoke web service
androidHttpTransport.call(SOAP_ACTION+webMethName, envelope);
// Get the response
SoapPrimitive response = (SoapPrimitive) envelope.getResponse();
// Assign it to boolean variable variable
loginStatus = Boolean.parseBoolean(response.toString());

} catch (Exception e) {
//Assign Error Status true in static variable 'errored'
CheckDNLoginActivity.errored = true;
e.printStackTrace();
}
//Return booleam to calling object
return loginStatus;
}
}


Please have look at the code and tell me if there is any problem?
SuggestionRe: Android User Login from Wbeservice Pin
Richard MacCutchan8-Aug-14 6:03
mveRichard MacCutchan8-Aug-14 6:03 
QuestionSQLite problem Pin
Member 109990707-Aug-14 20:14
Member 109990707-Aug-14 20:14 
AnswerRe: SQLite problem Pin
Richard MacCutchan7-Aug-14 22:44
mveRichard MacCutchan7-Aug-14 22:44 
GeneralRe: SQLite problem Pin
Member 109990708-Aug-14 0:51
Member 109990708-Aug-14 0:51 
GeneralRe: SQLite problem Pin
Richard MacCutchan8-Aug-14 2:09
mveRichard MacCutchan8-Aug-14 2:09 
GeneralRe: SQLite problem Pin
Member 109990708-Aug-14 3:40
Member 109990708-Aug-14 3:40 
GeneralRe: SQLite problem Pin
Richard MacCutchan8-Aug-14 5:41
mveRichard MacCutchan8-Aug-14 5:41 
GeneralRe: SQLite problem Pin
Member 109990708-Aug-14 3:41
Member 109990708-Aug-14 3:41 
GeneralRe: SQLite problem Pin
Member 109990708-Aug-14 3:18
Member 109990708-Aug-14 3:18 
AnswerRe: SQLite problem Pin
Dominic Burford17-Sep-14 20:57
professionalDominic Burford17-Sep-14 20:57 
Questionjson parser images shown in lstview please help me Pin
Member 109237866-Aug-14 1:42
Member 109237866-Aug-14 1:42 
AnswerRe: json parser images shown in lstview please help me Pin
khaingwarswe16-Aug-14 6:59
khaingwarswe16-Aug-14 6:59 
QuestionAndroid and Network device Pin
khaingwarswe6-Aug-14 0:01
khaingwarswe6-Aug-14 0:01 
QuestionRe: Android and Network device Pin
David Crow7-Aug-14 5:45
David Crow7-Aug-14 5:45 
QuestionAnimate SVG image while it is drawn on SVGImageView. Pin
Member 109832715-Aug-14 0:44
Member 109832715-Aug-14 0:44 
QuestionAndroid json parser . please do the android json parserand show the images in listview Pin
Member 109237864-Aug-14 1:53
Member 109237864-Aug-14 1:53 
AnswerRe: Android json parser . please do the android json parserand show the images in listview Pin
Paul Conrad4-Aug-14 15:45
professionalPaul Conrad4-Aug-14 15:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.