I am working on android. i want to know that whether this is possible to check that
following key,value pair has created or not ?
String filename=getIntent().getExtras().getString("FILE_NAME");
textView_file_name=(TextView)findViewById(R.id.TextView_fileName);
textView_file_name.setText(filename);
before my first programing statement, means before getting the value of FILE_NAME, i want to check whether this key-value pair has build or not ? because i am getting null pointer exception in the case if it is not done before these statement. So i want to know that is any code so i can check intent.putExtras().getString("FILE_NAME"); has done or not.
You can store in a String variable if you send String data as below and print in cosole to check it: