smack

failed because: de.measite.minidns.hla.ResolutionUnsuccessfulException: Asking for xxxx. IN AAAA yielded an error response NX_DOMAIN

我只是一个虾纸丫 提交于 2019-12-08 17:28:34
问题 After I upgraded smack to 4.2.0 I am getting connection issue. The following addresses failed: 'xxxx:5222' failed because: de.measite.minidns.hla.ResolutionUnsuccessfulException: Asking for xxxx. IN A yielded an error response NX_DOMAIN, '52.90.233.38:5222' failed because: de.measite.minidns.hla.ResolutionUnsuccessfulException: Asking for xxxx. IN AAAA yielded an error response NX_DOMAIN the issue happen when host is set in connection configuration builder. example : .setHost(ServiceConstants

Integrating Smack with Android Studio project for chat application

无人久伴 提交于 2019-12-08 14:36:20
问题 I am trying to implement a chat messenger using ejabberd server and smack library but having a hard time to integrate all the jars and dependencies of smack. I am using android Studio. My build.gradle(module): apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "com.example.nit.xmppclient" minSdkVersion 18 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles

How to create xmpp group chat and add members using smack 4.1 in android [closed]

柔情痞子 提交于 2019-12-08 14:20:41
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago . In my app, I want to create groups and add users to the groups using smack 4.1. I am able to create group but unable to add user in that groups. My Code for create groups is... create group if (connection != null) { String groupName = XmppUtils.buildMUCName(grpName); MultiUserChat multiUserChat =

Parcelable encountered IOException when sending instance of an object to other activity

大憨熊 提交于 2019-12-08 14:04:20
问题 in the onCreate of activit-main i make an inistance of a class named XMPPConectio at the constructor of the XMMPPConnection i take inistance of the activity-main and therefor i execute an Asychtask. in the progressUpdate i call triger function of activity-main. i the triger function i want to send inistance of XMPPconnectio to other activity by intent.putExtra but i get the error Parcelable encountered IOException writing serializable object the aim of doing all these is to have connection

How to send media content in chat application?

醉酒当歌 提交于 2019-12-08 12:37:33
问题 I am designing a Android chat application using ejabberd as XMPP server and Smack 4.1 API. My requirement is to send inline images, maps and videos in chat windows. I realized that, sending media content through XMPP Server(ejabberd) is not a good idea when it comes to performance. I need experts suggestions on how should i proceed with sending inline media content in chat window? Thanks in advance. 回答1: Create api that will upload the media data (http post call) using multipart service. on

Is it possible to get all users list which contain in the openfire?

房东的猫 提交于 2019-12-08 12:34:55
问题 I am doing an app chat in android by asmack with XMPP and want to user client install the application he will be able to retrieve The list of all the users which contain on the database. This will allow to the client be able to select user from the List and joined him to list friend one on one. How can I do that? If it not possible, how can achieve that? 回答1: Get the WebManager Instance. WebManager webMan = ...; UserManager userMan = webMan.getUserManager(); userMan.getUsers(); // Returns the

Debug XMPP Android client with aSmack, Eclipse and the enhanced debugger.

非 Y 不嫁゛ 提交于 2019-12-08 09:04:59
问题 I'm making an application with the Android XMPP library aSmack with Eclipse. I can not get debug is launched in a separate window as instructed smack documentation: http://www.igniterealtime.org/builds/smack/docs/latest/documentation/debugging.html I imported smackx-debug.jar inside the libs folder and I've added this line to the code: Connection.DEBUG_ENABLED = false; The debug occurs, but in console of logcat, not a Enhanced Debugger. 回答1: aSmack is not able to use the enhanced debugger of

aSmack 4.0.* XMPPTCPConnection can't connect to OpenFire and Ejabbered (SmackException$NoResponseException)

房东的猫 提交于 2019-12-08 06:02:00
问题 I am using asmack-android-8-source-4.0.6 when i try to connect to the server whether it is openFire or Ejabbered i get this exception org.jivesoftware.smack.SmackException$NoResponseException here's my code: SmackAndroid.init(getApplicationContext()); ConnectionConfiguration conConfig = new ConnectionConfiguration(HOST, PORT); conConfig.setDebuggerEnabled(true); connection = new XMPPTCPConnection(conConfig); try { connection.connect(); Log.i("AppName", "CONNECTED TO " + connection.getHost());

How to create Group in aSmack xmpp in android ?

家住魔仙堡 提交于 2019-12-08 00:13:28
问题 I am getting class cast exception while creating muc in android. E/AndroidRuntime(31002): Caused by: java.lang.ClassCastException: org.jivesoftware.smack.packet.DefaultPacketExtension E/AndroidRuntime(31002): at org.jivesoftware.smackx.muc.MultiUserChat.getMUCUserExtension(MultiUserChat.java:2000) E/AndroidRuntime(31002): at org.jivesoftware.smackx.muc.MultiUserChat.create(MultiUserChat.java:364) 回答1: You can create user Group by , public boolean createGroup(XMPPConnection connection,String

Instantiate ConnectionConfiguration in Smack 4.1

▼魔方 西西 提交于 2019-12-07 19:06:18
问题 I am implementing a chat feature in my android app. So I have installed an open fire server and Smack Client library and now I have written a code to connect with the server but I am getting an error which states that ConnectionConfiguration is an abstract class.So i cant instaniate. Could you give me some idea about the instantiation of ConnectionConfiguration in SMACK 4.1? 回答1: Try to use the example below: XMPPTCPConnectionConfiguration.Builder config = XMPPTCPConnectionConfiguration