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
Map<String, RequestBody> map = new HashMap<>(); | |
map.put("data", APIUtils.toRequestBody(new Gson().toJson(matchRequest))); | |
RequestBody requestBody = RequestBody.create( | |
MediaType.parse("multipart/form-data"), | |
FileUtils.file2bytes(new File(audioFilePath)) | |
); | |
map.put("audio\"; filename=\"match_audio.mp4\"", requestBody); | |
Client.getInterface() |
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
city_codes = { | |
'taipei' => 100, | |
'new york'=> 200, | |
'new orleans' => 300, | |
'houston' => 400, | |
'los angles' => 500, | |
'chicago' => 600, | |
'washington' => 700, | |
'memphis' => 800, | |
'london' => 900, |
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
city_codes = { | |
'taipei' => 100, | |
'new york'=> 200, | |
'new orleans' => 300, | |
'houston' => 400, | |
'los angles' => 500, | |
'chicago' => 600, | |
'washington' => 700, | |
'memphis' => 800, | |
'london' => 900, |
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
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
private int previousTotal = 0; // The total number of items in the dataset after the last load | |
private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
int firstVisibleItem, visibleItemCount, totalItemCount; |
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-feature | |
android:name="android.hardware.telephony" | |
android:required="true"/> | |
<compatible-screens> | |
<!-- all small size screens --> | |
<screen android:screenSize="small" android:screenDensity="ldpi" /> | |
<screen android:screenSize="small" android:screenDensity="mdpi" /> | |
<screen android:screenSize="small" android:screenDensity="hdpi" /> | |
<screen android:screenSize="small" android:screenDensity="xhdpi" /> |
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
# Check out what disks exist on your Mac, make sure the installation disk exists | |
$ diskutil list | |
/dev/disk0 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *251.0 GB disk0 | |
1: EFI EFI 209.7 MB disk0s1 | |
2: Apple_HFS Macintosh HD 250.1 GB disk0s2 | |
3: Apple_Boot Recovery HD 650.0 MB disk0s3 | |
/dev/disk1 | |
#: TYPE NAME SIZE IDENTIFIER |
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
Download the following ZIPs: | |
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
Download the correct GApps for your Android version: | |
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) | |
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip) | |
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip) | |
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip) | |
Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip) |
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
01-23 12:38:12.030 25761-26384/com.my.app:sipStack D/OpenGLRenderer﹕ Render dirty regions requested: true | |
01-23 12:38:12.042 25761-25761/com.my.app:sipStack D/Atlas﹕ Validating map... | |
01-23 12:38:12.063 25761-25761/com.my.app:sipStack D/SIP SRV﹕ Action is com.csipsimple.service.SipService | |
01-23 12:38:12.063 25761-25761/com.my.app:sipStack D/SIP SRV﹕ Service returned | |
01-23 12:38:12.169 25761-26384/com.my.app:sipStack I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/28/14, c33033c, Ia6306ec328 | |
01-23 12:38:12.171 25761-26384/com.my.app:sipStack I/OpenGLRenderer﹕ Initialized EGL, version 1.4 | |
01-23 12:38:12.205 25761-26384/com.my.app:sipStack D/OpenGLRenderer﹕ Enabling debug mode 0 | |
01-23 12:38:12.294 25761-25761/com.my.app:sipStack D/DeviceFragment﹕ Service Connected!!! | |
01-23 12:38:12.302 25761-25761/com.my.app:sipStack D/DeviceFragment﹕ Got 1 SIP account. | |
01-23 12:38:12.306 25761-25761/com.my.app:sipStack D/DeviceFragment﹕ @ <sip:[email protected]> |
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
11-19 23:38:33.142 13422-14354/io.solda.android D/Retrofit﹕ ---> HTTP POST http://staging1.solda.io/api/products.json | |
11-19 23:38:33.142 13422-14354/io.solda.android D/Retrofit﹕ Authorization: bearer CAAT2ZA96f8NsBAIJooY1YLnxjHxJAZBjsixxXw8L1ehBZBSHP5UwuARIrlJOSG2GEoMgkbIjntBksBKaegDOo14EpgxZAL01tqb9vpcGkvLuhgGXUuGZBcZBBXTHTWGZCJvvCrPcmMEqP6afXOctsydQZB8R91aULtduFu76sFM9urpb3qJT4ywGqhzoXwPLzoaNkEgMc01bdN8cCxuI5edm | |
11-19 23:38:33.142 13422-14354/io.solda.android D/Retrofit﹕ Content-Type: application/json | |
11-19 23:38:33.149 13422-14354/io.solda.android D/Retrofit﹕ Content-Length: 2347 | |
11-19 23:38:33.151 13422-14354/io.solda.android D/Retrofit﹕ {"product": {"image_ids":[1431,1432,1433,1434],"links":[{"description":"千年傳統全新感受","title":"Charging Devices - iPhone Accessories - Apple Store (U.S.)","url":"http://store.apple.com/us/iphone/iphone-accessories/power"}],"name":"IPhone充電座","price":"50","quantity":"1111","socialOptions":[{"id":"842844067","message":"嘿,來瞧瞧我的新鮮貨吧!","platform":"facebook","target":"user","t |
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
11-19 23:25:52.823 11645-11691/io.solda.android D/Retrofit﹕ ---> HTTP POST http://staging1.solda.io/api/products.json | |
11-19 23:25:52.824 11645-11691/io.solda.android D/Retrofit﹕ Authorization: bearer CAAT2ZA96f8NsBAIJooY1YLnxjHxJAZBjsixxXw8L1ehBZBSHP5UwuARIrlJOSG2GEoMgkbIjntBksBKaegDOo14EpgxZAL01tqb9vpcGkvLuhgGXUuGZBcZBBXTHTWGZCJvvCrPcmMEqP6afXOctsydQZB8R91aULtduFu76sFM9urpb3qJT4ywGqhzoXwPLzoaNkEgMc01bdN8cCxuI5edm | |
11-19 23:25:52.824 11645-11691/io.solda.android D/Retrofit﹕ Content-Type: application/json | |
11-19 23:25:52.824 11645-11691/io.solda.android D/Retrofit﹕ Content-Length: 1157 | |
11-19 23:25:52.825 11645-11691/io.solda.android D/Retrofit﹕ {"product": {"image_ids":["1429","1430"],"links":[],"name":"亮晶晶小屁孩兩枚","price":"0","quantity":"2","socialOptions":[{"id":"842844067","message":"嘿,來瞧瞧我的新鮮貨吧!","platform":"facebook","target":"user","token":"CAAT2ZA96f8NsBAIJooY1YLnxjHxJAZBjsixxXw8L1ehBZBSHP5UwuARIrlJOSG2GEoMgkbIjntBksBKaegDOo14EpgxZAL01tqb9vpcGkvLuhgGXUuGZBcZBBXTHTWGZCJvvCrPcmMEqP6afXOctsydQZB8R91aULtdu |