217 questions
0
votes
1
answer
188
views
How to invoke Webview button clickevent in Android?
I am developing an android app with a web app loading on WebView. I want to invoke the web app button actions. I have implemented some changes on webpage to invoke native methods as shown below.
...
0
votes
1
answer
130
views
WebService ERROR API not working properly?
I have trouble whit the web service API i have prestashop 1.7.6.4. When i generate an API key for my store android app i just get some products (like 20 products) and i don't get the other products ...
0
votes
2
answers
466
views
Volley error response bytes does not convert from bytes to string
CustomStringRequest customStringRequest = new CustomStringRequest(requestMethod.ordinal(), serverUrl,
result -> {
Log.d(TAG, "headers: " + result.headers);
...
2
votes
1
answer
629
views
Android Web socket Service is not maintain web connection when mobile screen off
I am using node.js web server by heroku and android client for web socket.io communication
I want to receive server message whenever it send to client Android, even the Android screen off
so I am ...
0
votes
1
answer
210
views
Wait for Retrofit API to update before creating Android fragment view
I'm trying to use geolocation to get the lat/lon coordinates and use them to fetch weather data using an API, but the android view finishes before it can update the coordinates. It ends up using 0.0 ...
0
votes
1
answer
1k
views
Adding parameters on Restful API using JsonObjectRequest on Android Studio
I'm calling a restful api on my android project and I used Volley and JsonObjectRequest, I thought that the third parameter of the JsonObjectRequest which is jsonRequest are the api parameters so I ...
2
votes
2
answers
1k
views
Android Release APK Not Parsing JSON From Web Service with SSL Using Retrofit2
I have created a REST web service using SSL, i.e., https://api.bmcstudios.org
The endpoint that I am trying to hit is:
GET https://api.bmcstudios.org/member
The expected response is
{
"members"...
0
votes
1
answer
713
views
Where to store API access token?
I am using an API (https://developers.gfycat.com/api/) that uses the typical OAuth flow to grant developers access to API requests. I am able to successfully simulate the entire process of getting an ...
0
votes
0
answers
48
views
Deserializing json data from webservice
globally, I have the following object:
public class Geraet
{
public long Geraetenr { get; set; }
public int Typ { get; set; }
public string Platz { get; set; }
public string ...
1
vote
0
answers
147
views
Pushing messages from an Oracle database to a client
I am building a new Android App which has an Oracle Database as its Datasource. I already have an Soap Webservice running on an weblogic server which can accept request from the client and send back ...
2
votes
0
answers
641
views
CSRF token validation failed : Retrofict Post
I'm developing an Android app and I need to POST data to a service (SAP Hybris marketing).
For doing that I first get the CSRF token from the service and then I try to post JSON data using the token ...
0
votes
1
answer
85
views
HttpConnection Error 500
Now I want to add some data to the server using Http Request when i add this data with hardCoded value it works will and give me a Response code 200 but when it come from the user it comes with 500 ...
0
votes
0
answers
48
views
Register in Android and mysql database
I want to register users in android application using web service in mysql database.
I am using below code in php side:
<?php
header("Content-type: application/json; charset=utf-8");
require_once("...
4
votes
0
answers
3k
views
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 ...
1
vote
1
answer
2k
views
How to call asp.net webservice using retrofit?
I have asp.net webservice call in android but it gives error baseUrl must end in /.
This is my url
private static String url = "http://192.138.0.100/Client.asmx?op=Client_Login";
//create ...
0
votes
1
answer
57
views
HttpUrlConnection App Crashes on ICS
The method sendMessage(View view) runs on clicking a button. The method is being called successfully because t.setText("Checking..."); changes the text to Checking... as expected.
The issue ...
0
votes
1
answer
135
views
How to persist authentication to web service in all fragments on Android?
I'm using a Odoo service. And I have 3 fragments in my application.
In each fragment I need log to service:
OdooClient odoo;
odoo = new OdooClient.Builder(getActivity()).setHost(host).build();
...
-2
votes
2
answers
2k
views
How to display images from web service?
I wanted to fetch the images from the URL but the whole code is clean but there is no output i am getting. what should i do.
I used the whole code from this URL
http://www.sanktips.com/2017/10/15/...
4
votes
2
answers
678
views
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....
4
votes
1
answer
6k
views
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 ...
0
votes
2
answers
585
views
why i am getting SoketTimeOutException in sleep mode of device?
I am calling a web service HTTPS connection from Service class which is called by alarm manager in every 1 min.When i start service it is working fine i am getting response from web service until ...
0
votes
2
answers
733
views
How to test POST web service call that send data in Custom Object?
I am using Retrofit for REST API calls. I want to check some APIs in Postman but some Web service APIs send input data in Custom Object form.Unable to find how to test it in Postman or online .
...
1
vote
1
answer
2k
views
How to resolve the Unterminated array Exception in android
W/System.err: org.json.JSONException: Unterminated array at character 12 of [ClassPojo [feed [{"id":0,"businessId":0,"businessName":"Farbinder","businessLogoUrl":"https:\/\/d1e6yi6s3cx2ur.cloudfront....
1
vote
1
answer
47
views
Webservice, unable to set cast in program
Unable to set cast from url in program. MainActivity to MoviesActivity and further my program goes as shown below.
Can you tell me how to set images also. I am still learning.
Screenshot
public ...
-1
votes
1
answer
905
views
How to download a pdf file from a php powered website with URL of kind http://myurl.com/file.php/...../requireddownload.pdf
I have tried out many ways like using async task and default download manager, but, I ended with downloading a file (I believe that it is downloading file. php instead of the requireddownload.pdf ...