android,xmpp,smack,asmackRelated issues-Collection of common programming errors
JRowan
android unity3d environment-variables prime31
i have just a blank project with prime31 google play game services plugin in it and im trying to run the demo scene and i keep getting this error, i feel like its something simple like setting environment variables or something, any help is greatly appreciated thank youError building Player: CommandInvokationFailure: Unable to convertclasses into dex format. See the Console for details. C:Program Files(x86)Javajdk1.7.0_51binjava.exe -Xmx1024M-Dcom.android.sdkmanager.toolsdir=”C:/Users/John P. Ro
Dray
android timezone
In my Application I am displaying some info to the users according to the user’s TimeZone. I am allowing the users to select different cities in the world and to get the required info. By default I will get the TimeZone of the user from their Device using `TimeZone myTZ = TimeZone.getDefault();`And once the user changes the TimeZone , I am saving it in preferences. No problem in storing and retrieving the values from the preferences.When another TimeZone is selected I set that TimeZone as defau
user2240187
android in-app-purchase subscription trial
I’m implementing an app with in app billing(subscription)with my own product ids and the purchase works fine till I change the trail duration on the Google Develper Console from 0 to 7(or more).I’m testing on a device. I’m getting the Error: Error retrieving information from server [DF-DFERH-01].Also there are two other errors with may interact with it:(Logcat)05-12 00:17:14.770: E/Volley(28168): [2645] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.
Iraklis
android eclipse logcat
Whenever I untick “Data Enabled”(Settings->Mobile network settings) within my AVD I get the following error, I lose LogCat connectivity, and I have to restart the AVD/Eclipse :[2012-10-31 16:11:07 – Unexpected error while launching logcat. Try reselecting the device.] device not found com.android.ddmlib.AdbCommandRejectedException: device not foundat com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:752)at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)at com.android.dd
Marco Masci
android camera glsurfaceview
I am trying to use a GLSurfaceView instead of a normal SurfaceView with a camera application. The app simply display the camera preview frame on a surfaceview object. It works, but since i want to add opengl es rendering on the camera preview frame, i started by extending a GLSurfaceView class instead of a SurfaceView. Just that. The application seems to work, but sometimes it mulfunction (the app don’t exit anymore if i press the back button) and it exit always with an error (when i close it, a
Ajmal Salim
android actionbarsherlock
I am having an unexpected issue with ActionBarSherlock. When I use Holo.Theme.Sherlock.Light.DarkActionBar, it is ok and will look likebut if I choose Holo.Theme.Sherlock.Light, I am getting some Padding issues in the DropDownListView, like this : I dont want that much Padding in between the ListView itemsI have tried making a CustomTheme, but its not working`<style name=”AppTheme” parent=”Holo.Theme.Sherlock.Light”><item name=”android:dropDownListViewStyle”>@style/DropDownListView&
Dave
android exception-handling
I am working on an app with remote exception-handling. That is, if an exception happens somewhere that wasn’t expected, the app closes gracefully and a report is generated in the log on our server. I am using the UncaughtExceptionHandler interface for this and it works well except that it does not seem to catch Throwables that are actually Errors. Obviously, the best solution is to just handle everything and/or not allow anything to throw an Error in the first place. For the sake of thorough err
user3091702
java android unit-testing testing robolectric
I am trying to capture an http request with Robolectric The method tokenize method sends a request to a server and I just want to test that the post is sent: If I try //Cardtest.javaRobolectric.setDefaultHttpResponse(200, “dummy”); card.tokenize(paymentHandler); Robolectric.getSentHttpRequest(0);The I have an empty array errorBut I know that the request is sent because if I remove the first line I have the following error:Unexpected HTTP call POSTIf I put log statement it appears that my success
Binghammer
android bitmap android-imageview android-image bitmapimage
I have 1024 x 900 image coming from server. And I want to get the half of this image. I use this code img.setImageBitmap(Bitmap.createBitmap(bitmap,0,bitmap.getWidth()/2, bitmap.getWidth(), bitmap.getHeight()/2));But when I do this I have this error y+height must be <=bitmap.getHeightWhat should I do here for not getting the exception.
Newbie
jquery android ajax json phonegap
Ive been developing an application in android with phonegap. can anyone help me on how can i call my webservice that outputs a JSON string through my android application via AJAX with jquery? thank you very much for the help.I have this piece of code in my Jscript:$(document).bind(“mobileinit”, function(){ $.support.cors = true; $.mobile.allowCrossDomainPages = true; });$.ajax({type: “POST”,timeout: moneTimeout,url: “http://10.0.2.2:49878/SampleProject.aspx?p_trxn_type=doLogin&p_phoneNumber=
Mark Hildreth
c# xmpp windows-phone-7.1
This is a new question from Getting anwser from Jabber ServerYou’re not going to be successful thinking of the XML you receive likea file, which is where your Unexpected end of file has occurred erroris coming from. You must parse the XML incrementally.Ok my question is how? How can I send not closed pice of xml?Should I serializ object and then send?BTW. I can’t use existing lib because there isn’t at Windows Phone 7.5.
emaillenin
connection xmpp
my code is try { ConnectionConfiguration connConfig = new ConnectionConfiguration(hostname, portno, “”);conn = new XMPPConnection(connConfig);conn.connect();} catch (XMPPException e){throw new ProtocolException(e.toString());}How to resolve this problem?07-23 11:54:08.126: W/dalvikvm(19805): VFY: unable to resolve staticmethod 3144: Ljavax/swing/SwingUtilities;.invokeLater(Ljava/lang/Runnable;)V 07-23 11:54:08.126: D/dalvikvm(19805): VFY:replacing opcode 0x71 at 0x0006 07-23 11:54:08.126: D/dalv
Pompair
Marco W.
java dpkg xmpp
I’ve installed the official Oracle Java on my Ubuntu machine. For that I did the following:Download the latest JRE for x64 (.tar.gz) Unpacked this archive on my Windows machine Uploaded the folder jre_1.7.0 to my Ubuntu machine (via FTP) Used update-alternatives –install and update-alternatives –set to install JavaWhen I tried java -version, Ubuntu said permission denied. So I manually added the execution permission (chmod) to all files in jre_1.7.0/bin. Then, java -version worked:java version
mattjgalloway
objective-c osx-lion xmpp
I’m currently working with the XMPP Library for Objective-C, and I’m using the “Desktop” example code.It logs in fine; however, when I open a new chat, or someone sends me a message, it crashes.This seems like where something goes wrong:XMPPStream[11678:1b03] RECV: 2012-06-05 15:03:59:379 XMPPStream[11678:1b03] RECV: 2012-06-05 15:03:59:382 XMPPStream[11678:403] RosterController: xmppRosterDidChange: 2012-06-05 15:03:59:387 XMPPStream[11678:403] RosterController: xmppRosterDidChange: 2012-06-0
Richard Hurt
ruby xmpp eventmachine
I have a similar problem to this other post and I’ve tried the given solutions but to no avail.My project is a Ruby bot that uses the Blather library to connect to a Jabber server. The problem is that when there is a problem with the server and Blather generates an exception the whole program exits and I have no opportunity to catch the exception.Here is some simple code that shows the problem. There is no Jabber server running on localhost so the Blather client throws an exception. I was und
Felipe Peña
iphone ios xmpp xmppframework
I’m developing an iOS chat app and using this XMPP frameworkI implemented the XMPPRoster element along with the XMPPRosterMemoryStorage class to send subscription requests to other users.The implementation is like this on the app delegate:XMPPRosterMemoryStorage *rosterMemoryStorage = [[XMPPRosterMemoryStorage alloc] init]; xmppRoster = [[XMPPRoster alloc] initWithRosterStorage:rosterMemoryStorage]; [xmppRoster addDelegate:self delegateQueue:dispatch_queue_create(“com.app.xmpproster”, NULL)];The
nulltoken
android xmpp smack msn-messenger
I tried connecting to MSN messanger using Smack library with follwiing codeimport org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.ConnectionConfiguration.SecurityMode; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException;ConnectionConfiguration configuration = new ConnectionConfiguration(“messenger.hotmail.com”, 1863, “hotmail.com”); configuration.setSecurityMode(SecurityMode.disabled); configuration.setCompressionEnabled(false);
user2672440
xmpp asmack
I am using asmack 8-0.8.3.I don’t receive messages for changes of Presence from my contacts when they move to “available”. If one contact passes from “available” to “dnd”, I do receive a message. But not in the other way around.Contact passes: “available” –> “dnd” –> “available” –> “dnd” I receive: Presence{dnd} Presence{dnd}Whereas I expect to receive a Presence update {available} between the 2 dnd.Since I receive presence updates except for “available”
stivlo
java google-app-engine xmpp google-plus
I’ve noticed errors in my Google App Engine Log while parsing messages. The stack trace was unhelpful to diagnose the problem, so I wrote a small message dumper inspired by Google’s implementation of InboundMessageParser.public class ChatRequestParser extends HttpRequestParser {public static Map<String, String> parseMessage(HttpServletRequest request)throws IOException {try {Map<String, String> message = new HashMap<String, String>();MimeMultipart multipart = parseMultipartRequ
Flow
android smack asmack
I am using openfire and asmack lib. I am implementing online and offline button in android chat application .How can I set my presence “unavailable”.Note: I don’t want to use connection.disconnect() method ,because **This method cleans up all resources used by the connection. Therefore,the roster, listeners and other stateful objects cannot be re-used bysimply calling connect() on this connection again. This is unlike thebehavior during unexpected disconnects (and subsequent connections).In tha
nulltoken
android xmpp smack msn-messenger
I tried connecting to MSN messanger using Smack library with follwiing codeimport org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.ConnectionConfiguration.SecurityMode; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException;ConnectionConfiguration configuration = new ConnectionConfiguration(“messenger.hotmail.com”, 1863, “hotmail.com”); configuration.setSecurityMode(SecurityMode.disabled); configuration.setCompressionEnabled(false);
Flow
android xmpp smack asmack
We are trying to establish a connection. We get a connection established, but when we try to login, we get a large number of errors.We are trying to log into Google Talk using an XMPPConnection object, and passing it a reference to a hostname, port number, username, password, and resource. The connection is created and set up properly, but when we try to log into Google Talk using a created connection, we get a lot of errors and the Android application crashes.Our code:class BackgroundConnection
Alex K.
android exception smack
I am unable to transfer file using a smack, I am using android emulator on one side and spark on the other. When I do transfer the application force closes with the following error messages and a notification of file transfer request, after accepting the file, there was an error transfering the file.error log is pasted below.I searched different solution and one of them says:First, you have to copy a smack.properties to you android emulator.You can get smack.properties at the original SMACK API
Ameya Phadke
android client-server xmpp smack tigase
Hi This is with regards to post hereI am able to connect my PC to the local tigase server setup locally(I am using Smack API). Now I am facing problems when I want to connect Android Phone to that server over Wi-Fi. I am able to connect to the local server by using client Beem for android.My XMPP Domain name of the server is my PC name “mwbn43-1” and IP address is “192.168.0.221”(I am able to ping this server from Android Terminal Emulator). In Beem Settings there is an Advanced option where I c
Stugal
java ssl xmpp openfire smack
I am recently working on Openfire client. I’ve got this strange issue that I couldn’t figure out so far (i’ve got some clues, but still no solid solution). We’ve got 2 openfire servers: first that we were using for testing it was hosted on normal pc conected to the internet through adsl, server was behind NAT, everything configured smoothly, working perfect. Our client was connecting without any issues. second (let’s call it production) professional dedicated server located somewhere in germany
Flow
android smack asmack
I am using openfire and asmack lib. I am implementing online and offline button in android chat application .How can I set my presence “unavailable”.Note: I don’t want to use connection.disconnect() method ,because **This method cleans up all resources used by the connection. Therefore,the roster, listeners and other stateful objects cannot be re-used bysimply calling connect() on this connection again. This is unlike thebehavior during unexpected disconnects (and subsequent connections).In tha
user2672440
xmpp asmack
I am using asmack 8-0.8.3.I don’t receive messages for changes of Presence from my contacts when they move to “available”. If one contact passes from “available” to “dnd”, I do receive a message. But not in the other way around.Contact passes: “available” –> “dnd” –> “available” –> “dnd” I receive: Presence{dnd} Presence{dnd}Whereas I expect to receive a Presence update {available} between the 2 dnd.Since I receive presence updates except for “available”
Flow
android xmpp smack asmack
We are trying to establish a connection. We get a connection established, but when we try to login, we get a large number of errors.We are trying to log into Google Talk using an XMPPConnection object, and passing it a reference to a hostname, port number, username, password, and resource. The connection is created and set up properly, but when we try to log into Google Talk using a created connection, we get a lot of errors and the Android application crashes.Our code:class BackgroundConnection
harsh8888
android asmack
I have a fully working Chat Client that I made in Java. Now I’m looking forward to implement the same on my android device. I started off with importing the ASmack Library in my project and I’m checking at each phase to avoid errors. I’m stuck at the very first step though. My Activity is not able to find the class in ASmack Jar, hence I assume I’m unable to proceed. My Simple code :package com.test.mypro;import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.XMPPCo
Doniv
java xmpp openfire asmack
I am new to this OpenFire and asmack, i want the user to have a functionality of Multi Users Chatting so i searched around and i found MUC i have implemented this for creating a room and sending invitation to other users these works, other user receives the invitation but the other user is not able to join the room.I am doing this on other user invitation receivingHere connection is the connection of this user and room is the room name that we getting in invitation.MultiUserChat muc3 = new Multi
cgs1999
android stream asmack
I try to write an android demo with asmack. There is an error named “host-unknown”. How can I solve that?Here is what I see in LogCat:03-16 08:31:10.671: I/getConnection(795): connect success 03-16 08:31:10.905: W/System.err(795): stream:error (host-unknown) 03-16 08:31:10.905: W/System.err(795): at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:261) 03-16 08:31:10.912: W/System.err(795): at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44) 03-16 08:3
Web site is in building