Android :: Openfire And XMPP - Send And Receive Message From Other User?
Mar 2, 2009
I am trying to develop a simple chat in Android...... The connect and login with openfire server are ok! The only thing is that , I don't know how do I do to send and receive a message from an other user. I try to create a chat between two users in this way:.................
connect / login are executed in the same thread of the caller, then are blocking - The packetlistener callbacks are called from smack receiver thread - The sendpacket enqueues the message to a queue. when I receive a message, I need to propagate it. I can use an handler, but it only gets the runnable object. How can I pass the data to the runnable called by the handler? I can't use a local variabile, because if I receive a lot of messages it will be overridden and I will loose some of them. Is it ok to use a queue to feed the runnable? Are there other techniques?
I want to create an application for Android that enables me to get the geolocation of a user. This has to be made as a client-server app and for the server side I'm using OpenFire. For getting the user's location I would have to use XEP-0080, right? And SmackAPI also? I'm completely new to XMPP and Smack, so if anyone could get me a few pointers or maybe examples or any kind of documentation about this I'd be very grateful.
I'm currently writing an Android app that should be able to communicate in real time with another app hosted in Google's app engine. Since I can't use sockets in GAE, I though maybe using XMPP over GTalk server would solve my problem. But that way the Android app would be connected to the users account and thus showing the user as being online, when in reality the user is not. Any way of achieving this kind of communication without showing the user as being online?
Ok, I hate iphones, and apple products. But a few of my friends have iphones. One friend in particular has an iphone, and we send pictures sometimes.
The problems is, every time he does, it comes in a slide show. One picture gets sent, and it takes about 5 seconds before I can see it, as it's showing a black slide, and then the picture shows.
It's a real small slideshow picture, and I've got no way to download it even. It's real annoying! He kinda laughs and sometimes will just email it to me, like the way that iphone users had to send pictures before they got the ability to send mms messages.
How hard can this be? Is it something he is not doing right, or is it just some stupid way that iphones send mms messages to where only iphone users can properly use the photos?
I'm considering getting a HTC Desire to replace my Nokia N95. One of the features I use a lot is the Nokia PC Suite's ability to send/receive SMS using my PC. I sometimes send upwards of 1000 SMS's per month, and can't see myself enjoying any phone which doesn't have this software.
Is there an app to send and receive (in sms both ways)? All the phone numbers that I text (or texted to me) appear on our family bill. Since there seems to be no way to stop that; I am trying to find a simple sms to sms app.. a paid one without ads that is as simple to use as 'regular' texting. I also assume a paid app will bypass the fear of me being a spammer since they will have all my information.
My problem is this, I downloaded Handcent and really like it, however, I can't send messages from home. I have marginal service here (around -98 avg.) but I do get 3G. Whenever I send a message it says Message Failed - Retry, Cancel? I've even had this problem in places with great coverage for both 3G and cell service. The stock messaging app works just fine. So what I've been doing is receiving messages with Handcent and then sending them using the stock app.
So, does anyone have any ideas of what I can do? Are there any settings that can be changed? Does handcent use 3G to send messages?
I'm now trying Chomp to see if that's any better. And, just an FYI, I'm having trouble with text messages, not MMS. I haven't tried sending any pics or videos yet, I've just been sending SMS.
Any way to get at the Send and Receive Text functions of a phone? In other words, is there a way to transmit a text such that another phone, within range and using my app, could receive that text? Proposed app: The_Haiti_Phone: All cell towers and land lines are down. I would create a text msg to my wife's phone and my special app would send it. All cell phones in range would pass it on. When the packet's receiver's ID matches a cell phone's ID, the msg displays to the user. In summary, in a catastrophe, all cell phones with my app act as cell towers.
I am wanting to send a http request to Google.com from my mobile application but am unsure how to get about asembling the request. Anothing problem that i might in counter is how to handle the information that is returned. For example, i want to send a request for "local resturnats" to Google and have the results returned and then displayed to the user in a ListView. Am i going about this the right way? Is there an API that i could use (GoogleMaps or AJAX Search)?
I have two activities. The first activity display list of the users with short info. And after select some user I go to the second activity for display full info about this user. For send event I used startActivityForResult(); for receive event in socond activity and added public void onActivityResult(int requestCode, int resultCode, Intent data). After start project I send intend from first activity and I do not receive in the second : How I can receive sent event in second activity.
I just published my first application to the market, but I just found out that android.telephony.gsm.smsmanager was depreciated as of Android 1.6. My application depends on sending SMS messages, so it cannot not work in 1.6 or newer. I built the project against 1.5, but I only have a device with 1.5 to test on. Since I built on 1.5, am I fine in terms of newer OSes, or will users get force closes? Is there a way to send/receive SMS messages in the emulator?
i am new to android. I want to connect with server. Like i want to sent data and receive data from server through Http Connection. Can anyone help me how to do this. Can anyone provide me the sample of both side-client as well as server side.
I installed/paid for the PDANet on my Droid- and it works great! awesome! then after a bit of run time my phone 'locks' up... and i dont mean lock up like i have to hard restart it or it force closes... what it does is that the send/receive icon at the top it still shows I'm connected to the 3G, but the arrows are locked on send... and after about 15-30 seconds the send arrow clicks off and i can continue doing what i was previously doing...
any ideas on why this is happening?
my droid and pdanet are up to date, and my comp is running xp...
and i did try to contact the pdanet tech people... but after 2 days of waiting I'm getting kind of antzy on a fix.
I have a Spice Mi 350n (Android 2.3.4 ; Baseband Version: MT6573 ; Kernel Version: 188.8.131.52 ; Build Number: ALPS.GB.FDD2.MP.V2.14 ; Custom Build version: spice_MI350N_IND_V1.7) .
Very surprisingly I am not able to transfer (both Send and Receive) any files through BLUETOOTH. This is such a basic function of all mobile. I have tried couple of file managers, Bluetooth Manager but not able to transfer. I have rooted the phone .
For starters, the phone is amazing. I just have a few questions: Is it possible to set a ringtone to go off when you receive a text message? MY old VZW phone allowed a ringtone notification. I have yet to find a way to do this; anyone know how?
I am new to android. I am creaing an client-server application that receives and sends messages to both client and server. Till now i am able to send messages to server but not able to receive message back from the server. Is there any permissions to be set. Can you help me with the code to receive message from the server.