Buggy code:
public class CreateAccount extends AppCompatActivity { String emailTxt ; String usernameTxt ; String passwordTxt ; String passwordCfmTxt ; EditText email ; EditText username ; EditText password ; EditText passwordCfm ; Button button ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_create_account ) ; Toolbar toolbar = ( ( Toolbar ) ( findViewById ( toolbar ) ) ) ; setSupportActionBar ( toolbar ) ; email = ( ( EditText ) ( findViewById ( editTextEmail ) ) ) ; username = ( ( EditText ) ( findViewById ( editTextUsername ) ) ) ; password = ( ( EditText ) ( findViewById ( editTextPassword ) ) ) ; passwordCfm = ( ( EditText ) ( findViewById ( editTextPasswordConfirm ) ) ) ; button = ( ( Button ) ( findViewById ( createButton ) ) ) ; button . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { emailTxt = email . getText ( ) . toString ( ) ; usernameTxt = username . getText ( ) . toString ( ) ; passwordTxt = password . getText ( ) . toString ( ) ; passwordCfmTxt = passwordCfm . getText ( ) . toString ( ) ; if ( ( ( usernameTxt . equals ( "" ) ) || ( passwordTxt . equals ( "" ) ) ) || ( emailTxt . equals ( "" ) ) ) { Toast . makeText ( getApplicationContext ( ) , "Please<seq2seq4repair_space>enter<seq2seq4repair_space>your<seq2seq4repair_space>email,<seq2seq4repair_space>username,<seq2seq4repair_space>and<seq2seq4repair_space>password." , LENGTH_LONG ) . show ( ) ; } else { if ( ! ( passwordTxt . equals ( passwordCfmTxt ) ) ) { Toast . makeText ( getApplicationContext ( ) , "Password<seq2seq4repair_space>and<seq2seq4repair_space>Password<seq2seq4repair_space>Confirmation<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>match." , LENGTH_LONG ) . show ( ) ; } else { System . out . println ( "made<seq2seq4repair_space>it" ) ; ParseUser user = new ParseUser ( ) ; user . setEmail ( emailTxt ) ; user . setUsername ( usernameTxt ) ; user . setPassword ( passwordTxt ) ; final ProgressDialog dialog = new ProgressDialog ( CreateAccount . this ) ; dialog . setMessage ( "Signing<seq2seq4repair_space>up..." ) ; dialog . show ( ) ; user . signUpInBackground ( new SignUpCallback ( ) { @ Override public void done ( ParseException e ) { if ( e == null ) { startActivity ( new Intent ( CreateAccount . this , HomePage . class ) ) ; finish ( ) ; } else { dialog . dismiss ( ) ; Toast . makeText ( getApplicationContext ( ) , e . toString ( ) , LENGTH_LONG ) . show ( ) ; } } } ) ; } } } } ) ; getSupportActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ; <START_BUG> Bitmap bm = BitmapFactory . decodeResource ( getResources ( ) , profile_pic_default ) ; <END_BUG> ImageView myImageView = ( ( ImageView ) ( findViewById ( imageView6 ) ) ) ; myImageView . setImageBitmap ( bm ) ; Spinner s = ( ( Spinner ) ( findViewById ( spinnerPicID ) ) ) ; ArrayAdapter adapter = ArrayAdapter . createFromResource ( this , Profile_Types , spinner_item ) ; adapter . setDropDownViewResource ( spinner_dropdown_item ) ; s . setAdapter ( adapter ) ; s . setOnItemSelectedListener ( new AdapterView . OnItemSelectedListener ( ) { @ Override public void onItemSelected ( AdapterView < ? > parent , View view , int position , long id ) { String Task = parent . getSelectedItem ( ) . toString ( ) ; Bitmap nbm = BitmapFactory . decodeResource ( getResources ( ) , selecticon ) ; ImageView superManImageView = ( ( ImageView ) ( findViewById ( imageView6 ) ) ) ; superManImageView . setImageBitmap ( nbm ) ; switch ( Task ) { case "Select<seq2seq4repair_space>Pic" : Bitmap selectbm = BitmapFactory . decodeResource ( getResources ( ) , selecticon ) ; ImageView selectImageView = ( ( ImageView ) ( findViewById ( imageView6 ) ) ) ; selectImageView . setImageBitmap ( selectbm ) ; break ; case "Superman" : Bitmap laundrybm = BitmapFactory . decodeResource ( getResources ( ) , supermanprofile ) ; ImageView laundryImageView = ( ( ImageView ) ( findViewById ( imageView6 ) ) ) ; laundryImageView . setImageBitmap ( laundrybm ) ; break ; case "WonderWoman" : Bitmap dishesbm = BitmapFactory . decodeResource ( getResources ( ) , supergirlprofile ) ; ImageView dishesImageView = ( ( ImageView ) ( findViewById ( imageView6 ) ) ) ; dishesImageView . setImageBitmap ( dishesbm ) ; break ; case "Harlequin" : Bitmap carbm = BitmapFactory . decodeResource ( getResources ( ) , harlequin_profile ) ; ImageView carImageView = ( ( ImageView ) ( findViewById ( imageView6 ) ) ) ; carImageView . setImageBitmap ( carbm ) ; break ; case "StormTrooper" : Bitmap foodbm = BitmapFactory . decodeResource ( getResources ( ) , stormtrooperprofile ) ; ImageView foodImageView = ( ( ImageView ) ( findViewById ( imageView6 ) ) ) ; foodImageView . setImageBitmap ( foodbm ) ; break ; case "Batman" : Bitmap gamebm = BitmapFactory . decodeResource ( getResources ( ) , batmanprofile ) ; ImageView gameImageView = ( ( ImageView ) ( findViewById ( imageView6 ) ) ) ; gameImageView . setImageBitmap ( gamebm ) ; break ; } } @ Override public void onNothingSelected ( AdapterView < ? > parent ) { } } ) ; } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
Bitmap bm = BitmapFactory . decodeResource ( getResources ( ) , selecticon ) ;