Author | Message |
---|---|
jpascua
Posts: 197
|
Posted 15:41 May 04, 2016 |
So I followed a couple of suggestions: 1. Placing the invalidate() call inside the initialize method. 2. Dr. Sargent's suggestion by passing in the RelativeLayout container inside the initialize method call. Here is my onActivityResult() in PuzzleActivity.java: And my initialize() in PuzzleBoardView.java:
I have not implemented the PuzzleBoard constructor yet. Why is the image not displaying? Thanks! Last edited by jpascua at
15:41 May 04, 2016.
|
chuckh
Posts: 12
|
Posted 16:15 May 04, 2016 |
You might be missing: Bundle extras = data.getExtras(); in the onActivityResult between the if statement and Bitmap imageBitmap= Maybe that might help? |
chuckh
Posts: 12
|
Posted 16:32 May 04, 2016 |
Bitmap imageBitmap = (Bitmap) extras.get("data"); |
msargent
Posts: 519
|
Posted 17:15 May 04, 2016 |
You need to implement the constructor, for the image is constructed by the PuzzleBoard using tiles created there. |
lhairap
Posts: 11
|
Posted 19:30 May 05, 2016 |
After implementing the constructor, where do we 'display tiles on the board', in the PuzzleBoard or PuzzleActivity? |