hi,
I'm now developing my first Android application.
My application interacts with a web service using SOAP messages.
The web service sits in glassfish4 server.
So I want that every user that interacts with the web service will get a new instance of the class that represents the web service. I read that to do this, I need to add the @httpsessionScope annotation to the web service class. But what should I write on the client side, in the android application to enable the session tracking?
Thanks
Related
Hi all.
I am in the process of creating a push notification service which is available to use on Android devices. Essentially it is a simple application which you can interact with from your own application, to receive push notifications from your server-side applications. The best part about the service is that it runs of Android 1.6 and up - no Google accounts or Market is required.
To use the service, you simply send an intent to register your app to receive notifications and add a couple of intent filters to your manifest. Assuming my push service application is installed on the users device then you can receive message from our platform.
To send messages to devices, you use our API to send a JSON structure to the client ID (acquired after sending the registration intent) and your application ID and our platform will deliver it for you.
The aim here is to provide a push service which will allow developers to target older Android platforms (and non-Android platforms infact) with push enabled services - and by using our platform the end-user isnt affected by have lots of open network channels.
I am still beta testing the system, so PM me if you would like to get started, but I am hoping to make the service available for free (providing I can raise enough funds somehow) after the beta is finished.
If you would like to get hold of the application, it is already available in the Android Market as "CloudSquirt Push Service" or https://market.android.com/details?id=com.cloudsquirt.android
Rich
I'm looking for a cross platform SMS/Texting service! (Notice I didn't say "APP")
I wonder how many people will suggest whatsapp, KiK, Google Voice, G+messenger etc etc before reading this entire post?
I'm looking for inquiring the existence of an SMS/TXT delivery service that is cross platform, and MUST integrate below the application level.
I have a feeling this may be impossible, without a rooted/jailbroken device.
So, what would this service APP do? It would allow SMS/Text's from GoSMS, Handsent SMS, Stock TXT App or ANY SMS/TXT APP to be routed via your carrier or freely over your data connection/Internet.
For example:
Me (DROiD user), John (iPhone user) and Larry (Blackberry user)
John & I install ACME-SMS service (it's a fake name in case you start googling it), and create an account on the ACME-SMS server, for free!
Larry, he does NOT install ACME-SMS service on his BB.
Using Handsent SMS (or Stock APP), I send an SMS/TXT to John AND Larry.
ACME-SMS service on my DROiD determines that John has the ACME-SMS service running, so he'll get my SMS/TXT via the Internet/3G/Data etc... Only using a few bytes of my data plan.
On the other hand, my ACME-SMS service determines that Larry does not use ACME-SMS service, so he will get my SMS/TXT the 'normal' route, via my mobile carrier (charges apply)
The key ingredient here is that it integrates into your device as a service and 'intercepts' all your TXT's and decides if the recipient is running the same service. ALL SMS/TXT APP's will not know the difference, and the user has the choice of SMS Texting app to use. Wow, what a concept! LOL
I have a feeling this APP is a PIPE-DREAM app.
So, does such an APP exist..., yet?
https://github.com/venomous0x/WhatsAPI
What is WhatsApp?
According to the company:
“WhatsApp Messenger is a cross-platform mobile messenger that replaces SMS and works through the existing internet data plan of your device. WhatsApp is available for iPhone, BlackBerry, Android, Windows Phone, Nokia Symbian60 & S40 phones. Because WhatsApp Messenger uses the same internet data plan that you use for email and web browsing, there is no cost to message and stay in touch with your friends.”
Click to expand...
Click to collapse
Late 2011 numbers: 1 billion messages per day, ~20 million users.
Modified XMPP
WhatsApp uses some sort of customized XMPP server, named internally as FunXMPP, which is basically some extended proprietary version.
Login procedure
Much like XMPP, WhatsApp uses JID (jabber id) and password to successfully login to the service. The password is hashed and happened to be an MD5’d, reversed-version of the mobile’s IMEI (International Mobile Equipment Identity) or equivalent unique ID, stored in servers upon account creation and used transparently everytime the client connects the server.
The JID is a concatenation between your country’s code and mobile number.
Initial login uses Digest Access Authentication.
Message sending
Messages are basically sent as TCP packets, following WhatsApp’s own format (unlike what’s defined in XMPP RFCs).
Despite the usage of SSL-like communication, messages are being sent in plain-text format.
Multimedia Message sending
Photos, Videos and Audio files shared with WhatsApp contacts are HTTP-uploaded to a server before being sent to the recipient(s) along with Base64 thumbnail of media file (if applicable) along with the generated HTTP link as the message body.
FAQ
What’s with the hex chars floating all over the code?
Mostly WhatsApp’s proprietary control chars/commands, or formatted data according to their server’s specifications, stored in predefined dictionaries within the clients.
What’s your future development plans?
We don’t have any.
Would it run over the web?
We’ve tested a slightly-modified version on top of Tornado Web Server and worked like a charm, however, building a chat client is a bit tricky, do your research.
Can I receive chats?
Indeed, using the same socket-receiving mechanism. But you have to parse the incoming data. Parsing functions aren’t included in this release, maybe in the next one?
I think the code is messy.
It’s working.
How can I obtain my password?
It depends on your platform, with Android for example, you can use TelephonyManager
Code:
TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
tm.getDeviceId();
With the sufficent permissions of course
Code:
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
NOTES
This proof of concept is extensible to contain every feature that make a fully-fledged client, similar to the official ones, actually could be even better.
During the two weeks of analysis of service mechanisms, we stumbled upon serious design and security flaws (they fixed some of them since 2011). For a company with such massive user base, we expected better practises and engineering.
Perfectly working as PHP and JAVA ports.
License
MIT - refer to the source code for the extra line.
Venomous
Team of Bahraini Developers.
Ahmed Moh'd and Ali Hubail (@hubail) contributed to this release.
I really would like to know whats your debugging strategy in this case? I'm still not able to capture the traffic from my Android 4 VirtualMachine in order to decypher the ssl traffic.
I documented my setup on my blog, just search for "WhatsApp für Android 4.0.X-X86 ICS auf VirtualBox" on Google.
Could you please provide some infos on your setup?
Except for some requests ( Syncing and Status update) , all requests go on plain text ( although they use SSL port , they still send in plain text )
onnsoft said:
I really would like to know whats your debugging strategy in this case? I'm still not able to capture the traffic from my Android 4 VirtualMachine in order to decypher the ssl traffic.
I documented my setup on my blog, just search for "WhatsApp für Android 4.0.X-X86 ICS auf VirtualBox" on Google.
Could you please provide some infos on your setup?
Click to expand...
Click to collapse
WebOS port!!!
Sent from my R800x using XDA
Looks like Whatsapp is quite secure...
Swypesation
Isn't there anyway to hack it???
Sent from my MT11i using xda premium
google it
Does anyone know how to send a broadcast message in Chrome from the user clicking on a link? It seems that Chrome will allow an activity application component to be launched by the user clicking on a link if the specific application component is present on the device and it has a category of android.intent.category.BROWSABLE. The information about Chrome launching activities can be found by searching for "chrome intents". I was wondering if anyone found a method to send a broadcast intent to start a broadcast receiver application component as opposed to an activity application component. Thanks!
Online bulk SMS/group SMS solution on your desktop web browsers through your phone and virtual SMS vendor.
Send and receive SMS text messages on your desktop Windows/Mac/Linux with web browsers, such as Chrome/FireFox/Safari, through your Android phone and virtual Online SMS provider. Move your native SMS application of Android phone to desktop web browsers for convenient reading and writing. Supports Group SMS/Bulk SMS through your mobile phone and/or virtual online SMS vendors in very cheap price.
After installing this app, just visit https://freetextsms.net to pair it with your web browser. No need to install desktop application on your Windows/Mac/Linux, etc,.
SERVICES
Online Android SMS Tool for manipulating SMS on your Android phone and online SMS service.
a. Android SMS
Sending and reading your Android phone's text message on your lovely Chrome, Firefox, Safari browser, not leaving your working computer. Get text message notification on your computer, without checking your Android phone.
b. Online SMS
Sending group text messages to your friends through online SMS service, not from your own mobile phone easily and cheaply. Save your phone's battery and not reveal your own mobile number.
c. Scheduled SMS
Manage your group contacts and type your text message on your large keyboard freely. You can even assign the delivery date time in future to make your group sms effectively.
FEATURES
Versatile Android text message tool to manipulate your text on your lovely computer web browser on any devices.
f1. Link
FreeTextSMS.net client app installed on your Android phone links your Android text messages with your lovely web browsers on any devices.
f2. Online SMS
Online SMS service is cheap and convenient to your global audiences, even your Android phone is powered off. Hide your mobile phone number and avoid mobile vendor blacklist.
f3. Scheduled SMS
Prepare your group sms in advance and then FreeTextSMS.net service will help you to send them out in desired date time through your Android phone or Online SMS service.
f4. Notification
Get notification on your desktop Windows/Mac Book/Linux about new text/SMS message from your friend, without checking your phone in your bag.
f5. Synchronous
Sync with your Android phone to get full text messages online; Sync your Google Contacts easily; All messages are saved online safely and you can check at home and in your office freely, even your phone is not on hand.
f6. Multi-Platforms: Windows/Linux/Mac OS and NO need to install desktop application
Access your Android phone's text messages from popular Chrome, Firefox, Safari browsers on different platforms, such as Windows, MacOS, Linux, Pads, etc.,.
Download
Download from XDA Labs here https://labs.xda-developers.com/store/app/com.joege.freetextsms
Web Application Portal
Then, Go to https://freetextsms.net/ and click [Web Application] button to enjoy the web online SMS services with this application.
Mark this topic.
The application is very limited in free version: 3 groups, max 5 users / group. I suppose I have to trust the developer to find out if is able to send hundreds of sms. NOPE Thanks!