Click here to Skip to main content
15,898,893 members
Home / Discussions / Android
   

Android

 
AnswerRe: Insert Images in EditText as in Notes app in Android Mobiles Pin
Richard MacCutchan4-Feb-16 21:39
mveRichard MacCutchan4-Feb-16 21:39 
QuestionApp crash always. Why? Pin
Member 1226347731-Jan-16 7:37
Member 1226347731-Jan-16 7:37 
SuggestionRe: App crash always. Why? Pin
Kornfeld Eliyahu Peter31-Jan-16 8:17
professionalKornfeld Eliyahu Peter31-Jan-16 8:17 
GeneralRe: App crash always. Why? Pin
Member 122634771-Feb-16 6:39
Member 122634771-Feb-16 6:39 
GeneralRe: App crash always. Why? Pin
Richard MacCutchan4-Feb-16 1:13
mveRichard MacCutchan4-Feb-16 1:13 
QuestionHow to inflate the youtubethumbnailview ? Pin
Member 1226347726-Jan-16 0:11
Member 1226347726-Jan-16 0:11 
AnswerRe: How to inflate the youtubethumbnailview ? Pin
Afzaal Ahmad Zeeshan26-Jan-16 0:34
professionalAfzaal Ahmad Zeeshan26-Jan-16 0:34 
Questioncant recive data from WebService via Android ksoap2 Pin
goldsoft24-Jan-16 9:18
goldsoft24-Jan-16 9:18 
i'am trying to send string to webservice and get replay from.

i use android studio for programming on java for android

and visual-studio 2010 for programming the C# webservice.

i have this code on android

private static final String SOAP_ACTION = "http://tempuri.org/HELO";
private static final String OPERATION_NAME = "HELO";// your webservice web method name

private static final String WSDL_TARGET_NAMESPACE = "<a href="http://tempuri.org/">http://tempuri.org/</a>";

private static final String SOAP_ADDRESS = "<a href="http://10.0.0.2/WS_TEST/Service1.asmx">http://10.0.0.2/WS_TEST/Service1.asmx</a>";

        SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE, OPERATION_NAME);
        PropertyInfo info= new PropertyInfo();
        info = new PropertyInfo();
        //Set Name
        info.setName("HELO");
        //Set Value
        info.setValue("New User");
        //Set dataType
        info.setType(String.class);
        //Add the property to request object
        request.addProperty(info);

        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.dotNet = true;

        envelope.setOutputSoapObject(request);
        HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS);
        try {
            httpTransport.call(SOAP_ACTION, envelope);
            Object response = envelope.getResponse();
            tvData1.setText(response.toString());
        } catch (Exception exception) {
            tvData1.setText(exception.toString());
        }

and this my C# WebService
[WebService(Namespace = "<a href="http://tempuri.org/">http://tempuri.org/</a>")]
   [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
   [System.ComponentModel.ToolboxItem(false)]
   // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
   // [System.Web.Script.Services.ScriptService]
   public class Service1 : System.Web.Services.WebService
   {

       [WebMethod]
       public string HELO(string Name)
       {
           return "Hello : " + Name;
       }

   }

and i got only Helo: without the string that i send instead of Helo: New User

thans
AnswerRe: cant recive data from WebService via Android ksoap2 Pin
Afzaal Ahmad Zeeshan26-Jan-16 0:42
professionalAfzaal Ahmad Zeeshan26-Jan-16 0:42 
QuestionHow to retrieve data in sqlite with intent Pin
Muhammad H Alhasanat22-Jan-16 22:51
Muhammad H Alhasanat22-Jan-16 22:51 
AnswerRe: How to retrieve data in sqlite with intent Pin
Richard MacCutchan23-Jan-16 0:19
mveRichard MacCutchan23-Jan-16 0:19 
GeneralRe: How to retrieve data in sqlite with intent Pin
Muhammad H Alhasanat23-Jan-16 1:03
Muhammad H Alhasanat23-Jan-16 1:03 
QuestionRe: How to retrieve data in sqlite with intent Pin
David Crow23-Jan-16 11:03
David Crow23-Jan-16 11:03 
AnswerRe: How to retrieve data in sqlite with intent Pin
Muhammad H Alhasanat24-Jan-16 1:26
Muhammad H Alhasanat24-Jan-16 1:26 
QuestionRe: How to retrieve data in sqlite with intent Pin
David Crow25-Jan-16 2:48
David Crow25-Jan-16 2:48 
AnswerRe: How to retrieve data in sqlite with intent Pin
Muhammad H Alhasanat25-Jan-16 22:30
Muhammad H Alhasanat25-Jan-16 22:30 
GeneralRe: How to retrieve data in sqlite with intent Pin
David Crow26-Jan-16 2:04
David Crow26-Jan-16 2:04 
GeneralRe: How to retrieve data in sqlite with intent Pin
Richard MacCutchan26-Jan-16 2:30
mveRichard MacCutchan26-Jan-16 2:30 
QuestionWhat is the difference between creating instance like this? Pin
Member 1226347721-Jan-16 22:07
Member 1226347721-Jan-16 22:07 
AnswerRe: What is the difference between creating instance like this? Pin
Richard MacCutchan21-Jan-16 22:43
mveRichard MacCutchan21-Jan-16 22:43 
QuestionPull to Refresh in List view Android Pin
Tirumaleswara Reddy.K21-Jan-16 20:06
Tirumaleswara Reddy.K21-Jan-16 20:06 
QuestionRe: Pull to Refresh in List view Android Pin
David Crow22-Jan-16 2:41
David Crow22-Jan-16 2:41 
QuestionDoubts with HTTP request and responses in android Pin
Member 1226347721-Jan-16 19:02
Member 1226347721-Jan-16 19:02 
AnswerRe: Doubts with HTTP request and responses in android Pin
Richard MacCutchan21-Jan-16 22:40
mveRichard MacCutchan21-Jan-16 22:40 
GeneralRe: Doubts with HTTP request and responses in android Pin
Member 1226347721-Jan-16 22:46
Member 1226347721-Jan-16 22:46 

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.