I would like an application that can be downloaded from the market and runs as a service capturing and archiving the following traffic on Android devices: Facebook Messenger, Twitter, Google Talk, MSN, AOL and Yahoo IM.
Is there a way to do this without rooting the phone or developing a custom ROM?
Since the messages are not publicly announced by the apps themselves you would need to capture the network traffic & try to read the information out of there. But it might be impossible if the apps transfer their messages encrypted (https etc).
Packetcapture either requires root & tcpdump (or similar) on the device or Android 4+ and a VPN service like done in tPacketCapture
I don't believe that packet capture via VPN service is intended to be possible so that might be blocked again in future versions of Android.
How do I capture instant message traffic on an Android?
So basically you can't do that in a standard app unless the messenger apps provide an API to do so.
Related
I want to make an instant messaging app for android. I have the option of using GCM, but I do not want to use it since there may be other platforms that may communicating (web, other mobile platforms etc) with the app.
So, instead of using GCM , I want to use the Smack API (an xmpp library written in java), which uses sockets.
Now, I have a few doubts about it:
How smack handles connection drops/reconnects etc. Is it as 'simple' as GCM? in case of an internet loss, will it automatically reconnect when its available
Is it battery efficient ? Since its listening from its own socket, I would like to know if there will be a massive battery drain or not (it should be listening for messages 24/7 from a background service, and not only while the user is in the app)
Aside of these concerns, I would like to know if there are other (better) ways to have instant messaging. I cannot do sockets from scratch, and would like multiple platforms (thats my I am not a fan of GCM)
Scenario: GSM SIM card is connected to PC using a USB port. I have a audio file. I have a list of mobile numbers to call.
Question: I'm looking for JAVA library which detects the GSM SIM card, and allow my application to make a recorded phone call to this list of mobile numbers.
Extra Information: This is NOT A J2ME application. I studied some of resources from net. I found this http://smslib.org/ & http://www.voicent.com/devnet/docs/javaapi.htm which does not completely solve my problem. Former can only send SMS, latter uses a gateway which actually makes a call & application's responsibility is to connect to the gateway with necessary details.
There is an API called KooKoo and they have developed telephony API for automation. You can find details on Outbound calls here.
You require to send recipient's number and the audio file over the API to play it to the recipient. You need to explore more on the API to understand its capabilities and fulfil your requirements.
I am trying to develop a message app within my android app. The message will be like whatsapp and beluga. I googled it and found C2DM Android 2.2 can send the push notifications to the device. However, this is not available on Android 2.1. Anyone knows how whatsapp send the notifications for 2.1 devices?
For Android: Whatsapp is build upon C2DM and when the app opens it opens an XMPP connection to their service to deliver the messages instantly. They also might use MQTT as a protocol to minimize battery usage. That's basically it.
Edit: I learned more, Facebook uses MQTT in their messaging app. Whatsapp is build upon XMPP with their own extensions. Their server side runs on top of ejabbard (XMPP implementation in erlang). http://www.ejabberd.im/
On pre 2.1 devices WhatsApp probably keeps a connection open to their XMPP servers in the background but this is not really good for battery life.
C2DM is replaced by GCM (google cloud messaging) now . you can use it for delivering the notifications to your app . For the exchange of message one should rely on protocols like xmpp (whatsapp), mqtt(facebook messenger), mtproto (telegram) etc.
if you are looking to familiarize yourself with GCM . try out this tutorial by appsrox - Create an Instant Messaging app using Google Cloud Messaging (GCM)
they are using GCM for the message delivery as well. it won't suit for production, but its an excellent resource for people who want to develop an instant messaging android app .
I don't know what exact technology is used in whatsapp. However, if i am to implement notifications where there is no support for push notifications from the OS, i can do two things:
Poll a remote server every X seconds and check for new notifications (this is the more expensive choice).
Run a background service, maintain a connection with a remote server, which will pump me any notifications that are to be received (sort of my like my own push notification implementation).
I am now trying to do a project which is, there will be a server on windows pc and there are some clients on android devices.The point is the server one should control the android devices.For example it choose a image or video, send them to the clients and the clients play or show them.Remember the clients should be control by the server.
So could anyone tell me a proper way to do that, which protocol should i use, how do i send the files to the clients and how do the clients react? I am thinking of using java for the server and of course the client will use android application.
Thank you.
You might find Cloud to Device Messaging (c2dm) useful: http://code.google.com/android/c2dm/index.html
In essence, c2dm allows a remote server to send an Intent to an Android app. The device-side app can then respond to that intent to take the requested action. Chrome2phone works this way to open web links on a target device. http://code.google.com/p/chrometophone/
I have a website where users can send personal messages between them, now I want them to recieve the messages also on their mobile phone but without having to send them a SMS.
I am thinking about providing them with a mobile phone with internet access over GPRS or 3G, then develop a Java application that will connect to the website and retrieve the messages.
On the website I am thinking to make a webservice where the phone will login, get new messages, and also be able to answer back to messages.
Does anyone know any mobile application tutorial that will do that? Or do you recommend me where to start? I never done a java mobile application before, I only work with websites and PHP.
I also tried to use ICQ, the client is already done for java and for iphone, and I've also found a script that will send ICQ messages from PHP, but ICQ server bans you for 20 minutes when you do many reconnections, so I have to develop some kind of ICQ bot always online that will check for new messages to send from the mySQL database and then send them, one per 2-3 seconds, so the server won't ban me for flooding.
Well any advice or recommendation is welcome about how to have users connected to the website messaging system from their phones.
Thank you!
Instead of a Java Application, I would do a mobile HTML web page for the mobile devices because it will be simpler to deploy. I know Java is supposed to be WRITE ONCE RUN ANYWHERE, but with JavaME is not that simple. You will have to create special deployments for different phones, and there are phones that do not support JavaME (iPhone) at all.
With a mobile WEB SITE, the only thing your mobile phone needs is a browser. Pretty much every feature/smart phone have a browser these days.
If you insist on developing a JavaME application, you are on the right track. You can publish some WebServices on your WebSite and consume them from JavaME. Here is a tutorial on how to do that.