XMPP service, Jabber

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


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


- SLY

--



Other Threads

1. A discussion about the ProGuard's "dontoptimize" option when obfuscating Android code with ProGuard

A discussion from the ProGuard's forum:

=================================================

   We have a question on the ProGuard's  "dontoptimize" option.
According to the ProGuard's doc's description,
"-dontoptimize
Specifies not to optimize the input class files.
By default, optimization is enabled; all methods are optimized at a
bytecode level. "

Our understanding is that by default when the optimization option is
on, all methods are optimized utilizing some specific properties of
conventional JVM.

Our questions are,
1. What properties of the conventional JVM are exploited?
2. How to optimze the bytecode aligned with those properties?

The reason that we ask those questions is that, when we obfuscate Java
bytecode, then convert it into Google/Android dex file, exceptions are
thrown, saying some convertion doesn't work properly.
However, after we put on the "dontoptimze" option, the convertion
works fine.

Very curious what happens under the surface.


      RE: A question on the "dontoptimize" option. (New)
      By: Eric Lafortune (lafortuneProject Admin) - 2008-07-09 01:16
      The optimizations are listed in the ProGuard FAQ, question #4.
There are many different types of optimizations, but the output should
always be valid bytecode. If the code works in a JVM, but not with
Android, it's most likely a bug in the Android tool. If the code also
fails in a JVM, you should provide some more details, so I can
investigate.

      Eric.

====================================
What do you think about Eric's " If the code works in a JVM, but not
with Android, it's most likely a bug in the Android tool"?? The
android tool here should be dx tool.
--~--~---------~--~----~------------~-------~--~----~

2. New Content Provider

I'm unable to insert contentvalues into my contentprovider. It gives
the error Unknown URL: content://myapp/contacts when I use
Uri newPersonUri = getContentResolver().insert(
contents.Contacts.CONTENT_URI, c1);

Please help. Also, is there a way to see the contents of my
contentprovider through adb?
--~--~---------~--~----~------------~-------~--~----~

3. Android on Nokia N810

4. Howto programmatically create Buttons inside a instantiated View-Objekt?

5. play 3gp/mp4 video on activity starts and mediaplayer crashes

6. MjSip authentication problem

7. About running vedio file in m5 emulator