Click here to Skip to main content
15,891,136 members
Home / Discussions / Android
   

Android

 
QuestionSearch Interface Pin
Member 935370223-Dec-13 1:39
Member 935370223-Dec-13 1:39 
AnswerRe: Search Interface Pin
tabrej5-Jan-14 5:05
tabrej5-Jan-14 5:05 
QuestionXML and HTML parsing in one Activity Pin
Kroshandowski22-Dec-13 5:22
Kroshandowski22-Dec-13 5:22 
QuestionConvert to C# Pin
Member 947380918-Dec-13 10:15
Member 947380918-Dec-13 10:15 
AnswerRe: Convert to C# Pin
Richard Deeming19-Dec-13 2:11
mveRichard Deeming19-Dec-13 2:11 
Questionbackground service/process Pin
Bhagyashree Chaudhari - Member 1047363417-Dec-13 23:05
Bhagyashree Chaudhari - Member 1047363417-Dec-13 23:05 
AnswerRe: background service/process Pin
tabrej5-Jan-14 5:11
tabrej5-Jan-14 5:11 
Questionpost data to database using KSoap2 Pin
Barun4214-Dec-13 0:13
Barun4214-Dec-13 0:13 
I am using Ksoap2 to post my data from android mobile to database.I have a local server api of .Net to send this data .I am using following code to do this
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public class backMethod extends AsyncTask<String, Object, Object > {

private final ProgressDialog dialog = new ProgressDialog(MainActivity.this);

@Override
protected void onPreExecute() {

this.dialog.setMessage("Checking...");
this.dialog.show();
}
// @Override
// protected void onCancelled(Object result) {
//
// super.onCancelled(result);
// }

@Override
protected void onPostExecute(Object result) {
//Here All your UI part is Done

if (result != null) {

tv.setTag(result);

} else {
Toast.makeText(getApplicationContext(),
"Result Found is == " + result + "", Toast.LENGTH_LONG).show();

}
super.onPostExecute(result);
if (this.dialog.isShowing()) {

this.dialog.dismiss();
}
super.onPostExecute(result);
}


@Override
protected Object doInBackground(String... params) {

SoapObject request = new SoapObject(NAMESPACE, OPERATION_NAME);

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
try {

HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

androidHttpTransport.call(SOAP_ACTION, envelope);

response = (SoapObject) envelope.getResponse();
//here SoapPrimitive is an important part
Toast.makeText(getApplicationContext(), "SEND", Toast.LENGTH_LONG).show();
} catch (Exception e) {
e.printStackTrace();
Toast.makeText(getApplicationContext(), "NOT SEND", Toast.LENGTH_LONG).show();
}
return response;
}

Trying too much and goggling hard but fails to post the data.
Please help to resolve this issues.
AnswerRe: post data to database using KSoap2 Pin
Member 1041739716-Dec-13 1:30
Member 1041739716-Dec-13 1:30 
QuestionWherefore art thou, ARM? Pin
hairy_hats13-Dec-13 1:11
hairy_hats13-Dec-13 1:11 
Answerc# methods Pin
Member 104521337-Dec-13 20:25
Member 104521337-Dec-13 20:25 
Questionc# methods Pin
Member 104521337-Dec-13 20:24
Member 104521337-Dec-13 20:24 
AnswerRe: c# methods Pin
Richard MacCutchan7-Dec-13 21:33
mveRichard MacCutchan7-Dec-13 21:33 
AnswerRe: c# methods Pin
Albert Holguin13-Dec-13 4:58
professionalAlbert Holguin13-Dec-13 4:58 
NewsIt's Learn Android Month Pin
Brian Aberle5-Dec-13 6:34
professionalBrian Aberle5-Dec-13 6:34 
QuestionDelete a single note from list view Pin
Member 104393335-Dec-13 3:08
Member 104393335-Dec-13 3:08 
QuestionRe: Delete a single note from list view Pin
thatraja5-Dec-13 4:03
professionalthatraja5-Dec-13 4:03 
Question[issue]org.apache.http.conn.HttpHostConnectException Pin
pancakeleh4-Dec-13 5:13
pancakeleh4-Dec-13 5:13 
QuestionRe: [issue]org.apache.http.conn.HttpHostConnectException Pin
Richard MacCutchan4-Dec-13 5:35
mveRichard MacCutchan4-Dec-13 5:35 
AnswerRe: [issue]org.apache.http.conn.HttpHostConnectException Pin
pancakeleh4-Dec-13 6:09
pancakeleh4-Dec-13 6:09 
QuestionData Transfering via bluetooth Pin
shanmukhavel3-Dec-13 18:33
shanmukhavel3-Dec-13 18:33 
AnswerRe: Data Transfering via bluetooth Pin
Richard MacCutchan3-Dec-13 22:26
mveRichard MacCutchan3-Dec-13 22:26 
AnswerRe: Data Transfering via bluetooth Pin
Member 1037895612-Dec-13 4:35
Member 1037895612-Dec-13 4:35 
AnswerRe: Data Transfering via bluetooth Pin
Gopi Raj8-Jan-14 6:48
Gopi Raj8-Jan-14 6:48 
QuestionCodeProject Android Newsletter? Pin
Clinton Gallagher2-Dec-13 13:11
professionalClinton Gallagher2-Dec-13 13:11 

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.