Закрыт

Rest Api Request Issue Fix

Job Description:

i have a api its working fine in Android studio project. but when trying to accessing throung postman or curl not working .

here is code android side code :

try{

HashMap params = new HashMap();

[login to view URL]("key1", "value");

[login to view URL]("key2", [login to view URL]("false"));

[login to view URL]("key3",[login to view URL]("true"));

JSONObject js = new JSONObject(params);

Log.e("Postdata",[login to view URL]());

JsonObjectRequest b = new JsonObjectRequest(1, "[login to view URL]", js, new [login to view URL]<JSONObject>() {

@Override

public void onResponse(JSONObject response) {

Log.e("mydata",[login to view URL]());

}

}, new [login to view URL]() {

@Override

public void onErrorResponse(VolleyError error) {

}

});

[login to view URL]([login to view URL]).addToRequestQueue(b,"text");

}catch (Exception e){

[login to view URL]();

}

//CustomRequestQueus

public class CustomRequestQueues {

private static CustomRequestQueues mInstance;

Context context;

private RequestQueue requestQueue;

private CustomRequestQueues(Context context) {

[login to view URL] = context;

}

public static synchronized CustomRequestQueues getInstance(Context context) {

CustomRequestQueues m_rtoCustomRequestQueues;

synchronized ([login to view URL]) {

synchronized ([login to view URL]) {

synchronized ([login to view URL]) {

synchronized ([login to view URL]) {

synchronized ([login to view URL]) {

if (mInstance == null) {

mInstance = new CustomRequestQueues(context);

}

m_rtoCustomRequestQueues = mInstance;

}

return m_rtoCustomRequestQueues;

}

}

}

}

}

private RequestQueue getRequestQueue() {

if ([login to view URL] == null) {

[login to view URL] = [login to view URL]([login to view URL]);

}

return [login to view URL];

}

public <T> void addToRequestQueue(Request<T> request, String str) {

if ([login to view URL](str)) {

str = "R_CustomRequestQueue";

}

[login to view URL](str);

getRequestQueue().add(request);

}

}

Навыки: Android, Mobile App Development, Java, JavaScript, PHP

О клиенте:
( 0 отзыв(-а, -ов) ) India

ID проекта: #36199502

7 фрилансеров(-а) готовы выполнить эту работу в среднем за ₹1166

rajitravindran

May I know what issue you are facing. Hi, I am a Backend Architect with 10 years of experience I have worked mostly with early stage start-ups where in which I was involved in end to end product development cycle. Больше

₹1000 INR за 7 дней(-я)
(27 отзывов(-а))
5.5
asimaarbi

Hello, I am an experience Android and DRF Api Developer. I have been working as an Android developer for the last few years. I have read your project proposal, interested in doing work for you. I have faced such type Больше

₹1500 INR за 1 день
(52 отзывов(-а))
5.2
toriqul224466

I am Professional freelancer I work honestly and properly every work. I work to fiver and others such as Digital Marketing , Facebook Marketing , Web Design, Web development, graphic Design, you tube account crater et Больше

₹1050 INR за 7 дней(-я)
(0 отзывов(-а))
0.0
rajupaul71

Hi I have over 6 years experience in web development, I can do it in a small time with 100% accuracy. It will be great moment working with you.

₹1050 INR за 7 дней(-я)
(0 отзывов(-а))
0.0