package gruppn.kasslr;

import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageView;

import java.io.File;

public class AddWordActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_add_word);

        Button btnAdd = (Button) findViewById(R.id.btnAddWord);
        btnAdd.setOnClickListener(v -> {
            // TODO Add word + image to vocabulary
            // Perhaps use intent result?
        });

        // TODO does CameraActivity return a Bitmap image or a Uri to an image?
        Uri image = (Uri) getIntent().getExtras().get("image");
        if (image != null) {
            ImageView imgWord = (ImageView) findViewById(R.id.imgWord);
            imgWord.setImageURI(image);
        }
    }
}

@@ -259,16 +259,71 @@
 ivity %7B%0A
+    public static final String EXTRA_IMAGE = %22image%22;%0A%0A
     @Ove
@@ -697,88 +697,8 @@
 );%0A%0A
-        // TODO does CameraActivity return a Bitmap image or a Uri to an image?%0A
     
@@ -747,23 +747,27 @@
 s().get(
-%22image%22
+EXTRA_IMAGE
 );%0A     

Use string constant