{"action":"created","issue":{"url":"https://api.github.com/repos/AppLozic/Applozic-Android-SDK/issues/256","repository_url":"https://api.github.com/repos/AppLozic/Applozic-Android-SDK","labels_url":"https://api.github.com/repos/AppLozic/Applozic-Android-SDK/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/AppLozic/Applozic-Android-SDK/issues/256/comments","events_url":"https://api.github.com/repos/AppLozic/Applozic-Android-SDK/issues/256/events","html_url":"https://github.com/AppLozic/Applozic-Android-SDK/issues/256","id":236645425,"number":256,"title":"Message with html content needed","user":{"login":"MobileKunst","id":20837652,"avatar_url":"https://avatars1.githubusercontent.com/u/20837652?v=3","gravatar_id":"","url":"https://api.github.com/users/MobileKunst","html_url":"https://github.com/MobileKunst","followers_url":"https://api.github.com/users/MobileKunst/followers","following_url":"https://api.github.com/users/MobileKunst/following{/other_user}","gists_url":"https://api.github.com/users/MobileKunst/gists{/gist_id}","starred_url":"https://api.github.com/users/MobileKunst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MobileKunst/subscriptions","organizations_url":"https://api.github.com/users/MobileKunst/orgs","repos_url":"https://api.github.com/users/MobileKunst/repos","events_url":"https://api.github.com/users/MobileKunst/events{/privacy}","received_events_url":"https://api.github.com/users/MobileKunst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Sunilkumarr","id":11742961,"avatar_url":"https://avatars2.githubusercontent.com/u/11742961?v=3","gravatar_id":"","url":"https://api.github.com/users/Sunilkumarr","html_url":"https://github.com/Sunilkumarr","followers_url":"https://api.github.com/users/Sunilkumarr/followers","following_url":"https://api.github.com/users/Sunilkumarr/following{/other_user}","gists_url":"https://api.github.com/users/Sunilkumarr/gists{/gist_id}","starred_url":"https://api.github.com/users/Sunilkumarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sunilkumarr/subscriptions","organizations_url":"https://api.github.com/users/Sunilkumarr/orgs","repos_url":"https://api.github.com/users/Sunilkumarr/repos","events_url":"https://api.github.com/users/Sunilkumarr/events{/privacy}","received_events_url":"https://api.github.com/users/Sunilkumarr/received_events","type":"User","site_admin":false},"assignees":[{"login":"Sunilkumarr","id":11742961,"avatar_url":"https://avatars2.githubusercontent.com/u/11742961?v=3","gravatar_id":"","url":"https://api.github.com/users/Sunilkumarr","html_url":"https://github.com/Sunilkumarr","followers_url":"https://api.github.com/users/Sunilkumarr/followers","following_url":"https://api.github.com/users/Sunilkumarr/following{/other_user}","gists_url":"https://api.github.com/users/Sunilkumarr/gists{/gist_id}","starred_url":"https://api.github.com/users/Sunilkumarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sunilkumarr/subscriptions","organizations_url":"https://api.github.com/users/Sunilkumarr/orgs","repos_url":"https://api.github.com/users/Sunilkumarr/repos","events_url":"https://api.github.com/users/Sunilkumarr/events{/privacy}","received_events_url":"https://api.github.com/users/Sunilkumarr/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-06-17T07:30:54Z","updated_at":"2017-06-17T13:01:34Z","closed_at":null,"body":"<!---\r\n\r\nWe LOVE to help with any issues or bugs you have!\r\n\r\n**Feature Request**: Just fill in the first two sections below.\r\n\r\n**Bugs**: To help you as fast as possible with an issue please describe your issue\r\nand the steps you have taken to reproduce it in as many details as possible.\r\n\r\nThanks for helping us help you! :-)\r\n-->\r\n\r\n## Goals\r\n<!--- What do you want to achieve? -->\r\n Is it possible to force demo application to interpret message as html code ? I'd like to put some user friendly looking links <a href=\"http://google.com\">description</a>.\r\n\r\nMaybe Should I add some meta-data to message ?\r\n\r\nI noticed that Message object at android have contentType field which can accept value TEXT_HTML\r\n\r\n## Expected Results\r\nIn mobile android aplication message with html code looks like in browser\r\n\r\n## Actual Results\r\nHtml code is presented\r\n\r\n## Steps to Reproduce\r\nSend message with html code\r\n\r\n## Code Sample\r\nPOST\r\nhttps://apps.applozic.com/rest/ws/message/dispatch\r\n{\r\n  \"senderName\":\"xxx\",\r\n  \"to\":\"8496007c16814b568c96d6c3e20d0456\",\r\n  \"message\":\"Hi focz2, visit: <a href='http://www.google.com'>google</a>\"\r\n}\r\nApplozic Android SDK version: ?\r\n<!--- You can get the version from gradle Dependency or from module build.gradle file versionName -->\r\n\r\nAndroid device: ?\r\n\r\nAndroid OS version: ?\r\n\r\nDependencies used with version: ?"},"comment":{"url":"https://api.github.com/repos/AppLozic/Applozic-Android-SDK/issues/comments/309213917","html_url":"https://github.com/AppLozic/Applozic-Android-SDK/issues/256#issuecomment-309213917","issue_url":"https://api.github.com/repos/AppLozic/Applozic-Android-SDK/issues/256","id":309213917,"user":{"login":"Sunilkumarr","id":11742961,"avatar_url":"https://avatars2.githubusercontent.com/u/11742961?v=3","gravatar_id":"","url":"https://api.github.com/users/Sunilkumarr","html_url":"https://github.com/Sunilkumarr","followers_url":"https://api.github.com/users/Sunilkumarr/followers","following_url":"https://api.github.com/users/Sunilkumarr/following{/other_user}","gists_url":"https://api.github.com/users/Sunilkumarr/gists{/gist_id}","starred_url":"https://api.github.com/users/Sunilkumarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sunilkumarr/subscriptions","organizations_url":"https://api.github.com/users/Sunilkumarr/orgs","repos_url":"https://api.github.com/users/Sunilkumarr/repos","events_url":"https://api.github.com/users/Sunilkumarr/events{/privacy}","received_events_url":"https://api.github.com/users/Sunilkumarr/received_events","type":"User","site_admin":false},"created_at":"2017-06-17T13:01:34Z","updated_at":"2017-06-17T13:01:34Z","body":"@MobileKunst  only some tags are supported for message **contentType** = \"3\" you can try sending a message with contentType  TEXT_HTML  i.e contentType  value is 3   and for   link clickable you have to do some changes for that this are the changes\r\n\r\n1) You need to download github sample project from  https://github.com/AppLozic/Applozic-Android-SDK and  import the **mobicomkitui** module or folder  into your project  and add \r\n`compile project(':mobicomkitui')  ` in your app build.gradle file \r\n\r\n2) Open **mobicom_received_message_list_view.xml** file and find the textview with android:id=\"@+id/message\" and go to this  [link line number](https://github.com/AppLozic/Applozic-Android-SDK/blob/master/mobicomkitui/src/main/res/layout/mobicom_received_message_list_view.xml#L114\r\n)  and remove the   android:autoLink=\"all\" from the file in your project  and do the same for this **mobicom_sent_message_list_view.xml** file remove android:autoLink=\"all\" at \r\n[link line number](https://github.com/AppLozic/Applozic-Android-SDK/blob/master/mobicomkitui/src/main/res/layout/mobicom_sent_message_list_view.xml#L62\r\n)\r\n\r\n3) Open **DetailedConversationAdapter.java** file in your project and go to this [ link ](https://github.com/AppLozic/Applozic-Android-SDK/blob/master/mobicomkitui/src/main/java/com/applozic/mobicomkit/uiwidgets/conversation/adapter/DetailedConversationAdapter.java#L765) and remove that selected link and paste this below code at same line \r\n```\r\n\r\n               if (Utils.hasNougat()) {  \r\n    messageTextView.setText(Html.fromHtml(message.getMessage(),Html.FROM_HTML_MODE_LEGACY));\r\n                    }else {\r\n                        messageTextView.setText(Html.fromHtml(message.getMessage()));\r\n                    }\r\n                    messageTextView.setMovementMethod(LinkMovementMethod.getInstance());\r\n                    Linkify.addLinks(messageTextView, 0);\r\n```\r\n\r\n In same file **DetailedConversationAdapter.java**  go to this\r\n [link ](https://github.com/AppLozic/Applozic-Android-SDK/blob/master/mobicomkitui/src/main/java/com/applozic/mobicomkit/uiwidgets/conversation/adapter/DetailedConversationAdapter.java#L767) below that line paste this line\r\n          ` Linkify.addLinks(messageTextView,Linkify.ALL);\r\n`\r\n\r\n\r\n"}}
{"actor":{"display_login":"Sunilkumarr"}}