Photo Capture Display

9:58 PM

gR :: Photo Report Form

Take a photo of something related to the Inauguration, enter a caption and then submit your report...

Take a picture:

Activate Camera

Enter a caption:

reportphotoform.xml_

<ImageView android:id="@+id/previewphoto" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top"/>

gR :: Photo Report Form

Take a photo of something related to the Inauguration, enter a caption and then submit your report...

Take a picture:

Activate Camera

Enter a caption:

PhotoFormActivity

/** Called when the activity is first created. */ @Override public void onCreate(Bundle savedlnstanceState) { super.onCreate(savedlnstanceState);

currentPhotoPath = this.getIntent().getStringExtra("photofileM); setContentView(R.layout.reportphotoform);

((Button)findViewById(R.id.btnTakePicture)).setOnClickListener(this);

((Button)findViewById(R.id.btnReportFormSubmit)).setOnClickListener(this); ((Button)findViewById(R.id.btnReportFormCancel)).setOnClickListener(this);

if (currentPhotoPath != null) {

Toast.makeText(getBaseContext(), "Ready to send photo: " + currentPhotoPath, Toast.LENGTH_LONG).show();

((ImageView)findViewById(R.id.previewphoto)).setImageURI(Uri.parse(currentPhotoPath));

Was this article helpful?

0 0

Post a comment