maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Java WhatsApp port (https://talk.maemo.org/showthread.php?t=83827)

peterbjornx 2012-04-22 19:27

Java WhatsApp port
 
NOTE : This is WIP and not everyting works
Updated!:
New features:
-Limited group chats ( No creation, invite ) (NOT TESTED YET)
-Auto scroll down
-Bugfixes
- Packaged for N900

Test version of 5 June 2012:
http://uppit.com/4i237vff0xdo/whatsapp_n900_alpha2.jar

New features:
-Bugfixes(Including "ping" bug)
-Maemo NSeries look and feel (Java GUI skin)
-New conversation window design (closely resembles conversations app)
-Delivery status icons
-Chat history storage
http://oi49.tinypic.com/25iwzrl.jpg
http://i47.tinypic.com/o9e49w.png

First install the Oracle JRE : http://uppit.com/p1glvshnvgn6/oracle...e-1.6.0u30.deb
Second, install WhatsApp : http://uppit.com/t79j5q219iux/whatsa...0.0.4alpha.deb
Third, enjoy and report any bugs!

peterbjornx 2012-04-22 19:27

Re: Java WhatsApp port
 
Also, group convos arent supported yet

Creamy Goodness 2012-04-22 19:29

Re: Java WhatsApp port
 
cool i hope you enjoy doing tech support for the 900 people that are about to ask for help...

peterbjornx 2012-04-22 20:01

Re: Java WhatsApp port
 
Fix: if it doesnt open if you double click on pc, do right click and open with java!

RobertHall 2012-04-22 20:11

Re: Java WhatsApp port
 
@peter i think your instructions should start like this :
if you dont have java on your pc go here and install java
http://www.java.com/en/download/index.jsp
next right click the whatsapp file and open with java
proceed with the entering of details

on device:
enable extras testing repository (if not enabled) and look for icedtea6 (or higher)
install
place the same whatsapp jar file on the n900 (documents)
(then the rest of your instructions)

peterbjornx 2012-04-22 20:18

Re: Java WhatsApp port
 
i will make a more clean and explaining version later tonight

pablocrossa 2012-04-22 20:25

Re: Java WhatsApp port
 
Let us see how long the horde takes to arrive :D good luck with this, is this completely your code?? because if it is then you better get ready for the Qs you are to get hehe

On a different note, thank you for enriching the Maemo community with a software much requested, I am sure it will be much appreciated :)

peterbjornx 2012-04-22 20:37

Re: Java WhatsApp port
 
its not 100% clean code, it contains ported s40 code, but thats only a small part of it, the whole client is written by me, only the XMPP client class is ripped, not even reverse engineered :) (no license break i think, i just copied over the class file and stuffed in the source of the opensource parts of whatsapp)

casketizer 2012-04-22 22:20

Re: Java WhatsApp port
 
Loads fine with oracle's java embedded. Since noone I know (except one girl I know) uses whatsapp I didn't register yet. Does it have to be the N900 IMEI or can I use any valid IMEI? In other words, can java see the real IMEI?

ayazpak 2012-04-22 22:28

Re: Java WhatsApp port
 
Given download link doen't work for me the messege was "Expired download session downloaded 15 times" can you upload on other link

casketizer 2012-04-22 22:52

Re: Java WhatsApp port
 
Try a different browser. Download still working fine. I got that session error earlier too. Download with opera mobile on N900 worked.

HtheB 2012-04-22 22:56

Re: Java WhatsApp port
 
Quote:

Originally Posted by ayazpak (Post 1196072)
Given download link doen't work for me the messege was "Expired download session downloaded 15 times" can you upload on other link

Just click again on download, should work :)

peterbjornx 2012-04-22 23:32

Re: Java WhatsApp port
 
Any random number should work for IMEI, AFAIK its only used for password generation, whatsapp pw is md5(IMEI)

peterbjornx 2012-04-22 23:33

Re: Java WhatsApp port
 
working on group convos atm, anyone with a phone supporting whatsapp that wants to help me out?, pm me if you want to help me test it by adding me to a group

peterbjornx 2012-04-22 23:55

Re: Java WhatsApp port
 
Updated jar

godofwar424 2012-04-23 00:02

Re: Java WhatsApp port
 
Yeah make sure you don't take it on your own to open whatsapp on pc and do what I did..

I installed YouWave and then did WhatsApp through that, realising that I was wrong, now I have an hours wait before the server can give me another Voice thing :(

Pretty ******ed of me thinking about it now, but im quite tired lol

godofwar424 2012-04-23 00:43

Re: Java WhatsApp port
 
Could you upload some screenshots of how things are meant to look?

I am testing this out on the N9 and I can't see any contacts or anything like that.

peterbjornx 2012-04-23 01:16

Re: Java WhatsApp port
 
You need to add contacts yourself

peterbjornx 2012-04-23 01:19

Re: Java WhatsApp port
 
it doesnt sync contacts yet

godofwar424 2012-04-23 01:31

Re: Java WhatsApp port
 
Quote:

Originally Posted by peterbjornx (Post 1196119)
it doesnt sync contacts yet

I see, but even when I add a contact, no name appears, just a red square in the corner :S

rochmanew 2012-04-23 01:40

Re: Java WhatsApp port
 
i get unknown error, this is my result in terminal
Nokia-N900:~# cd /home/user/jre/bin
Nokia-N900:/home/user/jre/bin# java -jar whatsapp_n900.jar
reg/req/register/start
Password: 32ef31e133f2fe4ee1e1bfc01dc7d4
reg/req/register/fail

it happen after I enter my verification code based on my received sms

don_falcone 2012-04-23 01:54

Re: Java WhatsApp port
 
Quote:

Originally Posted by peterbjornx
Due to a bug in the icedtea port verification will not work on device, instead you need to fire up whatsapp on pc and fill in your phones details then use the VOICE method, SMS doesnt work yet!

May i suggest to carefully read that important first post _again_. :rolleyes:

casketizer 2012-04-23 01:57

Re: Java WhatsApp port
 
Does that bug also exist in oracle's java embedded?

yazu 2012-04-23 02:06

Re: Java WhatsApp port
 
I already have the code and everything, but when I go to my phone and fill the boxes with my phone number and IMEI, select Login Method and press Verify it says: "Could not login: Login failed" :( I've done like ten times already and the same thing happens

peterbjornx 2012-04-23 02:10

Re: Java WhatsApp port
 
thats weird, it works fine for me , both using icedtea and oracle jre

peterbjornx 2012-04-23 02:24

Re: Java WhatsApp port
 
made install a bit simpler by providing packages

casketizer 2012-04-23 02:25

Re: Java WhatsApp port
 
@peterbjornx

Does one have to register via PC also when using oracle jre, or is that bug just on icedtea?

peterbjornx 2012-04-23 02:26

Re: Java WhatsApp port
 
no, with oracle jre it should work fine

peterbjornx 2012-04-23 02:27

Re: Java WhatsApp port
 
if anyone has official whatsapp, please help me by adding me to a group convo for testing purposes, pm me for cell phone #

Mohammed Muid 2012-04-23 03:19

Re: Java WhatsApp port
 
i cannt download the two files with my N900. first when i click download it says wrong ipaddress. the next time it downloads but it stays at 0 percent

casketizer 2012-04-23 03:23

Re: Java WhatsApp port
 
Worked fine here using Opera Mobile on N900.

figaro 2012-04-23 03:23

Re: Java WhatsApp port
 
has the oracle jre optified yet? it's 30 megs in size and i don't think i'd want it in my rootfs

peterbjornx 2012-04-23 03:24

Re: Java WhatsApp port
 
its optified :), goes straight to /opt/sunjre

peterbjornx 2012-04-23 03:26

Re: Java WhatsApp port
 
Dont expect any updates the next few days, im going on a school trip to paris so no development pc access for me the next 5 days

casketizer 2012-04-23 03:39

Re: Java WhatsApp port
 
peterbjornx, does your jre deb create the links in /usr/bin?
Also it would be cool if it register itself as providing icedtea. That would spare ppl a lot of gymnastics when installing stuff from repos that requires jre/icedtea.

ahmadamaj 2012-04-23 03:49

Re: Java WhatsApp port
 
if my phone number was already ativated on whatsapp, will that make things easier or does it need to activate again?

yazu 2012-04-23 03:52

Re: Java WhatsApp port
 
Could you help me please? I'm still having problems verifying it :( I got it running on my pc but when I put in my phone the code i got from the call it says: "Unknown error!"

Mohammed Muid 2012-04-23 06:01

Re: Java WhatsApp port
 
i am getting the same unknown error messege when typing the ver code.

whatsappneeder 2012-04-23 06:05

Re: Java WhatsApp port
 
please can u help me installing step by step?

didik.wahyono 2012-04-23 06:06

Re: Java WhatsApp port
 
me too... unknown error both in PC and N900 :confused:


All times are GMT. The time now is 13:00.

vBulletin® Version 3.8.8