Guest User

Untitled

a guest
Aug 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. android Drawable calling NullPointerException in onCreate after onDestroy has been called
  2. InputStream mapInput = resources.openRawResource(R.drawable.mymap);
  3. mapDrawable = Drawable.createFromStream(mapInput, "mymap");
  4. mapDrawable.setFilterBitmap(true);
  5. mapDrawable.setBounds(0, 0, MAP_WIDTH, MAP_HEIGHT);
  6. myCustomView.setMapDrawable(mapDrawable, MAP_WIDTH, MAP_HEIGHT);
Add Comment
Please, Sign In to add comment