somehting is wrong with my line of code in android studio the error: if (requestCode ==…
Jump to turn (6)
- 1somehting is wrong with my line of code in android studio the error: if (request
- 2my imageoutline id is marked red where im specifically talking about the id in m
- 3something is wrong with my manifest code here
- 4Task :app:processDebugAndroidTestResources FAILED AGPBI: {"kind":"error","text":
- 5Task :app:processDebugMainManifest FAILED Incorrect package="com.clearup.android
- 6e: file:///D:/Program%20Files/ASPROJECTS/app/src/main/java/com/androidstudio/cle
- User
somehting is wrong with my line of code in android studio
the error: if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == Activity.RESULT_OK) { val imageBitmap = data?.extras?.get(“data”) as Bitmap val imageView: ImageView = findViewById(R.id.image_outline) // Replace with your ImageView’s ID imageView.setImageBitmap(imageBitmap)
full code: package com.androidstudio.clearup
import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.provider.MediaStore; import android.widget.Button; import android.widget.ImageView; import android.support.v7.app.AppCompatActivity
class MainActivity : AppCompatActivity() { private val REQUEST_IMAGE_CAPTURE = 1