如果文件存在,我想运行我的 Intent,否则显示找不到文件的消息。这是我的代码
if (!file.exists())
{
Toast.makeText(MyActivity.this, " the file not found",Toast.LENGTH_LONG).show();
}
{
Intent intent = new Intent(getApplicationContext(),BooksActivity.class );
startActivity(intent);
}