我想单击图像时发生新的活动。 我已经在清单文件中写入activity android:name=.openPdf
。显式意图错误
,但它让我看到了一个错误: -
"android.content.ActivityNotFoundException: Unable to find explicit activity class {Parsing.this/openPdf.class}; have you declared this activity in your AndroidManifest.xml?
"
代码::
iv1.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v)
{
// Toast.makeText(getApplicationContext(), "hello",Toast.LENGTH_SHORT).show();
Intent pdf=new Intent(Parsing.this,openPdf.class);
startActivity(pdf);
}
});
像
请编辑你的答案以添加新信息而不是评论它。 –
nope ....相同的错误happen.i已经在同一个包中创建了第二个活动,现在我使用完整的类名但没有效果。 – arpit