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
17
votes
1 answer

Android sending push notification through .net webservices

I am using following webservice for sending Push notification from Android. When I call this webservice first time, it takes so much time and push notification is not delivered on Android Device. It happens only when called from Android. It works…
7
votes
2 answers

Recyclerview with 2 lists in one view?

Good day, I have this screen I want to make where it displays both winners and losers of a bid. How it needs to look is like this: TextView - Winners Name and bid amount Name and bid amount Name and bid amount -------------------- Textview -…
Stillie
  • 2,647
  • 6
  • 28
  • 50
7
votes
2 answers

Android REST Client: best solution?

I need to create an application that dialogues with a REST server. I found that answer: Android REST client, Sample? but it's of 2012. Is there a tutorial that I can follow (and that you suggest) in order to obtain a little working sample…
helloimyourmind
  • 994
  • 4
  • 14
  • 30
7
votes
2 answers

HttpURLConnection getResponseCode() deos not return if there is no Internet connection

I am using a HttpURLConnection to check whether the server URL is available or not by using the following code: try { boolean connectionFailed = false; URL knownURL = new URL("http://www.google.com"); httpConnection = (HttpURLConnection)…
5
votes
2 answers

Unable to connect websocket with wss in android

I am trying to connect with secure websocket connection wss:// in android using org.java_websocket.client.WebSocketClient API, but unable to connect with https. However it is working fine with ws://.. Here is my code. private void connect(String…
user526206
4
votes
0 answers

Retrofit First Service Response is Slow

I am Using Retrofit 2. The Issue I am facing is: The first response is coming late after eating up all the timeperiod mentioned in connectTimeout. And after the first call all the other webservice call runs taking no time. Also, If I run it on the…
Pravinsingh Waghela
  • 2,516
  • 4
  • 32
  • 50
4
votes
2 answers

Does AsyncTask works simultaneously?

Does AsyncTask works simultaneously or first come first served manner? . For example i've 3 AsyncTasks that have same interface class and same listener functions. Executing 3 AsyncTasks at same time. Which response from AsyncTasks will shows in…
4
votes
1 answer

WebSockets on Android with socket.io in Android

I am looking to leverage my NodeJS+SocketIO server application with a new Android based client Application. Currently I'm using a okhttp3 for Websockets in Android. but I want to use WebSockets with socket.io. Has anyone else done this kind of…
Sumit Pansuriya
  • 543
  • 10
  • 23
4
votes
0 answers

how to handle ssl certificate expiration in android?

i have an application with pinned SSL certificates and these certificates will store in android keystore file and released the apk to playstore. Now the certificate inside the keystore has expired, so is there a way to update the certificate with…
san
  • 43
  • 5
4
votes
1 answer

Android Websocket Service Persistent Connection

I implemented a chat application in Android with websockets. However when the user closes the application, the websocket connection to the server is lost and no new messages can be received. I am essentially lost and do not know where else to turn,…
Sauron
  • 6,399
  • 14
  • 71
  • 136
4
votes
2 answers

Execute web service on background every

I need to execute web service every Hour in the background Every hour, will check if Internet is available then execute a web service and update data. How can I do this? My background service public class MyService extends Service { String…
user3722005
  • 63
  • 1
  • 5
4
votes
2 answers

Converting Bitmap to Byte Array Occupying Much Memory

I Need to Convert Bitmap to Byte Array Inorder to Upload to server i was able to achieve the same by converting Bitmap to Byte Array and again converting it to Base 64 String by following instructions here it worked well but in the worst case in my…
Software Sainath
  • 1,040
  • 2
  • 14
  • 39
4
votes
2 answers

Calling web service from android device

I have written a web service locally using python flask framework which runs on localhost:5000 , I run this web service successfully from my computers browser by writing http://localhost:5000/toi/something Now I am trying to call same service from…
Yogesh D
  • 1,663
  • 2
  • 23
  • 38
3
votes
4 answers

How to Avoid ProGuard obfuscation in Request Header Model in Retrofit 2 Android?

1.without proguard Everything working fine. while enabling the Proguard, all the header and body models are getting obfuscated. 2.Retrofit2 not able to pass data with model objects. D/OkHttp: Content-Type: application/json Content-Length: 80 …
Kumar
  • 969
  • 2
  • 22
  • 56
3
votes
1 answer

WebView for secified Area in LibGdx based Android app

I have built an app for crypto currencies, to maintain a portfolio. I planned to show the latest news items in the same app. The whole project is an Android app done in LibGdx. Question How to have a webview for the area "Part-B"? LigGdx have…
iappmaker
  • 2,945
  • 9
  • 35
  • 76
1
2 3
14 15