Я пытаюсь раздуть фотографию, которую я взял с помощью камеры на ImageView, но получаю NPE.изображение не будет отображаться на завышенном изображении.
public void onDescriptionClick(){
RelativeLayout mainLayout = (RelativeLayout) findViewById(R.id.camap);
View view = getLayoutInflater().inflate(R.layout.pic_check, mainLayout, false);
RelativeLayout inflatedLayout = (RelativeLayout) findViewById(R.id.inflated);
ImageView iv= (ImageView)findViewById(R.id.imgv);
mainLayout.addView(inflatedLayout);
inflatedLayout.addView(iv);
iv.setImageBitmap(bitmap);//here i get NPE
}
помощь будет оценена
Ваш растровый является недействительным? –