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
<?php | |
$numbers = range(1,9); | |
$isSolved = false; | |
while (!$isSolved) { | |
shuffle($numbers); | |
$result = $numbers[0]+13; | |
$result = $result*$numbers[1]; | |
$result = $result/$numbers[2]; | |
if (!is_int($result)) continue; | |
$result = $result + $numbers[3]; |
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 ObtainImage { | |
private Uri imgUri; | |
/** Here goes your code where you handle the way the user chooses between getting from gallery or opening camera **/ | |
/** | |
* Opens gallery to choose image. | |
*/ | |
private void chooseFromGallery() { |