{"action":"created","issue":{"url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/23","repository_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking","labels_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/23/comments","events_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/23/events","html_url":"https://github.com/amitshekhariitbhu/Fast-Android-Networking/issues/23","id":175716269,"number":23,"title":"cancelTag someTime is not to taken into effect ","user":{"login":"LOWANGA","id":6121714,"avatar_url":"https://avatars.githubusercontent.com/u/6121714?v=3","gravatar_id":"","url":"https://api.github.com/users/LOWANGA","html_url":"https://github.com/LOWANGA","followers_url":"https://api.github.com/users/LOWANGA/followers","following_url":"https://api.github.com/users/LOWANGA/following{/other_user}","gists_url":"https://api.github.com/users/LOWANGA/gists{/gist_id}","starred_url":"https://api.github.com/users/LOWANGA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LOWANGA/subscriptions","organizations_url":"https://api.github.com/users/LOWANGA/orgs","repos_url":"https://api.github.com/users/LOWANGA/repos","events_url":"https://api.github.com/users/LOWANGA/events{/privacy}","received_events_url":"https://api.github.com/users/LOWANGA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-08T10:14:17Z","updated_at":"2016-09-08T11:12:36Z","closed_at":null,"body":"```\r\npublic void cancelRequestWithGivenTag(final Object tag, final boolean forceCancel) {\r\n        try {\r\n            if (tag == null) {\r\n                return;\r\n            }\r\n            cancel(new RequestFilter() {\r\n                @Override\r\n                public boolean apply(ANRequest request) {\r\n                    return request.getTag() == tag;\r\n                }\r\n            }, forceCancel);\r\n        } catch (Exception e) {\r\n            e.printStackTrace();\r\n        }\r\n    }\r\n```\r\n\r\nif I used like this \r\n```\r\npublic static void uploadFile(String url,String tag,HashMap<String, String> params, String key,File file, UploadProgressListener uploadProgressListener, StringRequestListener listener) {        \r\n\r\nAndroidNetworking.upload(url)\r\n.setTag(tag)\r\n.addHeaders(getRequestHeader())\r\n.addMultipartFile(key,file)\r\n.addMultipartParameter(params)\r\n.build()\r\n.setUploadProgressListener(uploadProgressListener).getAsString(listener);\r\n }\r\n\r\n public static void cancleByTag(String tag){\r\n        AndroidNetworking.cancel(tag);\r\n  }\r\n\r\n```\r\ntag is no == \r\n I think if use equals will be better\r\n"},"comment":{"url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/comments/245566216","html_url":"https://github.com/amitshekhariitbhu/Fast-Android-Networking/issues/23#issuecomment-245566216","issue_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/23","id":245566216,"user":{"login":"amitshekhariitbhu","id":9877145,"avatar_url":"https://avatars.githubusercontent.com/u/9877145?v=3","gravatar_id":"","url":"https://api.github.com/users/amitshekhariitbhu","html_url":"https://github.com/amitshekhariitbhu","followers_url":"https://api.github.com/users/amitshekhariitbhu/followers","following_url":"https://api.github.com/users/amitshekhariitbhu/following{/other_user}","gists_url":"https://api.github.com/users/amitshekhariitbhu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitshekhariitbhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitshekhariitbhu/subscriptions","organizations_url":"https://api.github.com/users/amitshekhariitbhu/orgs","repos_url":"https://api.github.com/users/amitshekhariitbhu/repos","events_url":"https://api.github.com/users/amitshekhariitbhu/events{/privacy}","received_events_url":"https://api.github.com/users/amitshekhariitbhu/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T11:12:36Z","updated_at":"2016-09-08T11:12:36Z","body":"```\r\n        String stringOne = \"one\";\r\n        String stringTwo = \"one\";\r\n\r\n        Object objectOne = stringOne;\r\n        Object objectTwo = stringTwo;\r\n\r\n        if (objectOne == objectTwo) {\r\n            Log.d(TAG, \"Both are equal\");\r\n        }\r\n```\r\n\r\nI have tried this. This is printing \"Both are equal\";"}}
{"actor":{"display_login":"amitshekhariitbhu"}}