How to send SMS using API | Text Local API | Android studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ย. 2024

ความคิดเห็น • 22

  • @AletaSoftwareLabs
    @AletaSoftwareLabs  5 ปีที่แล้ว +1

    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);
    }

  • @shriishwaryaaravishankar5753
    @shriishwaryaaravishankar5753 4 ปีที่แล้ว +1

    The code is not available in the description ..

    • @AletaSoftwareLabs
      @AletaSoftwareLabs  4 ปีที่แล้ว

      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);
      }

    • @shriishwaryaaravishankar5753
      @shriishwaryaaravishankar5753 4 ปีที่แล้ว +1

      There is many errors ..can i know which url to put

    • @AletaSoftwareLabs
      @AletaSoftwareLabs  4 ปีที่แล้ว

      @@shriishwaryaaravishankar5753 you have to generate your own url from your textlocal account.

    • @elcoconasin1136
      @elcoconasin1136 3 ปีที่แล้ว

      Are you ever able to send links with this pls because whenever i send links with the messages it does not get delivered

  • @VistaAcademyLK
    @VistaAcademyLK 3 ปีที่แล้ว +1

    Is this support for India only?

  • @muhammadahsankhanofficial2407
    @muhammadahsankhanofficial2407 5 ปีที่แล้ว +1

    Source Code Please............

    • @AletaSoftwareLabs
      @AletaSoftwareLabs  5 ปีที่แล้ว

      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);
      }

  • @ms.sazianagpal3806
    @ms.sazianagpal3806 2 ปีที่แล้ว

    hy apna kya copy kiya tha (7mins)per first project sa second project ma

  • @Jayromemagtipon07
    @Jayromemagtipon07 3 ปีที่แล้ว

    is that need internet connection to send sms via api

    • @AletaSoftwareLabs
      @AletaSoftwareLabs  3 ปีที่แล้ว

      ofcourse!!

    • @Jayromemagtipon07
      @Jayromemagtipon07 3 ปีที่แล้ว

      @@AletaSoftwareLabs can api gateway send offline sms?

    • @AletaSoftwareLabs
      @AletaSoftwareLabs  3 ปีที่แล้ว

      @@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.

    • @Jayromemagtipon07
      @Jayromemagtipon07 3 ปีที่แล้ว

      @@AletaSoftwareLabs i want to send sms in my own custom number like commercial telco number is their a way to make that

  • @4ragrao
    @4ragrao 4 ปีที่แล้ว

    How does whataapp API works ?

  • @chandanasawant8529
    @chandanasawant8529 4 ปีที่แล้ว

    This system does it cost money or is it free ??

  • @karthikgajula2486
    @karthikgajula2486 4 ปีที่แล้ว

    does this messaging system cost money or it is free

  • @mhaitsam
    @mhaitsam 2 ปีที่แล้ว

    +62