Questions tagged [android-webservice]

Web service is a system that enables applications to communicate with an API. Web service helps to expose business logic through an API interface where different systems communicate over network.

217 questions
1
vote
1 answer

How to handle No Network connection using Retrofit 2.0 in Android?

I am using Retrofit 2.0 library in my android application by adding it into build.gradle file // retrofit, gson compile 'com.google.code.gson:gson:2.6.2' compile 'com.squareup.retrofit2:retrofit:2.0.2' compile…
sandeepmaaram
  • 4,191
  • 2
  • 37
  • 42
1
vote
0 answers

I am getting trouble in android web service

I am new to Android i want to store login and signup details in data base i'm following javatpoints tutorial but on that I'm getting errors now.i followed many tutorials then also same problem only if any one is free help me please.i want to know…
chandra
  • 229
  • 1
  • 2
  • 8
1
vote
1 answer

Accessing data from Local MySQL Server from Ubuntu in Android

I want to install MySQL on my Server and create a database and access my database through my Android Code. I know that this work can be done through webservice in Android, is there any way that I can use it without webservice. I don't find anything…
Rakesh Yadav
  • 1,966
  • 2
  • 21
  • 35
1
vote
2 answers

My webview messes up in jelly bean and kitkat version ,but works fine in lollipop and above. How do I fix it for jelly bean and kitkat?

Here's my code for that: public void mywebview(){ try { webview.setBackgroundColor(0); webview.getSettings().setJavaScriptEnabled(true); webview.addJavascriptInterface(new MyJavaScriptInterface(), "MYOBJECT"); …
1
vote
1 answer

Android : Empty SoapAction

My requirement is to call a web service from Android and display the result in a nice manner. But inside the web service's WSDL I don't find a SOAPAction. The WSDL looks like this:
Aamir
  • 11
  • 4
1
vote
2 answers

Is there GCM(Google Cloud Messaging) have any advantage over web service communication in android programming

I like to write a program in android that sent notification from web to android application. I hear that there are two types of communication is possible in Web to android. One is Using GCM and (Google Cloud Messaging) and other is using Web…
1
vote
1 answer

How do I write a webview to automatically sign into my yahoo account?

I am writing a test webview app, in which I intend to open my yahoo mail the moment I launch the app view. It will be a webview, where I want to hardcode my username and password. I know yahoo uses get method instead of post. Is there a way I can…
1
vote
1 answer

How to send Media files like whatsapp in android

Am developing an app that enables one to send images,audio and video through the internet. the person receiving this media files must have installed my app in his device. What i can do right now is compress the image to be sent. i don't know where…
1
vote
0 answers

How to display data from sql server dagtabase in android using HttpGet

I am developing android app and I am having problems getting data from the database and displaying it into my app using JSONObject and HttpGet. Please help me solve my error. Error: Value 1 of type java.lang.Integer cannot be converted to…
dips
  • 11
  • 1
  • 1
  • 4
1
vote
0 answers

Cant create object of SoapPrimitive object

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); //Property which holds input parameters PropertyInfo celsiusPI = new PropertyInfo(); //Set Name …
xyz
  • 21
  • 2
1
vote
2 answers

How to display the Json text and image retrieved from web service in horizontal list view?

I am developing Android application where I want to display the json format text and image retrieved from web service in horizontal list view. I am storing json formated data into ArrayList
1
vote
0 answers

Fatal signal 6 (SIGABRT) at 0x000002ef (code=0) while using Retrofit

Application sometimes crashes when calling API with retrofit and doing some UI interactions. I'm using Retrofit version 1.7.0. Logcat shows: I/dalvikvm﹕ threadid=3: reacting to signal 3 I/dalvikvm﹕ Wrote stack traces to…
1
vote
1 answer

What should we use JSON blank array or 404 error code in Rest full services

I hit on a link that return me records in JSON array format from android mobile. If records count is zero(0) or user have no records, Then what should I prefer : 1. 404 error code. 2. Blank JSON array. Is there any standard, then give me a link for…
1
vote
3 answers

Unable to compare the JSON String Response in the “if” Statement in android using volley library

I am getting JSON String Response in a string variable. I want to compare it in the “if” statement. But program cannot go to the “if” statement. But it shows the response in the TextView. Here is my if statement if (myObjAsString ==…
hasnain_ahmad
  • 325
  • 6
  • 17
1
vote
3 answers

Getting the value of JSONObject in android using volley library

I want to get the value of JSONObject in android using volley library. Here is my MainActvity.java code. String url = "http://someexample.com/signin.php"; StringRequest postRequest = new StringRequest(Request.Method.POST, url, …
hasnain_ahmad
  • 325
  • 6
  • 17