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)

HigeRoman 2012-04-24 21:29

Re: Java WhatsApp port
 
ok! I got it to work! but... it asked for my name and I thought it was asking for a contact's name so I wrote HERS... and now that's my name and can't change it ._. wat do?...

davdav 2012-04-24 23:51

Re: Java WhatsApp port
 
its working good but with
with some bugs
1 enter dosent send the msg
2 we have to hold the fun/blu btn to add numbers or symbols
3 Ping from unknown numbers keeps comming

but generally its good :)
thanks to every one who helped in doing this

davdav 2012-04-24 23:55

Re: Java WhatsApp port
 
Quote:

Originally Posted by HigeRoman (Post 1197209)
ok! I got it to work! but... it asked for my name and I thought it was asking for a contact's name so I wrote HERS... and now that's my name and can't change it ._. wat do?...

delete the contacts value in the prefs.xml file
like this
but keep in mind this will delete all the contacts you have added

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE map SYSTEM "http://java.sun.com/dtd/preferences.dtd">
<map MAP_XML_VERSION="1.0">
<entry key="CC" value="2"/>
<entry key="CONTACTS" value="Delete this value"/>
<entry key="IMEI" value="35*************"/>
<entry key="LOGIN" value="2***********"/>
<entry key="PHONENR" value="***********"/>
<entry key="REGSTEP" value="-1"/>
</map>

davdav 2012-04-25 00:09

Re: Java WhatsApp port
 
for people who asked me how it works
here are the steps ( they are on the previous pages )
1- download the files in the 1st post
2- install them by dpkg -i command
3- run whatsapp
4- type any IMIE and your phone number and the small textbox for
the land code
5- activate it by voice
6- you will now get the code
7- now exit the app and open it again it will ask u for the code
8- you will get the unknown error
9- edit the prefs.xml
using vi or midnight or leafpad(i used it )

here is how to edit the prefs.xml
a- open xterm
b- go for root
c- type "cd /home/user/.java/.userPrefs/org/peterbjornx/whatsapp"
d- leafpad prefs.xml
edit it to be like this

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE map SYSTEM "http://java.sun.com/dtd/preferences.dtd">
<map MAP_XML_VERSION="1.0">
<entry key="CC" value="Area code goes here"/>
<entry key="CONTACTS" value="-"/>
<entry key="IMEI" value="35*************"/>
<entry key="LOGIN" value="areacode + phone number"/>
<entry key="PHONENR" value="Your Phone number"/>
<entry key="REGSTEP" value="-1"/>
</map>

and then open the whatsapp again and tadaaaaaa its working :O

malkavian 2012-04-25 08:40

Re: Java WhatsApp port
 
Quote:

Originally Posted by davdav (Post 1197272)
4- activate it by voice
5- type any IMIE and your phone number and the small textbox for the land code
6- you will now get the code

I think that the order is 5, then 4 and then 6.

Quote:

Originally Posted by davdav (Post 1197272)
c- type "cd /home/user/.java/.userPrefs/org/peterbjornx/whatsapp"
d- leafpad prefs.xml

In my computer and N900 the folder with the relevant prefs.xml is "/home/$USER/.java/.userPrefs/org/peterbjornx/whatsapp/storage"

Quote:

Originally Posted by davdav (Post 1197272)
<entry key="CC" value="2"/>
<entry key="CONTACTS" value="-"/>
<entry key="IMEI" value="35*************"/>

In mines, CC value is the same as Country code (34 for me).
As IMEI I used an easy to remember number, so if I use whatsapp in another device, it will be simple to remember it.

When adding contacts must be remembered that must be added with country code but as in all this configuration without zeros or plus symbol. Example for spain international calls +346xxyyyzzz or 00346xxyyyzzz ---> You have to use 346xxyyyzzz.

rayson 2012-04-25 08:43

Re: Java WhatsApp port
 
Quote:

Originally Posted by klome (Post 1197369)
I came to Hong Kong, no one can teach me, I do not English
Difference in this step has been fixed

http://talk.maemo.org/attachment.php...1&d=1335339056

after you get the code, you need to modify the entry in pref.xml as front page mentioned, don't modify the wrong path, got many pref.xml in many folder, is the one in storage folder

change the CC to your country code
enter your phone number without country code
I didn't change the regstep and remain as 1

restart your phone, cause java won't close the program automatically, a clean startup will be better. start the program, switch to login, and verify, it will ask for your verify code, enter it and it will start.

ajack 2012-04-25 08:47

Re: Java WhatsApp port
 
My suggestion to all here is to open a terminal screen and run the program with:

/opt/whatsapp/launch.sh

That way, when you want to quit whatsapp, just go to the terminal and hit CTRL-C and type:

exit

No more memory issues... I remember having 7 different java sessions and using the kill command is just too much typing... Hope this tip proves useful to all in this thread. :)

Ohhh! If you run whatsapp with:

/opt/whatsapp/launch.sh~

You will find the output a little different... :P

malkavian 2012-04-25 08:51

Re: Java WhatsApp port
 
Quote:

Originally Posted by ajack (Post 1197388)
having 7 different java sessions and using the kill command is just too much typing...

To kill all with one command use killall -9 java

(killall uses names of processes and not pids to kill them)

ajack 2012-04-25 08:53

Re: Java WhatsApp port
 
Quote:

Originally Posted by malkavian (Post 1197389)
To kill all with one command use killall -9 java

(killall uses names of processes and not pids to kill them)

I know, but CTRL-C is so much faster and having so many sessions at once is a bad thing anyway. No? :D

reinob 2012-04-25 08:59

Re: Java WhatsApp port
 
Quote:

Originally Posted by Mohammed Muid (Post 1196818)
opened whatsapp. fill in the info. got the msg with the code. close whatsapp. opened whats app again. put the code. got the error. then i opened the prefs.xml file. removed whatever its written there and pasted this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE map SYSTEM "http://java.sun.com/dtd/preferences.dtd">
<map MAP_XML_VERSION="1.0">
<entry key="CC" value="31"/>
<entry key="CONTACTS" value="-"/>
<entry key="IMEI" value="356938035641084"/>
<entry key="LOGIN" value="88***********"/>
<entry key="PHONENR" value="***********"/>
<entry key="REGSTEP" value="-1"/>
</map>

then opened whatsapp again. i shud get the code verification page rather i got the whole number verifying page where its written login failed. unable to login. i tried to give my number again but again the problem. "too recent"

Please stop posting your IMEI!

Add.: Yes, my quote also included his IMEI. The amount of information added is however zero.

mr_pingu 2012-04-25 09:24

Re: Java WhatsApp port
 
And you qoute his IMEI? :D

I agree, posting your IMEI is never a good idea

Jeffrey04 2012-04-25 10:38

Re: Java WhatsApp port
 
Quote:

Originally Posted by godofwar424 (Post 1196357)
Try using this .jar file and running it on your PC by double clicking it, then register this way, use the VOICE method.

Then go on your phone and do the Login method :)

how do you enable the virtual keyboard with your n9?

OUSSAMA TAWIL 2012-04-25 11:09

Re: Java WhatsApp port
 
i have been following this thread from 2 days back, and i tried all the combinations to overcome the unknow error showen when entering the verification code but yet i am still not able to login, once i change the CC, LOGHING, PHONENB,... and restart the whatsapp, the login page shows again. any help please?

Fersansa 2012-04-25 12:00

Re: Java WhatsApp port
 
I finally made it work!! Of course it is very buggy yet, but at least we can have a pre-version of whatsapp in our awesome N900. This was the only app I was missing that other platforms have.

While trying to make it work I got stuck with the "unknown error" after receiving the code via sms, but after editing the prefs.xml file as said in several previous post and asking for the code in the N900 through voice (I received the phonecall and it was the same code as in sms) it worked at last.

I just want to thank you Peter for his job and I hope next releases will be coming soon fixing many of the bugs.

naru 2012-04-25 14:35

Re: Java WhatsApp port
 
Hey frinds... My n900 under worantty and having problem no charging intermediate... Today I submitted after 7 days I will get ... So I am just reading this .... Thread and looking

naru 2012-04-25 16:01

Re: Java WhatsApp port
 
I am Nokia care software engineer .. I used whatsapp with this are the Nokia model
• x2-01 s40
•c3-00 s40
•C3-01 s40
•x3-02 s40
•n200 s40
•n300 s40
•n303 s40
•E75 s60
•N78 s60
•N79 s60
•5800 s60
•5233 s60
•c5-03 s60
...................N8....
.E7...........windows lumia 800/710



Now....... I am going to use whatsapp in my n900 and N9 lets try :D:D:D:D:D:D:D:D

praveenchand 2012-04-25 16:19

Re: Java WhatsApp port
 
i feel slowness after installing this, may be because free space reduced in opt? anybody else feels same?

naru 2012-04-25 16:38

Re: Java WhatsApp port
 
Quote:

Originally Posted by praveenchand (Post 1197535)
i feel slowness after installing this, may be because free space reduced in opt? anybody else feels same?

this is java ... And 1st file large that's why its slow .... If you want use fast what's app wait till 1th may .. May be 1st whatsapp ver.. Coming in N900 ..right now we all are waiting ta:)gala public wazapp ver

davdav 2012-04-25 16:51

Re: Java WhatsApp port
 
Quote:

Originally Posted by malkavian (Post 1197385)
I think that the order is 5, then 4 and then 6.

i ll edit this thanks :)

Quote:

Originally Posted by malkavian (Post 1197385)
In my computer and N900 the folder with the relevant prefs.xml is "/home/$USER/.java/.userPrefs/org/peterbjornx/whatsapp/storage"

i use n900 and the one i wrote before is the right one :)
i dont know about your computer


Quote:

Originally Posted by malkavian (Post 1197385)
In mines, CC value is the same as Country code (34 for me).
As IMEI I used an easy to remember number, so if I use whatsapp in another device, it will be simple to remember it.
When adding contacts must be remembered that must be added with country code but as in all this configuration without zeros or plus symbol. Example for spain international calls +346xxyyyzzz or 00346xxyyyzzz ---> You have to use 346xxyyyzzz.

i ll edit that too :)
thanks :)

hadi43 2012-04-25 18:21

Re: Java WhatsApp port
 
Really nice work and it's works..!
but there is some bugs :
1-Whatsapp dont save the msg that you received
2-i sent a photo from iphone to n900 but i cant open it

ramezt2000 2012-04-25 19:15

Re: Java WhatsApp port
 
Unknown error is still blanking ,,,

i tried all possible entries ,,,
i already read all the previous posts but nothing work with me ,,

Anyone can help ?

malkavian 2012-04-25 22:42

Re: Java WhatsApp port
 
Quote:

Originally Posted by klome (Post 1197676)
I can use, but the list is not to be a plus
This Can be used more than talk

It's an 0.0.4 alpha version. It will be improved.

malkavian 2012-04-25 23:17

Re: Java WhatsApp port
 
Ia have modified /opt/whatsapp/launch.sh script to close whatsapp if it is opened, and open it if not, but from icon doesn't close the app, only open when it's not opened. If I close the whatsapp window before, then script kills correctly the process. From console it works fine always.

Here it is:

Code:

#!/bin/sh

wpid=`ps @ grep whatsapp_n900 | gep java | cut -d" " -f 1`

if [ "$wpid"="" ]
  then /opt/sunjre/bin/java -jar /opt/whatsapp/whatsapp_n900.jar
  else kill -9 $wpid
fi

¿Any help for make it working from Icon?

chely81 2012-04-26 06:46

Re: Java WhatsApp port
 
Quote:

Originally Posted by Creamy Goodness (Post 1196002)
cool i hope you enjoy doing tech support for the 900 people that are about to ask for help...

hola mira sabes que instale el whatsapp pero cuando meto el codigo de activacionme arroja un error unknown error !! por favor e ayudas mi tlefono es un nokia n900




hi looking to install the whatsapp know but when I put the code throws an error activacionme unknown error! and please support my tlefono is a nokia n900

chely81 2012-04-26 06:47

Re: Java WhatsApp port
 
Quote:

Originally Posted by klome (Post 1197676)
I can use, but the list is not to be a plus
This Can be used more than talk

hi looking to install the whatsapp know but when I put the code throws an error activacionme unknown error! and please support my tlefono is a nokia n900

malkavian 2012-04-26 07:29

Re: Java WhatsApp port
 
Quote:

Originally Posted by davdav (Post 1197548)
i use n900 and the one i wrote before is the right one :)
i dont know about your computer

Well, if it works is ok. My N900 whatsapp/prefs.xml only have the header, and the one that have all the data is whatsapp/storage/prefs.xml

Quote:

Originally Posted by davdav (Post 1197548)
thanks :)

You're welcome. Thank you too.

buckethead 2012-04-26 07:43

Re: Java WhatsApp port
 
I got it to work yesterday, but once i restarted my phone and launched whatsapp again, it gave me the verification page again, with my IMEI and my CC written. I edited prefs.xml and i these are the values stored
"CC=002
CONTACTS=rOOABXcE.......
IMEI=356***************
LOGIN=002011119*****
PHONENR="-"
REGSTEP="0" "
Any help on what i should do?

rayson 2012-04-26 08:13

Re: Java WhatsApp port
 
Quote:

Originally Posted by buckethead (Post 1197793)
I got it to work yesterday, but once i restarted my phone and launched whatsapp again, it gave me the verification page again, with my IMEI and my CC written. I edited prefs.xml and i these are the values stored
"CC=002
CONTACTS=rOOABXcE.......
IMEI=356***************
LOGIN=002011119*****
PHONENR="-"
REGSTEP="0" "
Any help on what i should do?

opps, think you need to re-register everything again.....you can try remove the login entry, key in back the phonenr and regstep back to 1, start it up and login with the old verification code see can accept or not.

davdav 2012-04-26 08:29

Re: Java WhatsApp port
 
Quote:

Originally Posted by buckethead (Post 1197793)
I got it to work yesterday, but once i restarted my phone and launched whatsapp again, it gave me the verification page again, with my IMEI and my CC written. I edited prefs.xml and i these are the values stored
"CC=002
CONTACTS=rOOABXcE.......
IMEI=356***************
LOGIN=002011119*****
PHONENR="-"
REGSTEP="0" "
Any help on what i should do?

read the steps i wrote :)
*when you get the verification page again use login just login

are you from egypt too ?

davdav 2012-04-26 08:38

Re: Java WhatsApp port
 
Quote:

Originally Posted by ramezt2000 (Post 1197628)
Unknown error is still blanking ,,,

i tried all possible entries ,,,
i already read all the previous posts but nothing work with me ,,

Anyone can help ?

what does it tell you ?
may be we can help :)

malkavian 2012-04-26 09:12

Re: Java WhatsApp port
 
Quote:

Originally Posted by chely81 (Post 1197781)
hola mira sabes que instale el whatsapp pero cuando meto el codigo de activacionme arroja un error unknown error !! por favor e ayudas mi tlefono es un nokia n900

(In english lower)
Como han dicho por ahí repetidas veces en inglés, "debido a un error, la verificación con icedtea no funcionará, en vez de eso necesitas instalar whatsapp en el pc y rellenar los detalles de tu móvil y usar el método de registro por voz (VOICE), ¡por SMS no funciona aún!

Con Oracle embebed en vez de icedtea dicen que si funciona, pero podrías probar eso, la activación por voz desde el ordenador.


**** English ****

As said some times here and there, "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!"

With Oracle embebed instead of icedtea, people say it works, but you could try to do the voice activation from the computer.

TARIKO 2012-04-26 10:00

Re: Java WhatsApp port
 
Just retype:
PHONENR="Your Phone Number"
REGSTEP="-1"

zwevert 2012-04-26 12:17

Re: Java WhatsApp port
 
I want, as requested by Peter, report a kind of bug.
If somebody type the first time a short message and the next message is a very long message then the window has nog scrollbars so I cannot read the whole message.

I'll hope there is a solution for this behaviour..

bigmargio29 2012-04-26 15:21

Re: Java WhatsApp port
 
to use this application must always be connected to the Internet...is not possible to create a qbw maybe that connect the phone to show if there are messages???it seems like a chat...there is no way to use it for send istant sms???

don_falcone 2012-04-26 16:13

Re: Java WhatsApp port
 
Why u no use SMS then

bigmargio29 2012-04-26 17:11

Re: Java WhatsApp port
 
the normal use for this app is for not pay sms i think...

malkavian 2012-04-26 17:20

Re: Java WhatsApp port
 
Quote:

Originally Posted by bigmargio29 (Post 1197941)
the normal use for this app is for not pay sms i think...

That's what Whatsapp inc. tells in his advertising, but it's simply a Instant Messaging program based in jabber (as google-talk, facebook-chat and others...).

ramezt2000 2012-04-26 17:41

Re: Java WhatsApp port
 
Quote:

Originally Posted by davdav (Post 1197803)
what does it tell you ?
may be we can help :)

I just followed all previous instructions and get the verification code ,,
but i receive "unknown error" when entering it ,,,

i tried changing all inputs in the prefs file but no use ,,

I'm from Egypt anyway ,,,

So, please help me solving my problem ,,

Thanks

Mohammed Muid 2012-04-26 18:08

Re: Java WhatsApp port
 
first install the program. get the code. run the code. get the error.
then open the prefs.xml file. just beside PHONER there is VALUE. beside value there is "-"
between the comma write ur number without country code. then save it and close it. then open whatsapp again. type the code again. it will work if u do just as i said.

hobarrera 2012-04-26 18:19

Re: Java WhatsApp port
 
Any news on whether we can have the source for this? :(

I tried to decompile it, but even after I fixed compilation errors, couldn't get the decompiled version to run.

I did, however, find that two of the java packages included are available here:

http://bouncycastle.org/latest_releases.html
http://sourceforge.net/projects/kxml/files/kxml2/2.3.0/

This means we know what both those packages do (since they're documented, just get the javadoc), so we can focus on analysing the rest of the code.

I would have done this; however, the decompiled code is awfull, and imposible to understand.


All times are GMT. The time now is 07:34.

vBulletin® Version 3.8.8