XMPP service, Jabber

by SLY » Wed, 21 Apr 2010 14:19:40 GMT

Sponsored Links
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.

I want the PUSH notification to work, not PUSH.

Please do comment on the above approach. If there is another way to do
this, please do suggest.



Other Threads

1. Need help with Grid View


I am new to Android and have been trying to learn using gridview.

My xml file and java file are as follows.I am getting an error
something like this:

[2008-05-31 15:09:43 - DeviceMonitor] Error reading jdwp list: EOF

My Java file

public class helloworld extends Activity {
    /** Called when the activity is first created. */
         private GridView g;
    protected void onCreate(Bundle icicle)

       // Be sure to call the super class.

       // Load the compiled layout resource into the window's
       // default ViewGroup.
       // The source file is res/layout/hello_activity.xml

        setContentView( R.layout.main );
        g = (GridView) findViewById(R.id.myGrid);
        //Spinner s1 = (Spinner)findViewById(R.id.myText);
        List<String> items = new ArrayList<String>();

        // Get all of the rows from the database and create the item

        for(int i=0;i<=10;i++) {
        ArrayAdapter<String> notes =
            new ArrayAdapter<String>(this, R.id.text1, items);
       // Retrieve any important stored values.
      // restoreValues(savedValues);


My Main.xml
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
<GridView xmlns:android="http://schemas.android.com/apk/res/android"

my text_view.xml

<?xml version="1.0" encoding="utf-8"?>
<TextView id="@+id/text1" xmlns:android="

In the emulator it shows soem error in text_view.xml

Waiting for some soem advice.


2. Send SMS from Gmail email account

Hi, you can send SMS from your gmail now. In your gmail, To send SMS
to mobile +123456789, you only need to add
[EMAIL PROTECTED] as the new contact.

For details, visit:


3. how to convert Editable text to int or string

4. I normally debug using print statements to the terminal, possible in eclipse??

5. Change DDMS port

6. to set the height of AlertDialoq.builder

7. Ithora wants to keep up with you on Twitter