This file contains 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
var data = [ | |
{ | |
"name": "Afghanistan", | |
"dial_code": "+93", | |
"code": "AF" | |
}, | |
{ | |
"name": "Albania", | |
"dial_code": "+355", | |
"code": "AL" |
This file contains 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
[ | |
{ | |
"name": "Afghanistan", | |
"dial_code": "+93", | |
"code": "AF" | |
}, | |
{ | |
"name": "Albania", | |
"dial_code": "+355", | |
"code": "AL" |
This file contains 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 | |
//Swapnil_Sonar workspace | |
$sample_data = '[{"id":1,"name":"Item1","type":"Android"},{"id":2,"name":"Item2","type":"Android"},{"id":3,"name":"Item3","type":"iOS"},{"id":4,"name":"Item4","type":"Windows"},{"id":5,"name":"Item5","type":"iOS"},{"id":6,"name":"Item6","type":"Android"},{"id":7,"name":"Item7","type":"Windows"}]'; | |
// just normal getting data | |
$raw_data = json_decode($sample_data, true); | |
// use get variable to paging number | |
$page = 2; //!isset($_GET['page']) ? 1 : $_GET['page']; | |
$limit = 5; // five rows per page |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="in.google.android.sample" | |
android:versionCode="12" | |
android:versionName="1.0.12" > | |
<uses-sdk | |
android:minSdkVersion="14" | |
android:targetSdkVersion="21" /> | |
This file contains 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 in.google.android.sample; | |
import android.content.pm.ApplicationInfo; | |
import android.graphics.drawable.Drawable; | |
/** | |
* @author Swapnil Sonar | |
* @Date 01/07/2015 | |
*/ | |
public class PackageInfoBean { |
This file contains 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 in.google.android.sample; | |
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.List; | |
import android.content.Context; | |
import android.content.pm.ApplicationInfo; | |
import android.content.pm.PackageInfo; | |
import android.util.Log; |