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
.... | |
public void startFacebook(String facebookUrl) { | |
try { | |
Uri uri = null; | |
int versionCode = getPackageManager() | |
.getPackageInfo("com.facebook.katana", 0) | |
.versionCode; |
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
{ | |
"Agent": "", | |
"Finish": "/Date(1464331758726)/", | |
"IpAddress": "", | |
"Isp": "", | |
"Os": "Android", | |
"QuestionResponses": [ | |
{ | |
"Finish": "/Date(1464331757820)/", | |
"QuestionItems": [ |
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
public function sendNotification($MESSAGE) | |
{ | |
$APPLICATION_ID = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; | |
$REST_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; | |
$url = 'https://api.parse.com/1/push'; | |
$data = array( | |
'expiry' => 1451606400, |
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
[ | |
{ | |
"form":"PowerOfAttorney", | |
"label":"หนังสือมอบอำนาจ", | |
"input":[ | |
{ | |
"name":"Rec", | |
"label":"โดยหนังสือฉบับนี้ ข้าพเจ้า", | |
"type":"Label" | |
}, |
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
{ | |
"QuestionID": 122, | |
"Name": "แบบคำขอจดทะเบียนรถ", | |
"answerList": [ | |
{ | |
"AnswerGroupID": 100, | |
"Index": 1, | |
"Name": "ชือ", | |
"AnswerGroupType": 1, | |
"AnswerGroupTypeName": "INPUT_TEXT_SINGLE_LINE", |
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
[ | |
{ | |
"form": "PowerOfAttorney", | |
"label": "หนังสือมอบอำนาจ", | |
"input": [ | |
{ | |
"name": "OwnName", | |
"label": "", | |
"type": "String" | |
}, |
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
{ | |
"PowerOfAttorney":{ | |
"OwnName":"", | |
"OwnAge":0, | |
"OwnRace":"", | |
"OwnNationality":"", | |
"OwnAddressNumber":"", | |
"OwnAddressMoo":"", | |
"OwnAddressSoi":"", | |
"OwnAddressRoad":"", |
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
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, | |
Bundle savedInstanceState) { | |
v = inflater.inflate(R.layout.xxxx, container, false); | |
gridView = (GridView)v.findViewById(R.id.gridview); | |
gridView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { | |
@Override | |
public void onGlobalLayout() { |
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
private void seteGridviewHeight(GridView gridView, float itemCount,float numColumn) { | |
int row = (int) Math.ceil((itemCount + 1f) / numColumn); | |
Log.d("debug", "-------row = " + row); | |
int height = (imageHeight * row); // imageHeight = ความสูงของแต่ละแถวหรือความสูงของรูป | |
height += (row - 1) * verticalSpacing; | |
gridView.getLayoutParams().height = height; | |
} |
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
public class TextViewTH extends TextView { | |
public TextViewTH(Context context) { | |
super(context); | |
//mContext = context; | |
setFont(); | |
} | |
public TextViewTH(Context context, AttributeSet attrs) { |