Android :: Using XMPP For User Location
Apr 27, 2010
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.
View 1 Replies
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:.................
View 4 Replies
View Related
Sep 4, 2010
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?
View 4 Replies
View Related
Apr 30, 2010
I am developing a webpage which requires the user location for loading some data. The web page is mainly intended for android users. I need to find the geo location of the user when the user opens that page? How can I do that?
View 2 Replies
View Related
Jun 29, 2010
The LocationManager API in android seems like it's a bit of a pain to use for an application that only needs an occasional and rough approximation of the user's location.The app I'm working on isn't really a location app per se, but it does need to get the user's location in order to display a list of nearby businesses. It doesn't need to worry about if the user is moving around or anything like that.Show the user a list of nearby locations.Preload the user's location so that by the time I need it in Activity X, it will be available. Don't particularly care about accuracy or frequency of update. Just grabbing one location is sufficient as long as it's not way off. Maybe if I want to be fancy I'll update the location once every few mins or so, but it's not a huge priority.
Work for any device as long as it has either a GPS or a Network Location provider.
View 5 Replies
View Related
Aug 28, 2010
I've been working on an application lately that is using GMaps to display a location that is stored in the devices database. However when no location is available (no GPS signal is available) the user can go through an edit wizard and at a certain point he can add a location himself. I already have to code to display the stored location, but is it possible to write something so the user get's to see a map and when he clicks/touches on a certain area a map pointer appears and the location is stored. Is that possible in any way? Is there any good online documentation available? I searched through this group and on Google but couldn't find anything usefull.
View 2 Replies
View Related
Apr 15, 2010
I'm using Windows to develop android apps and want to know where user preference data is located. It says at /data/data/package/...., but where can I actually see the preference file? Via eclipse or command line tools?
View 1 Replies
View Related
Nov 19, 2010
I'm new to android development. Is it possible for a view (with a particular layout) to "appear" at the location where the user "touches"? If so, how? Like the idea of right-clicking on your computer - a menu pops down wherever you right-click and when you navigate away, it disappears.
View 1 Replies
View Related
May 31, 2010
I'm having trouble trying to find a way to guide a user from one point on a map to another. I can add the locations I want to the overlay. I want the user to be able to pick a location and be guided through the streets to that location. Does anyone know how to do this, or is it even available in the API?
View 3 Replies
View Related
Oct 14, 2010
I am trying to determine the city in USA the user is in using their current location from an Android App. I want to use the GPS as the location provider but how accurately can I determine the name of the city from the Locale or Latitude / Longitude data.
For instance I noticed the twitter app determines you are in Manhattan when tweeting from Manhattan, but is it possible to retrieve New York City instead of Manhattan from the location data and likewise Los Angeles instead of Beverly Hills.
This is because all I need to determine is which city the user is in as per the current location.
View 1 Replies
View Related
Dec 24, 2009
Visiting www.google.com on the Android browser (or even with an android spoofed user-agent), presents the option to "Share Location". When clicked, it uses the GPS/Cell phone towers to figure out the location. I tried the google.loader.clientLocation but that only works using the IP address. Is there a method to tap into the Android OS and access GPS data from a regular web application (and not an Android application) similar to the way Google does? [Perhaps Google uses the Google Gears app on Android to access this data.]
View 3 Replies
View Related
Dec 4, 2013
Using custom kitKat ROM on nexus 7 and it's great. The only problem I have is that the full 2nd user cannot find the location in weather apps or GPS test BUT... 2nd user can get location using Google maps???
View 1 Replies
View Related
Jun 11, 2010
I am currently working on a project which uses XMPP, I non't know whether I can use a client must is a GMail account.
View 2 Replies
View Related
Apr 14, 2009
I just wondered which frequency is OK to send whitespace keep alive packets onto a TCP connection to keep it alive on a T-Mobile 3G connectivity (the use case is to maintain an idle XMPP session alive). On SFR in France, we are disconnected if idle for 3 minutes, but I guess T-Mobile's timeout is lower. By the way there is a bug in the Smack library, the "keep alive" setting is not enforced, e.g. if you set it to 30s, in the worst case the whitespace will not be sent until the double of this time (60s).
View 4 Replies
View Related
Nov 18, 2009
I went through the Android introduction videos and in them an engineer from Google spoke of an open XMPP/gtalk service provided by Android, that developers could use to push messages out from a server to Android devices. I googled the forums and dug through the SDK samples, but could not find any code for these XMPP services. Also my search results only returned entries logged in the Jan 2008 time frame an earlier (I found this to be somewhat odd). Anyway, there was mention of a SMACK API that handles xmpp messaging, but I'm assuming that android has their own libraries for this.
View 3 Replies
View Related
Aug 25, 2010
i implemented the xmpp client in android.its working fine.the next task i focused on group communication from android. java code which related to group communication from xmpp.
View 2 Replies
View Related
Nov 16, 2010
I tried googling this quite a bit, but all the articles are from early 09 where things were much different. Seeing currently hardware and stuff, whats the battery life like when using XMPP on Android as a service?
View 1 Replies
View Related
Feb 10, 2010
Well with facebook finally announcing support for 3rd party access to the facebook chat protocol (either by XMPP or Jabber) I was trying to see anyone had a good program that let you talk on skype (for IM purposes) and facebook chat (via jabber or XMPP)? I've tried using nimbuzz, Meebo, and IM+ all that didn't seem to work flawlessly -- I know AIM just updated with facebook chat, but kinda hoping for a one program solution.
View 1 Replies
View Related
Dec 3, 2009
I am working on a XMPP client on Android, using the Smack library. The roster/messaging/presence stuff is running very well. However, I didn't find a way to store additional profile information (userpicture, the dogs name, ...). The only way I see from googling is using VCards. But it simply did not work. I tried the following:.................
View 3 Replies
View Related
Jun 11, 2010
I 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 can specify server I want to connect with(which I have given as IP address).If I don't set this option I am not able to conect.Now here is the snippet of the code I have used for my android client.
View 1 Replies
View Related
Jun 1, 2010
I am currently finding about how to build a XMPP client application on android 2.1.I came across this link which somewhat talks about the same problem.I am a newbie to android dev and thus found the solution given there to be difficult to digest.
The system currently has Active MQ as a JMS provider.My job is to fed the messages coming from JMS to the XMPP server and then develope XMPP client on android 2.1 which will listen and show notification to the events pushed by the server. I have following concerns(which might sound foolish)
1.How do I push the events from JMS to the XMPP server which will in turn push them on android?
2.Which XMPP server implementation I should use?I have 3 options....................
View 3 Replies
View Related
Apr 21, 2010
I am currently working on a project which requires a server to request data from the devices which are currently connected to the server. Meaning, first the server finds out which devices are connected to the server and then sends an application specific message to the client device which should wake certain functionality present on the client, like for example send out its current location.
I was looking into XMPP service which looked promising since it works as a PUSH notification. The <presence> in XMPP can be used to check if the device is currently connected and has subscribed to the server. Since every android user has a gmail account, I was thinking of using the gmail xmpp service to connect /subscribe to the server. Then send specific message to the client, i.e x...@gmail.com. But if a message is sent this way the client app gets the message as well as the native gtalk client. So how do I go about intercepting this so that it doesn't show up on the gtalk client but my app still gets it.
View 7 Replies
View Related
Jul 6, 2010
ConnectionConfiguration connConfig = new ConnectionConfiguration("10.0.2.2", 5222); connConfig.setCompressionEnabled(true); connConfig.setSASLAuthenticationEnabled(false); XMPPConnection connection = new XMPPConnection(connConfig);
View 3 Replies
View Related
Oct 7, 2010
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?
View 3 Replies
View Related
Mar 4, 2010
I am an android developer and I made some board games. Now i want to make some of my board games multiplayer. I don't want to create and host my own web service, so i thought about P2P.
The first thing i found was the XMPP protocol, however it's not real P2P, but if i can use the existing google talk service, i'm ready to go. Is this possible while using your existing google account without interfering with the normal working of your google talk client?
Then i heard about JXTA, a real P2P solution, and it's already ported from J2ME to Android (http://code.google.com/p/peerdroid/).
Maybe i am overcomplexing things here (as i do sometimes)
I just want to know the easiest way to do simple P2P for a boardgame.
View 3 Replies
View Related
Nov 23, 2009
I need to be able to post XMPP messages in my main activity AND a service that I am running in the background. How can I pass all the XMPP information (including XMPPConnection) to the service so it can use it without twice logging in? Currently I have it setup so I am making 2 XMPP connections. This works, my service continues to send XMPP messages UNTIL I try to send a message in my main activity, then the app force closes. Im assuming because I have tried to login to the service twice.
View 4 Replies
View Related
Sep 22, 2010
I have a EditText in android in which i want the user to enter the text and checks for the condition "BYE"
Code sample..
How can i make user to enter the text?The UI should wait for the text to be entered(something like we have InputStreamReader in java applications).
View 2 Replies
View Related
Sep 14, 2009
Please tell how test XMPP client on Android emulator.
View 1 Replies
View Related
Oct 26, 2010
I'm developing a mapping app using Eclipse 3.5.I'm setting the minimum update period with the LocationManager's requestLocationUpdates method, via a configuration activity. When I set the property I see in Logcat that the system process sets the value OK.When I actually send a new location from the DDMS emulator control and the location changes on the map view, I see that the system process then sets the minimum time to zero.Below is a capture of the system's log messages. You can see that I'm setting the period to 32 seconds, then 16, then, after I've sent a simulated location change the system sets it to zero.The map responds to location changes to location changes instantly even if they are sent only a couple of seconds apart.
View 1 Replies
View Related
Sep 17, 2010
In my application I have to fetch the current location. First it correctly fetches the location. But we are moving from the current location to some other location. It shows the previous address. It is not updating the location. My code is: locManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); locListener = new MyLocationListener();locManager.requestLocationUpdates(LocationManager .GPS_PROVIDER ,0,0,locListener); location = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);if(location != null){latitude = location.getLatitude();longitude = location.getLongitude();} Please find the mistake and when i launch first time it is not working on second time itself it is working so check this thing also.
View 1 Replies
View Related