Android 🔎 Live Search (Retrofit2, PHP, MySQL) – | RecyclerView, SearchView |



#Android #LiveSearch #SearchView #Retrofit2 #PHP #MySQL

Android Live Search using Retrofit2, PHP, MySQL.

PHP code : https://drive.google.com/file/d/1Q-fzWDoR7RUldZdrkDlDFQqwKPvOsORH/

Source Code : https://github.com/haerulmuttaqin/LiveSearchRetrofitGET

Thanks.

Please Share & Subsribe

source

35 thoughts on “Android 🔎 Live Search (Retrofit2, PHP, MySQL) – | RecyclerView, SearchView |

  1. If I have an ImageView and image URL String instead of an email String, how do I retrieve the image URL from the response? I'm missing where the data is actually coming from. I'm so accustomed to Volley, so this is all very very new to me.

    I'm trying to use Picasso, like so:
    Picasso.get().load(user.getAvatarURL()).into(holder.imageview_avatar);

  2. Bang, minta bantuannya dong buat tugas (1) gimana caranya kalo klik muncul detail profil di page lain? (2) bisakah duplikasi pencarian ini di activity lain (datanya dari tabel database lain yang lain). (3) gimana caranya data online ini bisa tersimpan di perangkat, jadi bisa diakses kalo lagi offline. Salam. Besar harapan direspon hiks, lebih senang juga kalo ada videonya…

  3. I ask you to update the codes or to do another explanation because the codes are updated and if these codes that I have explained are still running, let me know.
    Because I want to publish the lessons from the title, image and description in recyclerview. When I click on the lesson, it will go to activity details. I ask you to explain that.

  4. I have getting the error like following

    com.google.gson.stream.malformedjsone xception: use jsonreader.setlenient(true) to accept malformed json at line 2 column 1 path $

    after the checking pfp file getcontacts.php i got the fault

    and after correction php file will looks like

    <?php
    require_once 'connect.php';

    $type = "users";

    if (isset($_GET['key'])) {
    $key = $_GET["key"];

    if ($type == 'users') {
    $query = "SELECT * FROM users WHERE name LIKE '%$key%'";
    $result = mysqli_query($conn, $query);
    $response = array();
    while( $row = mysqli_fetch_assoc($result) ){
    array_push($response,
    array(
    'id'=>$row['id'],
    'name'=>$row['name'],
    'email'=>$row['email'])
    );
    }
    echo json_encode($response);
    }
    } else {
    if ($type == 'users') {
    $query = "SELECT * FROM users";
    $result = mysqli_query($conn, $query);
    $response = array();
    while( $row = mysqli_fetch_assoc($result) ){
    array_push($response,
    array(
    'id'=>$row['id'],
    'name'=>$row['name'],
    'email'=>$row['email'])
    );
    }
    echo json_encode($response);
    }
    }

    mysqli_close($conn);

    ?>

  5. Search API bnai nhi, ye to utna hi search krega jitna data load ho chuka hoga, suppose mere pas table me 1 lakh data h to muje direct database se search krna h or searched item pr click krke usko next activity me dekhna h, yaa fr ek dusra search hota h jisme pehle word ko likh diya jata h or search pr click krke show krwaya jata h…

Leave a Reply

Your email address will not be published. Required fields are marked *