e1=findViewById(R.id.editText); e2=findViewById(R.id.editText2); String var=e1.getText().toString(); // Instantiate the RequestQueue. RequestQueue queue = Volley.newRequestQueue(this); String url =String.format("YOUR API HERE",var); // Request a string response from the provided URL. StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener() { @Override public void onResponse(String response) { // Display the first 500 characters of the response string. e2.setText(response); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { e2.setText("That didn't work!"); } }); // Add the request to the RequestQueue. queue.add(stringRequest); }
e1=findViewById(R.id.editText); e2=findViewById(R.id.editText2); String var=e1.getText().toString(); // Instantiate the RequestQueue. RequestQueue queue = Volley.newRequestQueue(this); String url =String.format("YOUR API HERE",var); // Request a string response from the provided URL. StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener() { @Override public void onResponse(String response) { // Display the first 500 characters of the response string. e2.setText(response); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { e2.setText("That didn't work!"); } }); // Add the request to the RequestQueue. queue.add(stringRequest); }
e1=findViewById(R.id.editText); e2=findViewById(R.id.editText2); String var=e1.getText().toString(); // Instantiate the RequestQueue. RequestQueue queue = Volley.newRequestQueue(this); String url =String.format("YOUR API HERE",var); // Request a string response from the provided URL. StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener() { @Override public void onResponse(String response) { // Display the first 500 characters of the response string. e2.setText(response); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { e2.setText("That didn't work!"); } }); // Add the request to the RequestQueue. queue.add(stringRequest); }
@@Jayromemagtipon07 no for offline sms you have to use the sms app in phone using intent classes or other similar methods. Its basically sending the sms from app by calling the sms app.
e1=findViewById(R.id.editText);
e2=findViewById(R.id.editText2);
String var=e1.getText().toString();
// Instantiate the RequestQueue.
RequestQueue queue = Volley.newRequestQueue(this);
String url =String.format("YOUR API HERE",var);
// Request a string response from the provided URL.
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener() {
@Override
public void onResponse(String response) {
// Display the first 500 characters of the response string.
e2.setText(response);
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
e2.setText("That didn't work!");
}
});
// Add the request to the RequestQueue.
queue.add(stringRequest);
}
The code is not available in the description ..
e1=findViewById(R.id.editText);
e2=findViewById(R.id.editText2);
String var=e1.getText().toString();
// Instantiate the RequestQueue.
RequestQueue queue = Volley.newRequestQueue(this);
String url =String.format("YOUR API HERE",var);
// Request a string response from the provided URL.
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener() {
@Override
public void onResponse(String response) {
// Display the first 500 characters of the response string.
e2.setText(response);
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
e2.setText("That didn't work!");
}
});
// Add the request to the RequestQueue.
queue.add(stringRequest);
}
There is many errors ..can i know which url to put
@@shriishwaryaaravishankar5753 you have to generate your own url from your textlocal account.
Are you ever able to send links with this pls because whenever i send links with the messages it does not get delivered
Is this support for India only?
Source Code Please............
e1=findViewById(R.id.editText);
e2=findViewById(R.id.editText2);
String var=e1.getText().toString();
// Instantiate the RequestQueue.
RequestQueue queue = Volley.newRequestQueue(this);
String url =String.format("YOUR API HERE",var);
// Request a string response from the provided URL.
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener() {
@Override
public void onResponse(String response) {
// Display the first 500 characters of the response string.
e2.setText(response);
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
e2.setText("That didn't work!");
}
});
// Add the request to the RequestQueue.
queue.add(stringRequest);
}
hy apna kya copy kiya tha (7mins)per first project sa second project ma
Kuch Nahi
is that need internet connection to send sms via api
ofcourse!!
@@AletaSoftwareLabs can api gateway send offline sms?
@@Jayromemagtipon07 no for offline sms you have to use the sms app in phone using intent classes or other similar methods. Its basically sending the sms from app by calling the sms app.
@@AletaSoftwareLabs i want to send sms in my own custom number like commercial telco number is their a way to make that
How does whataapp API works ?
This system does it cost money or is it free ??
Not free
does this messaging system cost money or it is free
+62