This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sangcomz.fishbun.util; | |
import android.content.Context; | |
import android.media.MediaScannerConnection; | |
import android.net.Uri; | |
import java.io.File; | |
public class SingleMediaScanner implements MediaScannerConnection.MediaScannerConnectionClient { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"barang": [], | |
"status": 1, | |
"message": "Sukses" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"barang": [ | |
{ | |
"id_barang": "11", | |
"nama_barang": "Tabung Gas", | |
"stok_barang": "56" | |
}, | |
{ | |
"id_barang": "12", | |
"nama_barang": "Tissue", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"barang": [ | |
{ | |
"id_barang": "1", | |
"nama_barang": "Timun", | |
"stok_barang": "2" | |
}, | |
{ | |
"id_barang": "2", | |
"nama_barang": "Kentang", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once "Connection.php"; | |
class ShowData{ | |
function getAllData(){ | |
$connect = new Connection(); | |
$con = $connect->getConnection(); | |
//buatkan array untu jsonnya | |
$json_barang = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Connection{ | |
function getConnection(){ | |
$host = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$dbname = "pagination"; | |
try{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<uses-permission android:name="android.permission.INTERNET"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.putuguna.ratinggoogleplaystore.reviews; | |
import android.app.Dialog; | |
import android.app.ProgressDialog; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.graphics.Color; | |
import android.graphics.drawable.ColorDrawable; | |
import android.os.Bundle; | |
import android.os.Handler; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* the method used to get all reviews in firebase firestore | |
* @param idProduct | |
*/ | |
private void getAllReview(String idProduct) { | |
progressBar.setVisibility(View.VISIBLE); | |
rvReview.setVisibility(View.GONE); | |
CollectionReference collectionReference = firebaseFirestore.collection("product"); | |
DocumentReference documentReference = collectionReference.document(idProduct); | |
documentReference.collection("review") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This method used to display rating by colors | |
* | |
* @param productModel | |
*/ | |
private void setRatingByColor(ProductModel productModel) { | |
int widthView = constrainLayout1.getWidth(); | |
int totalAllVoters = productModel.getTotalVoters(); | |
int totalRateStar1 = productModel.getStar1(); | |
int totalRateStar2 = productModel.getStar2(); |
NewerOlder