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
    
  
  
    
  | <?php | |
| #API access key from Google API's Console | |
| define( 'API_ACCESS_KEY', 'YOUR-SERVER-API-ACCESS-KEY-GOES-HERE' ); | |
| $registrationIds = $_GET['id']; | |
| #prep the bundle | |
| $msg = array | |
| ( | |
| 'body' => 'Body Of Notification', | |
| 'title' => 'Title Of Notification', | |
| 'icon' => 'myicon',/*Default Icon*/ | 
  
    
      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
    
  
  
    
  | /** | |
| * Distinguishes different kinds of app starts: <li> | |
| * First start ever ({@link #FIRST_TIME}) | |
| * First start in this version ({@link #FIRST_TIME_VERSION}) | |
| * Normal app start ({@link #NORMAL}) | |
| * | |
| * @author Jaydip | |
| */ | |
| public enum AppStart { | |
| FIRST_TIME, FIRST_TIME_VERSION, NORMAL | 
  
    
      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
    
  
  
    
  | if (BuildConfig.PAID_VERSION) { | |
| // do paid version only stuff | |
| } | 
  
    
      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 static void setCursorColor(EditText view, @ColorInt int color) { | |
| try { | |
| // Get the cursor resource id | |
| Field field = TextView.class.getDeclaredField("mCursorDrawableRes"); | |
| field.setAccessible(true); | |
| int drawableResId = field.getInt(view); | |
| // Get the editor | |
| field = TextView.class.getDeclaredField("mEditor"); | |
| field.setAccessible(true); | 
  
    
      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 boolean dispatchTouchEvent(MotionEvent event) { | |
| View view = getCurrentFocus(); | |
| boolean ret = super.dispatchTouchEvent(event); | |
| if (view instanceof EditText) { | |
| View w = getCurrentFocus(); | |
| int scrcoords[] = new int[2]; | |
| w.getLocationOnScreen(scrcoords); | |
| float x = event.getRawX() + w.getLeft() - scrcoords[0]; | 
  
    
      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 readQRCode(Bitmap bMap) { | |
| int width = bMap.getWidth(); | |
| int height = bMap.getHeight(); | |
| int[] pixels = new int[width * height]; | |
| bMap.getPixels(pixels, 0, width, 0, 0, width, height); | |
| RGBLuminanceSource source = new RGBLuminanceSource(width, height, pixels); | |
| BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source)); | |
| Reader reader = new MultiFormatReader(); | |
| try { |