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
@Override | |
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { | |
super.onCreateOptionsMenu(menu, inflater); | |
MenuItem actionItem = menu.findItem(R.id.menu_item_share); | |
ShareActionProvider actionProvider = (ShareActionProvider) actionItem.getActionProvider(); | |
actionProvider.setShareHistoryFileName(ShareActionProvider.DEFAULT_SHARE_HISTORY_FILE_NAME); | |
// Note that you can set/change the intent any time, | |
// say when the user has selected an image. | |
actionProvider.setShareIntent(createShareIntent()); | |
} |
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
protected void OpenAppInPlay() { | |
Uri uri = Uri.parse("market://details?id="/** put package name of app here. */); | |
Intent browserIntent = new Intent(Intent.ACTION_VIEW, uri); | |
startActivity(browserIntent); | |
} |
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
byte[] digist; | |
Base64.encodeToString(digest, Base64.URL_SAFE | Base64.NO_PADDING); |
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 abstract class API { | |
private static BackendResponse getResponseWithOKHttp(Context context, Request req, | |
List<NameValuePair> nvp, boolean hasMedia) { | |
if (req != Request.DEVICE_CREATE && !Utils.deviceIsCreated(context)) { | |
// NOTE Houston, We've Got a Problem, try again! | |
BackendResponse br = createDevice(context, null); | |
if (br.isOK()) { | |
Utils.storeTokens(context, br.getJSON()); | |
} else { | |
return br; |
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
/* Custom Code */ | |
// ENQUEUE SCRIPS & STYLES FOR BOOTSTRAP | |
add_action('genesis_before_header', 'responsive_nav'); | |
function responsive_nav() { | |
wp_register_style( 'bootstrap-css', get_stylesheet_directory_uri() . '/css/bootstrap.css'); | |
wp_enqueue_style( 'bootstrap-css' ); | |
wp_register_script( 'bootstrap-js', get_stylesheet_directory_uri() . '/js/bootstrap.min.js', array('jquery'), false, true ); | |
wp_enqueue_script( 'bootstrap-js' ); | |
} |
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 SlowViewPager extends ViewGroup { | |
@Override | |
public boolean onTouchEvent(MotionEvent ev) { | |
// all normal Viewpager onTouch code | |
switch (action & MotionEventCompat.ACTION_MASK) { | |
case MotionEvent.ACTION_UP: | |
if (mIsBeingDragged) { | |
final VelocityTracker velocityTracker = mVelocityTracker; | |
velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); |
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
-optimizationpasses 5 | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-dontskipnonpubliclibraryclassmembers | |
-dontpreverify | |
-verbose | |
#your package path where your gson models are stored | |
-keep class com.project.models.** { *; } |
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 DateTypeDeserializer implements JsonDeserializer<Date>, JsonSerializer<Date> { | |
private static final String[] DATE_FORMATS = new String[]{ | |
"yyyy-MM-dd'T'HH:mm:ssZ", | |
"yyyy-MM-dd'T'HH:mm:ss", | |
"yyyy-MM-dd", | |
"EEE MMM dd HH:mm:ss z yyyy", | |
"HH:mm:ss", | |
"MM/dd/yyyy HH:mm:ss aaa", | |
"yyyy-MM-dd'T'HH:mm:ss.SSSSSS", | |
"yyyy-MM-dd'T'HH:mm:ss.SSSSSSS", |
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
Verifying that +dylandrost is my blockchain ID. https://onename.com/dylandrost |
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
+-------------+----------+--------------------+----------+-------------+----------------+---------+ | |
| DEVICE_ID | MAKE | MODEL_NAME | FORM | RESOLUTION | OS_VERSION_IDS | TAGS | | |
+-------------+----------+--------------------+----------+-------------+----------------+---------+ | |
| D6503 | Sony | Xperia Z2 | PHYSICAL | 1920 x 1080 | 21 | | | |
| D6603 | Sony | Xperia Z3 | PHYSICAL | 1920 x 1080 | 21 | | | |
| E5803 | Sony | Xperia Z5 Compact | PHYSICAL | 1280 x 720 | 22 | | | |
| F5121 | Sony | Sony Xperia X | PHYSICAL | 1920 x 1080 | 23 | | | |
| Nexus10 | Samsung | Nexus 10 | VIRTUAL | 2560 x 1600 | 19,21,22 | beta | | |
| Nexus4 | LG | Nexus 4 | VIRTUAL | 1280 x 768 | 19,21,22 | beta | | |
| Nexus5 | LG | Nexus 5 | VIRTUAL | 1920 x 1080 | 19,21,22,23 | beta | |
OlderNewer