Created
July 21, 2012 04:34
-
-
Save atrus6/3154588 to your computer and use it in GitHub Desktop.
How to create a puzzle using the puzzle library.
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 void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
int[] mImageIds = { R.drawable.kitten1, R.drawable.kitten2, | |
R.drawable.kitten3, R.drawable.kitten4, R.drawable.kitten5, | |
R.drawable.kitten6, R.drawable.kitten7, R.drawable.kitten8, | |
R.drawable.kitten9, R.drawable.kitten10, R.drawable.kitten11, | |
R.drawable.kitten12, R.drawable.kitten13, R.drawable.kitten14, | |
R.drawable.kitten15, R.drawable.kitten16, R.drawable.kitten17, | |
R.drawable.kitten18, R.drawable.kitten19, R.drawable.kitten20, | |
R.drawable.kitten21, R.drawable.kitten22, R.drawable.kitten23, | |
R.drawable.kitten24, R.drawable.kitten25, }; | |
Intent intent = new Intent(this, PuzzleSelectActivity.class); | |
intent.putExtra("images", mImageIds); | |
this.startActivity(intent); | |
} |
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
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<activity android:name="org.worldsproject.puzzle.PuzzleSolveActivity" > | |
</activity> | |
<activity android:name="org.worldsproject.puzzle.PuzzleSelectActivity" > | |
</activity> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great gist.