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
public class SerialQueue { | |
private static final int MAX_CACHE_SIZE = 2097152; //2 MB | |
private static final int MAX_SERIAL_THREAD_POOL_SIZE = 1; | |
private static final int MAX_MULTI_THREAD_POOL_SIZE = 4; | |
private static RequestQueue serialRequestQueue; | |
/** | |
* Use to fetch the serial request queue | |
*/ | |
public static RequestQueue getSerialRequestQueue(Context context) { |
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
/* | |
This is for demonstration purposes. Ideally, you should never use the star selector. | |
I recommend that you use this early on in your development, and then once you've established | |
your HTML element palette, go back and replace * with a comma-separated list of your | |
tag names. Additionally, the !important shouldn't have to be used, but I'm leaving it here | |
because some enterprising goons will probably copy and paste this directly into their project - | |
the !important will ensure these settings override other attempts that were either never | |
deleted or are part of an installed CSS file the user is unaware of. | |
*/ | |
* { |