{"action":"created","issue":{"url":"https://api.github.com/repos/offensive-security/nethunter-app/issues/39","labels_url":"https://api.github.com/repos/offensive-security/nethunter-app/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/offensive-security/nethunter-app/issues/39/comments","events_url":"https://api.github.com/repos/offensive-security/nethunter-app/issues/39/events","html_url":"https://github.com/offensive-security/nethunter-app/issues/39","id":77306106,"number":39,"title":"Didnt get iptables in sidemenu","user":{"login":"royalhacker","id":6530843,"avatar_url":"https://avatars.githubusercontent.com/u/6530843?v=3","gravatar_id":"","url":"https://api.github.com/users/royalhacker","html_url":"https://github.com/royalhacker","followers_url":"https://api.github.com/users/royalhacker/followers","following_url":"https://api.github.com/users/royalhacker/following{/other_user}","gists_url":"https://api.github.com/users/royalhacker/gists{/gist_id}","starred_url":"https://api.github.com/users/royalhacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royalhacker/subscriptions","organizations_url":"https://api.github.com/users/royalhacker/orgs","repos_url":"https://api.github.com/users/royalhacker/repos","events_url":"https://api.github.com/users/royalhacker/events{/privacy}","received_events_url":"https://api.github.com/users/royalhacker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-17T13:02:11Z","updated_at":"2015-05-17T14:49:12Z","closed_at":null,"body":"hello @binkybear \r\ni hv been having a strange issue. \r\ni compiled the app on my pc and even then i didnt see the new iptables side menu item.\r\ni digged a little and got a array that seemed suspicious in sideview.java\r\n\r\n  public String[][] querySampleActivities() {\r\n        Intent intent = new Intent(Intent.ACTION_MAIN, null);\r\n        intent.setPackage(getActivity().getPackageName());\r\n        intent.addCategory(Intent.CATEGORY_SAMPLE_CODE);\r\n\r\n        PackageManager pm = getActivity().getPackageManager();\r\n        List<ResolveInfo> infos = pm.queryIntentActivities(intent, 0);\r\n\r\n        final int count = infos.size();\r\n        int total = count;\r\n        if (Build.VERSION.SDK_INT >= 21) {\r\n        \ttotal = count-1;\r\n        }\r\n        String[] activityNames = new String[total];\r\n        String[] activityActions = new String[total];\r\n        for (int i = 0; i < count; i++) {\r\n            final ResolveInfo info = infos.get(i);\r\n            final CharSequence labelSeq = info.loadLabel(pm);\r\n            if (!labelSeq.toString().equals(\"Iptables Configuration\") || Build.VERSION.SDK_INT < 21) {\r\n            \tString label = labelSeq != null ? labelSeq.toString() : info.activityInfo.name;\r\n            \tactivityNames[i] = label;\r\n                activityActions[i] = info.activityInfo.name;\r\n            }\r\n        }\r\n        return new String[][]{activityNames, activityActions};\r\n    }\r\n\r\ncould you please explain the cause of the problem . \r\nit will help me if u would explain the mechanism of listview .\r\n"},"comment":{"url":"https://api.github.com/repos/offensive-security/nethunter-app/issues/comments/102810758","html_url":"https://github.com/offensive-security/nethunter-app/issues/39#issuecomment-102810758","issue_url":"https://api.github.com/repos/offensive-security/nethunter-app/issues/39","id":102810758,"user":{"login":"jmingov","id":783338,"avatar_url":"https://avatars.githubusercontent.com/u/783338?v=3","gravatar_id":"","url":"https://api.github.com/users/jmingov","html_url":"https://github.com/jmingov","followers_url":"https://api.github.com/users/jmingov/followers","following_url":"https://api.github.com/users/jmingov/following{/other_user}","gists_url":"https://api.github.com/users/jmingov/gists{/gist_id}","starred_url":"https://api.github.com/users/jmingov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmingov/subscriptions","organizations_url":"https://api.github.com/users/jmingov/orgs","repos_url":"https://api.github.com/users/jmingov/repos","events_url":"https://api.github.com/users/jmingov/events{/privacy}","received_events_url":"https://api.github.com/users/jmingov/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T14:49:12Z","updated_at":"2015-05-17T14:49:12Z","body":"Hey there, this lines\r\n\r\n    if (Build.VERSION.SDK_INT >= 21) {\r\n        total = count-1;\r\n    }\r\n\r\nIs why you dont see the option of the iptables, isnt a bug, is because the iptables isnt avalable in sdk >= 21\r\n\r\n\r\nJaime"}}