{"action":"created","issue":{"url":"https://api.github.com/repos/doctorapps/nhs_android/issues/42","labels_url":"https://api.github.com/repos/doctorapps/nhs_android/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/doctorapps/nhs_android/issues/42/comments","events_url":"https://api.github.com/repos/doctorapps/nhs_android/issues/42/events","html_url":"https://github.com/doctorapps/nhs_android/issues/42","id":119252021,"number":42,"title":"Create search bar","user":{"login":"tomgrim","id":1646456,"avatar_url":"https://avatars.githubusercontent.com/u/1646456?v=3","gravatar_id":"","url":"https://api.github.com/users/tomgrim","html_url":"https://github.com/tomgrim","followers_url":"https://api.github.com/users/tomgrim/followers","following_url":"https://api.github.com/users/tomgrim/following{/other_user}","gists_url":"https://api.github.com/users/tomgrim/gists{/gist_id}","starred_url":"https://api.github.com/users/tomgrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomgrim/subscriptions","organizations_url":"https://api.github.com/users/tomgrim/orgs","repos_url":"https://api.github.com/users/tomgrim/repos","events_url":"https://api.github.com/users/tomgrim/events{/privacy}","received_events_url":"https://api.github.com/users/tomgrim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"robgledhill","id":15332357,"avatar_url":"https://avatars.githubusercontent.com/u/15332357?v=3","gravatar_id":"","url":"https://api.github.com/users/robgledhill","html_url":"https://github.com/robgledhill","followers_url":"https://api.github.com/users/robgledhill/followers","following_url":"https://api.github.com/users/robgledhill/following{/other_user}","gists_url":"https://api.github.com/users/robgledhill/gists{/gist_id}","starred_url":"https://api.github.com/users/robgledhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robgledhill/subscriptions","organizations_url":"https://api.github.com/users/robgledhill/orgs","repos_url":"https://api.github.com/users/robgledhill/repos","events_url":"https://api.github.com/users/robgledhill/events{/privacy}","received_events_url":"https://api.github.com/users/robgledhill/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/doctorapps/nhs_android/milestones/1","html_url":"https://github.com/doctorapps/nhs_android/milestones/beta","labels_url":"https://api.github.com/repos/doctorapps/nhs_android/milestones/1/labels","id":1436002,"number":1,"title":"beta","description":"","creator":{"login":"tomgrim","id":1646456,"avatar_url":"https://avatars.githubusercontent.com/u/1646456?v=3","gravatar_id":"","url":"https://api.github.com/users/tomgrim","html_url":"https://github.com/tomgrim","followers_url":"https://api.github.com/users/tomgrim/followers","following_url":"https://api.github.com/users/tomgrim/following{/other_user}","gists_url":"https://api.github.com/users/tomgrim/gists{/gist_id}","starred_url":"https://api.github.com/users/tomgrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomgrim/subscriptions","organizations_url":"https://api.github.com/users/tomgrim/orgs","repos_url":"https://api.github.com/users/tomgrim/repos","events_url":"https://api.github.com/users/tomgrim/events{/privacy}","received_events_url":"https://api.github.com/users/tomgrim/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":1,"state":"open","created_at":"2015-11-30T20:15:31Z","updated_at":"2015-12-21T14:33:36Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2015-11-27T21:51:40Z","updated_at":"2015-12-30T13:08:34Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/doctorapps/nhs_android/issues/comments/167993095","html_url":"https://github.com/doctorapps/nhs_android/issues/42#issuecomment-167993095","issue_url":"https://api.github.com/repos/doctorapps/nhs_android/issues/42","id":167993095,"user":{"login":"robgledhill","id":15332357,"avatar_url":"https://avatars.githubusercontent.com/u/15332357?v=3","gravatar_id":"","url":"https://api.github.com/users/robgledhill","html_url":"https://github.com/robgledhill","followers_url":"https://api.github.com/users/robgledhill/followers","following_url":"https://api.github.com/users/robgledhill/following{/other_user}","gists_url":"https://api.github.com/users/robgledhill/gists{/gist_id}","starred_url":"https://api.github.com/users/robgledhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robgledhill/subscriptions","organizations_url":"https://api.github.com/users/robgledhill/orgs","repos_url":"https://api.github.com/users/robgledhill/repos","events_url":"https://api.github.com/users/robgledhill/events{/privacy}","received_events_url":"https://api.github.com/users/robgledhill/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T13:08:34Z","updated_at":"2015-12-30T13:08:34Z","body":"@tomgrim I'm really stuck on this one.  I initially tried to set up the searchview using this guide:\r\nhttp://developer.android.com/training/search/setup.html\r\n\r\nI was encountering some problems (a nullpointerexception) After some googling I found that this was a common problem, and other people had explained a fix here: http://stackoverflow.com/questions/11699206/cannot-get-searchview-in-actionbar-to-work\r\n\r\nHowever even after implementing these fixes the problem persists.\r\n\r\n\r\nAndroid Manifest:\r\n![image](https://cloud.githubusercontent.com/assets/15332357/12050956/6aae6cb8-aef4-11e5-82f5-74940879710b.png)\r\n\r\nSection of MainActivity that crashes:\r\n![image](https://cloud.githubusercontent.com/assets/15332357/12050973/9fd34292-aef4-11e5-8679-0c747e4e71a0.png)\r\n\r\nSearchable.xml\r\n![image](https://cloud.githubusercontent.com/assets/15332357/12050984/bb4da274-aef4-11e5-83c2-c131b5084520.png)\r\n\r\nSearchable activity\r\n![image](https://cloud.githubusercontent.com/assets/15332357/12050993/d8a227d2-aef4-11e5-86d4-8b7338f0a66a.png)\r\n\r\n\r\nThis is the error message I get\r\n![image](https://cloud.githubusercontent.com/assets/15332357/12051073/424d62a4-aef6-11e5-9178-f44e1e06c1c0.png)\r\n\r\nAnd I can tell via de-bugging that it is caused by the line:\r\nsearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\r\nin main activity\r\n\r\nI've tried replacing that line with:\r\nComponentName cn = new ComponentName(this, SearchableActivity.class);\r\nsearchView.setSearchableInfo(searchManager.getSearchableInfo(cn));\r\n\r\nBut the same error occurs.\r\n\r\nAny ideas?"}}