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
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
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
07-05 00:01:16.125 12935-12935/com.jj2.j2android D/OkHttp: --> POST http://devx.jjapp.tk:9000/matches HTTP/1.1 | |
07-05 00:01:16.126 12935-12935/com.jj2.j2android D/OkHttp: Content-Type: multipart/form-data; boundary=88e0301f-2d53-4621-8259-55910fdca856 | |
07-05 00:01:16.128 12935-12935/com.jj2.j2android D/OkHttp: Content-Length: 11196 | |
07-05 00:01:16.129 12935-12935/com.jj2.j2android D/OkHttp: x-jwt-token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5NDRlZmQ5YjdiY2U0OGJiODk0Y2IwNzJlNWEzNjNlOCIsImV4cCI6MTQ3NTU5NjgwN30.FP56ejRSRaOb_KNnfbXze5IafYuAewz9vtB9rIyCHds | |
07-05 00:01:16.181 12935-12935/com.jj2.j2android D/OkHttp: --> END POST (11196-byte body) |
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
07-05 00:33:00.196 12935 12935 D OkHttp : --> POST http://devx.jjapp.tk:9000/matches HTTP/1.1 | |
07-05 00:33:00.196 12935 12935 D OkHttp : Content-Type: multipart/form-data; boundary=7c4ec6ea-fc98-4eef-9cde-29d0492fc0b3 | |
07-05 00:33:00.197 12935 12935 D OkHttp : Content-Length: 11196 | |
07-05 00:33:00.197 12935 12935 D OkHttp : x-jwt-token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5NDRlZmQ5YjdiY2U0OGJiODk0Y2IwNzJlNWEzNjNlOCIsImV4cCI6MTQ3NTU5NjgwN30.FP56ejRSRaOb_KNnfbXze5IafYuAewz9vtB9rIyCHds | |
07-05 00:33:00.198 12935 12935 D OkHttp : --7c4ec6ea-fc98-4eef-9cde-29d0492fc0b3 | |
07-05 00:33:00.198 12935 12935 D OkHttp : Content-Disposition: form-data; name="audio"; filename="match_audio.mp4"" | |
07-05 00:33:00.199 12935 12935 D OkHttp : Content-Transfer-Encoding: binary | |
07-05 00:33:00.199 12935 12935 D OkHttp : Content-Type: multipart/form-data | |
07-05 00:33:00.200 12935 12935 D OkHttp : Content-Length: 10523 | |
07-05 00:33:00.200 12935 12935 D OkHttp : |
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
07-05 23:55:33.309 22475 22475 D OkHttp : --> POST http://devx.jjapp.tk:9000/matches HTTP/1.1 | |
07-05 23:55:33.309 22475 22475 D OkHttp : Content-Type: multipart/form-data; boundary=fba63340-a4a2-4d40-bc68-51450f3d5f14 | |
07-05 23:55:33.312 22475 22475 D OkHttp : Content-Length: 11220 | |
07-05 23:55:33.312 22475 22475 D OkHttp : x-jwt-token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZDhhNDg4YmVkZDY0MTViYjI4ODUyN2IxNDRhNThjYSIsImV4cCI6MTQ3NTYwMDcwMH0.3fnPNG_MUeciiACSFDfu0VGx2pHtyjFy4-Sd0LMMTVs | |
07-05 23:55:33.314 22475 22475 D OkHttp : --fba63340-a4a2-4d40-bc68-51450f3d5f14 | |
07-05 23:55:33.314 22475 22475 D OkHttp : Content-Disposition: form-data; name="audio"; filename="match_audio.mp4"" | |
07-05 23:55:33.315 22475 22475 D OkHttp : Content-Transfer-Encoding: binary | |
07-05 23:55:33.315 22475 22475 D OkHttp : Content-Type: multipart/form-data | |
07-05 23:55:33.316 22475 22475 D OkHttp : Content-Length: 10516 | |
07-05 23:55:33.316 22475 22475 D OkHttp : |
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
07-06 01:00:39.026 24686 24686 D OkHttp : --> POST http://dev-me.jjapp.tk/matches HTTP/1.1 | |
07-06 01:00:39.027 24686 24686 D OkHttp : Content-Type: multipart/form-data; boundary=09e5f35f-4b06-49c0-be12-835b6bb47b6e | |
07-06 01:00:39.029 24686 24686 D OkHttp : Content-Length: 13344 | |
07-06 01:00:39.030 24686 24686 D OkHttp : x-jwt-token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI3YWUxNDczY2RkZjY0NjEwOTdhYjcxODE1YmZjNjA2ZiIsImV4cCI6MTQ3NTY4NjY4N30.ZGFKo7D1PXvjRuuPGc08PgP_Fz-y9GczULkNNPVsn4k | |
07-06 01:00:39.031 24686 24686 D OkHttp : --09e5f35f-4b06-49c0-be12-835b6bb47b6e | |
07-06 01:00:39.032 24686 24686 D OkHttp : Content-Disposition: form-data; name="audio"; filename="match_audio.mp4" | |
07-06 01:00:39.032 24686 24686 D OkHttp : Content-Transfer-Encoding: binary | |
07-06 01:00:39.033 24686 24686 D OkHttp : Content-Type: multipart/form-data | |
07-06 01:00:39.033 24686 24686 D OkHttp : Content-Length: 12641 | |
07-06 01:00:39.033 24686 24686 D OkHttp : |
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
07-06 01:06:56.601 25589 27471 D OkHttp : --> POST http://dev-me.jjapp.tk/users HTTP/1.1 | |
07-06 01:06:56.601 25589 27471 D OkHttp : Content-Type: multipart/form-data; boundary=646bc6f4-2726-4fdf-b3ee-50d182cd323e | |
07-06 01:06:56.603 25589 27471 D OkHttp : Content-Length: 27458 | |
07-06 01:06:56.605 25589 27471 D OkHttp : --646bc6f4-2726-4fdf-b3ee-50d182cd323e | |
07-06 01:06:56.606 25589 27471 D OkHttp : Content-Disposition: form-data; name="image"; filename="profile_image.jpg" | |
07-06 01:06:56.606 25589 27471 D OkHttp : Content-Type: image/* | |
07-06 01:06:56.606 25589 27471 D OkHttp : Content-Length: 26844 | |
07-06 01:06:56.607 25589 27471 D OkHttp : | |
07-06 01:06:56.607 25589 27471 D OkHttp : ������JFIF����`��`��������C�� | |
07-06 01:06:56.608 25589 27471 D OkHttp : |
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
07-08 17:57:54.205 26741-26773/com.noodoe.sunray.dev W/SyncTree: Listen at /publicCreationList failed: FirebaseError: Permission denied | |
07-08 17:57:54.215 26741-26773/com.noodoe.sunray.dev W/SyncTree: Listen at /feeds/43e6e8fb-d694-48f9-aaed-5450af6e4801 failed: FirebaseError: Permission denied | |
07-08 17:57:54.218 26741-26773/com.noodoe.sunray.dev W/SyncTree: Listen at /publicCreationList failed: FirebaseError: Permission denied | |
07-08 17:58:12.890 26741-26747/com.noodoe.sunray.dev W/art: Suspending all threads took: 30.621ms | |
07-08 17:58:21.775 26741-26773/com.noodoe.sunray.dev W/SyncTree: Listen at /samples/clock failed: FirebaseError: Permission denied | |
07-08 17:58:25.942 26741-26741/com.noodoe.sunray.dev D/AndroidRuntime: Shutting down VM | |
07-08 17:58:25.954 26741-26741/com.noodoe.sunray.dev E/AndroidRuntime: FATAL EXCEPTION: main | |
Process: com.noodoe.sunray.dev, PID: 26741 | |