{"action":"opened","issue":{"url":"https://api.github.com/repos/square/retrofit/issues/1201","labels_url":"https://api.github.com/repos/square/retrofit/issues/1201/labels{/name}","comments_url":"https://api.github.com/repos/square/retrofit/issues/1201/comments","events_url":"https://api.github.com/repos/square/retrofit/issues/1201/events","html_url":"https://github.com/square/retrofit/issues/1201","id":111571120,"number":1201,"title":"Android : How to set splash screen showing just once","user":{"login":"griajobag","id":15098925,"avatar_url":"https://avatars.githubusercontent.com/u/15098925?v=3","gravatar_id":"","url":"https://api.github.com/users/griajobag","html_url":"https://github.com/griajobag","followers_url":"https://api.github.com/users/griajobag/followers","following_url":"https://api.github.com/users/griajobag/following{/other_user}","gists_url":"https://api.github.com/users/griajobag/gists{/gist_id}","starred_url":"https://api.github.com/users/griajobag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griajobag/subscriptions","organizations_url":"https://api.github.com/users/griajobag/orgs","repos_url":"https://api.github.com/users/griajobag/repos","events_url":"https://api.github.com/users/griajobag/events{/privacy}","received_events_url":"https://api.github.com/users/griajobag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-15T08:47:17Z","updated_at":"2015-10-15T08:47:17Z","closed_at":null,"body":"i have created some code for this splash screen, but when i debug and running. i got an error \" force close \"\r\n\r\nthis is my code :\r\n\r\n```\r\n@Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n      //  setContentView(R.layout.activity_tutorial); // this line off\r\n        SharedPreferences settings = getSharedPreferences(\"prefs\",0);\r\n        boolean firstRun = settings.getBoolean(\"firstRun\", false);\r\n        if(firstRun==false){\r\n            SharedPreferences.Editor editor = settings.edit();\r\n            editor.putBoolean(\"firstRun\", true);\r\n            editor.commit();\r\n            Intent i = new Intent(ActivityOne.this, ActivityTwo.class);\r\n            startActivity(i);\r\n            finish();\r\n        }else{\r\n            Intent a = new Intent(ActivityOne.this, ActivityOne.class);\r\n            startActivity(a);\r\n            finish();\r\n        }\r\n```\r\n\r\nwould you mind to suggest me, how to fix this issue."}}