yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV Themes and Apps] zavion:
me and a friend have been working abit on it, and when we change the file, or even delete it, it still loads the first file it was installed with.

so, I think it have to be with the installed files to get a danish version and not just "patch" it with the updated dll file.

I tried to install, delete, reboot, install new file, reboot. start program... and still the first file it was installed with.

is it me, or do we do something wrong? :)

I am new to this aswell, and my friend did the programming I just havde the phone :)
[Touch Diamond, MDA Compact IV Themes and Apps] ballex:
Maybe you could try with www.hitta.se for swedish if eniro.se doesn't work?:)
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
Finally! my phone is registered at eniro.se :D

but I can't get the dll file to work!?

It work perfect when I test it on my computer, but when I copy the file to the phone the only thing i get is 'No record Found'..

It's like the program never calls the dll file...

I've changed the dll file so that It would return the calling number, a text line or anything, just for testing...

but nothing! It just shows 'No Record Found'... very strange?
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
I see many are requesting dlls for their country, but very few are actually doing something to help the process.

Now I'm not going to say, "I'd like on for Denmark too", but give my thoughts and ideas on improvements.

The app works great, though no records found for my danish number, of course, but I knew that.

What I was thinking is, why not have the app check if the number is starting with a country code? You know, +45 for Denmark. (+49 for Norway, right?)

If it is, check the website for that country. Since people are making dlls for different countries.

Of course you need the setting of Country of origin, so it knows what country to check in, when no code is present.

I know it'll take more coding and testing, but if you are going to make an application, why not make it perfect. :)

And I'll help test it in Denmark, if needed.
[Touch Diamond, MDA Compact IV Themes and Apps] shwan_3:
Sweden ?

Hi NisseDILLIGAF's, Have you made it work with eniro.se yet?
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
no :(

audiophil is having a look at the dll I made for Swedish numbers...

if he can make it work.. there shouldn't be any problem to get it to work for Danish and other country's...

if someone from sweden is calling me it doesn't show +46 in front of the number... only if someone from another country is calling, it shows the countrynumber... or am i wrong, maybe it's something in settings??
[Touch Diamond, MDA Compact IV Themes and Apps] fluid888:
yep a lookup for different countries depending on the sent countrycode sounds like a good idea.. then u can have one main-app with country-based add ons..
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Right, thats why I also said that the app needs a country setting, so it knows what country callers without country code are calling from.

Or it could check with the OS what country setting it has.

I should think there is a lot of options on this.
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
oh.. ok.. yeah, your right...

I think some people may have phonecalls not just from their own country...

But because info is extracted in different ways depending on how the website is built...

But I'm guessing there could be something like country dll files...

u just pick which country's u want ... a different dll for each country..

sweden.dll

danmark.dll

and so on ..??

just an idea :)

but we have to make it work 4 a country outside of Norway first.. :)
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Yeah, a dll for each country, at first. Then maybe put it all in one, when most countries are made. Though it will require recoding.

And I thought of an option to look up numbers other then those calling.

Would be a nice feature.

And it annoys me a little that it doesn't hide automatically at start up. Can that be done?
[Touch Diamond, MDA Compact IV Themes and Apps] pantrax:
Will it work properly with S2U?
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
I haven't got it to work with S2U2.. :(

It looks like S2U2 will always get in front of CallerUtility...

I tried to add CU to the exception list in the registry but no luck :(

and since A_C has stopped his development of his programs..( I dont know if this is still going on?)

my guess is that we can't expect a update on his program...

but for me, I rather have CallerUtility then S2U2.. :rolleyes:
[Touch Diamond, MDA Compact IV Themes and Apps] pantrax:
I guess i'll have to consider it then since it not only stops this but also klaxxon. Two pieces of software that i'd really appreciate.
[Touch Diamond, MDA Compact IV Themes and Apps] :
It's better to use

http://mobil.hitta.se/default.aspx?Who=XXX&Where=&PageAction=White

where XXX is the phoneno with the + replaced with %2b

as this gives a very small response (a couple 100 bytes) so it's the cheapest.

The name is always on line 19 it seems.
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
Very nice find! :)

I will probably use this one in the swedish dll...

only thing is that my number isn't registered there :rolleyes:

But maybe I can use this one as a primary search, and if it doesn't find anything there it will search eniro.se?
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Nisse, could you make one for Denmark to? Or tell how you make it?

I'm no programmer, but I understand how it works. So if you could explain it shortly, I might be able to help.
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
I'm waiting for audiophil to check the dll I made for sweden... maybe I've done it all wrong? :rolleyes:

I'm not a programmer either but I know same basic programming...

Have a look in the first post, audiophil posted the source code for the dll...
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Well, I don't have VS2008 here. I'll check at work tomorrow.
[Touch Diamond, MDA Compact IV Themes and Apps] jwbergen:
Can u make this work with telefonkatalogen.no also?
[Touch Diamond, MDA Compact IV Themes and Apps] zmob123:
US Version

Somebody please hook me up with a version for the US, I can't get it to work.
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
the current version only works in Norway...

I'm waiting for audiophil to have a look at the swedish dll I made...
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Okay, I've got VS2008 now and are looking in the code.

But I can't find where it actually extracts the info from the webpage.

Can you point it out for me?

I've replaced the URLs and the "No results" text it looks for.

But I reckon that I have to specify where to look for the info to display.
[Touch Diamond, MDA Compact IV Themes and Apps] dimisxxx:
Hello my friends....

Anything for finland you know its Scandinavian country also maybe is easy.....;)
[Touch Diamond, MDA Compact IV Themes and Apps] Espensodal:
wow

i thought this was used worldwide or something, ive been using this for over a year, except not the one from gule sider, but 1881 which is basically the same thing. Very handy as it gives you full name, adress, and phone number.

Combining this app and a gps program like garmin mobile XT or TomTom is excellent.
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
you have to look at the source HTML code of the page you are trying to extract the info from ...

the code is looking for what's in font of the Name then it looks what behind the name...

that way it knows where the name is...

then its the same for address and so on...

I had to rewrite most of the code from the Norwegian code.

There is allot of differences from different HTML pages...

It's gone take some time to explain how to do it...

As soon as audiophil has checked my file I can upload the source for it...

I don't want to do that yet because I don't know if its right... maybe I'm totally wrong in my coding??!
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
where can we get the one u are using? :rolleyes:
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Okay, I exchanged the prefix' and postfix' for the name and address, so it should work. www.degulesider.dk have some very unique code around the result. :)

But I don't have any listed numbers to test with, so I'll have to wait till tomorrow when I'm at work.
[Touch Diamond, MDA Compact IV Themes and Apps] audiophil:
Okay, just can't see how to get time to take this project further, I've done a bit more with the norwegian version, added functionality to add the unknown callers data to the address book (email, name, phone, address etc). Very handy!

So, bottomline, I'll attach the complete source code to this thread for everyone to enjoy. I'd like to be included with name and email address if someone is branching my code to something...

I'll continue to keep half an eye on this thread in the future :)
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
nice... :)

hopefully we are going to get this baby to work :D

I see you changed a bit in the code.. added a VcardParser...

at first look I don't really get what it does... (could be that it's 2 o'clock in the middle of the night! :rolleyes:)

Have u skipped the DirectoryServiceHtmlParser?

or does it get used in the code? (can't find any reference to it...)

will be fun to get this working ...

maybe a stupid question.. but does it work in Norway? :o

Thanx again for your work!
[Touch Diamond, MDA Compact IV Themes and Apps] timoline:
Hi,

Hopefully another developper will pickup this project and expand it to other countries.

Thanks for you work audiophill.

Cheers

SUGGESTION for future feature: Because you know zip/address of caller make a link to google maps ;)
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Okay, my changes didn't work. :(
[Touch Diamond, MDA Compact IV Themes and Apps] audiophil:
Hehe, yes it sure works in norway, i got it running at all times :)

At gs.no there is a nice feature where you could download the search result as a vcard, I utilized this into creating the Contact-object, since there is a pretty straight forward mapping between the fields...

There is no need to do this, if you'd like to extract the values from the DirectoryHtmlParser that's possible as well. Just see how the Contact object is used to notify the gui-thread about the acquired contact...
[Touch Diamond, MDA Compact IV Themes and Apps] RichardTenggren:
If you done so it will works with the eniro.no it would be easy to get it work with the swedish eniro.se i think? The code cant differs so much between the sites?:)
[Touch Diamond, MDA Compact IV Themes and Apps] Guru Meditation:
Would love to get this working in the UK, but I don't think theres a UK database available over the net that would provide name and address info from a phone number. This would contravene the data protection act in the UK.

Of course if there were an overseas search facility not subject to the data protection act then that may be a different thing?
[Touch Diamond, MDA Compact IV Themes and Apps] fluid888:
edit: never mind

trying it out myself for a german version now
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
There you go. (Hope it works)

:)
[Touch Diamond, MDA Compact IV Themes and Apps] alijan:
Can you please made this possible for danish www.degulesider.dk

thanks...
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Jeg prøver. ;)

I'm trying, but it is a slow process...

I could use a tester, cause I don't have any listed numbers.
[Touch Diamond, MDA Compact IV Themes and Apps] fluid888:
can someone please send me the old version of this tool without the vcard thing?
[Touch Diamond, MDA Compact IV Themes and Apps] obbelix:
Yesterday I finnished a modified version of HtmlParserPlugin that used mobil.eniro.se to look up numbers, but today I noticed that there is a new version that handles the plugin different :mad:

But I decided to give it a try and attached you will find the new modified version with installer and everything.

Unfortunately I can't test it on a real Diamond (haven't received it yet) but it works perfect in my emulator.

I've changed all texts to Swedish and added an "auto hide" function to the dialog when the call ends (10 s).

This version uses mobil.eniro.se to reduce bandwidth. It should work for both private persons and companies.

Thanks to "audiophil" for this idea and also for sharing the source code!

I don't give any guaranties for my modifications. If you find any bugs, please send me an PM with an example.
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
Yeah, I noticed that after viewing the code again :)

And. there is a vcard function on 'hitta.se' also.. so I think I'll use that one (not to stray to far away from your original:rolleyes:)

on hitta.se there are 2 types of vcards one 'white' - private person and one 'pink' - company...

I will try to get both of them.. (think u have similar in norway..?)

I just dont have much time right now, so It may take some time (maybe end of next week)

So if anyone else from sweden is trying... please let us know... no need for double work :rolleyes:

and for all swedes... I will try 3 different dll files...

eniro.se

hitta.se mobil

hitta.se vcard

The idea with this is to get as little 'data flow' as possible...

EDIT: @obbelix

nice... I will try it out :)

didn't see u there when I start typing!
[Touch Diamond, MDA Compact IV Themes and Apps] psudo:
Im in for a test run, do you have anything comming up for a danish version?

/Psudo
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
where is the HtmlParserPlugin.dll!?
[Touch Diamond, MDA Compact IV Themes and Apps] obbelix:
Do you really need the dll for this version?

The LoaderAndParser.cs is compiled together with the rest so it should just work, or have I missed something?
[Touch Diamond, MDA Compact IV Themes and Apps] fluid888:
@Nisse: could u test one using this addy http://www.goyellow.de/inverssuche/?TEL=07732910423 (random number used)

when i try my version i always get the error "An error occured." i guess from line 50 of the LoaderAndParser.cs

i attached my file

thanks in advance
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
aha .... no your right :)

And it works!! :D

nice work obbelix!

well... no need for me to keep working on this..?

It looks like u made it work for sweden! :D

I don't know if there's any difference by using htmlparser or vcard?

could u share the code you made? :rolleyes:

one other thing to look up would be from this website http://www.vemringde.se/

It's a register with all numbers to sellers and other annoying people...
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
sure... but the thing is I'm not really a programmer :rolleyes:

I just jumped on this because I wanted a working program...

obbelix looks like he know a thing or two about programming :D

maybe he can help u?
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
I'm no programmer either, so I'm not doing magic here.

The last changes I've made don't work. Get a funny error.

But I'll keep trying till someone else comes up with a working one.
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
obbelix swedish version is working perfect...:D

I guess, If he could show us his code...? :rolleyes:

another thing is... I can't get it to work with S2U2... :(

that's annoying, because the only thing I use S2U2 for is to answer calls! not to lock/unlock the phone...
[Touch Diamond, MDA Compact IV Themes and Apps] timoline:
Obbelix,

would you be so kind to give it a try for the dutch version please?

Here is the php code for it

It does not need parse html, its just a clean csv file :)

And every row (5) has data in it.

Thank you

p.s. +31 or 0031 is the prefix for the netherlands
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Yeah, it would definitely give some idea of how it works, when you can compare the two working codes.
[Touch Diamond, MDA Compact IV Themes and Apps] fluid888:
yep i would love to get it working but like i said earlier, no matter what i try i get "An error occured." after i says its looking up the number....
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
With the newest versioin, with vcard, I get the error after parsing is done.

And I have a 5 digit number in front of the text. (26xxx) Don't know why.
[Touch Diamond, MDA Compact IV Themes and Apps] tissot:
Grymt

Fantastic Obbelix.. It seems to work.. I have to test it on different numbers though. Is there a way to emulate a call?

Bra jobbat! =)
[Touch Diamond, MDA Compact IV Themes and Apps] audiophil:
Really fun to see all this activity, nice work obbelix and nisse, keep it up!

Regarding emulating calls, which is very convenient with this program, there is a tool with the Windows Mobile SDK from Microsoft. It's called CellularEmulator and you tie it together with the Windows Mobile Emulator by using com-ports, easy to setup.

Now you can emulate 3G/gprs traffic and calls from a arbitrary number (you choose the callee yourself)...

In the "new" version there's no need for the parser.dll since everything is bundled in the .exe as someone commented...
[Touch Diamond, MDA Compact IV Themes and Apps] obbelix:
Hi all.

Nice that it seems to work!

I don''t have access to my computer until tomorrow, but then I will check all requests.

My version doesn't use the new vCard function cause mobil.eniro.se doesn't provide vCard, it just parse the html with help of RegEx.

You can simulate calls to the windows mobile emulator with the Cellular Emulator Application that comes with the SDK. I don't know if you can simulate to a real unit, but I can check that during the weekend because I've finally received my Diamond!
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
Thanx to you audiophil for making this program... :)

now, I really hope this will take off with different ideas! :D

I haven't done any c programming for a while(many years!), and I'm not that good.. but I will surely try with this one!

a quick question... why did you start to use the vcard?

I'm thinking how much data it has to get...

Isn't better whit a smaller data flow? (hope u understand what i mean)

My vision of this is to replace the 'incoming call/answer call' function in my diamond (kinda like S2U2, but without everything else :rolleyes:)

Thanx again obbelix... great work!

One thing about your swe version...

maybe we could skip the countdown?

when I get a call and are finished with it I want the option to save it as contact... :rolleyes:
[Touch Diamond, MDA Compact IV Themes and Apps] audiophil:
I know the VCARD generates more traffic, but not much... What makes the delay is the response time to the server, measured it to vary between 5 and 30 seconds, 30 is not good!

Why I choosed to use the vcard was that I then could use the same parser and logic for yellow pages (businesses) and pink pages (persons) for Gulesider... I would not say it's mandatory, but for services with the ability to download as vcard I see a advantage of using it. :)
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Cool. I was looking for a way to do that.

Though I don't know how to set this up.

Can you type a short guide?
[Touch Diamond, MDA Compact IV Themes and Apps] obbelix:
New Swedish version attached.

- Removed the "auto hide" function

- Minor spelling updates

Took me a while before I managed to get it work on my Diamond, the problem was that the .NET 3.5 Framework wasn't installed by default.

Check the following page:

http://amitranjan.wordpress.com/2007/05/08/windos-mobile-6-cellular-emulator/

Sure, I will give it a try.

-
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Thanks, but I just read in some forum that it doesn't work on x64bit systems, which I run. :(

Anyway, does anyone know if manila can be ported to the emulator?
[Touch Diamond, MDA Compact IV Themes and Apps] fluid888:
obbelix, could u share your code please?

i want to give my shot @ a german version and i want to compare the source codes
[Touch Diamond, MDA Compact IV Themes and Apps] obbelix:
And here comes a Dutch version that uses www.nummerzoeker.com

timoline - please try this and get back with result.
[Touch Diamond, MDA Compact IV Themes and Apps] fluid888:
or obbelix.. can u try a german version using http://www.goyellow.de/inverssuche/?TEL=
[Touch Diamond, MDA Compact IV Themes and Apps] obbelix:
Here you go!

This version doesn't use the vCard parser, just simple RegEx on the html result.

Hope it's ok with you audiophil, otherwise please let me know.

-
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Nice. With this it got easy.

This time I've only changed the URL to the danish eniro.

The output html code is similar. Though I still don't have any numbers to test with, so I've attached the cab with a, hopefully working, danish edition. Please give some feedback on it.

I've had some problems finding all the gui text, as I wanted to change it all to danish. Some I've found, but text like the initial startup text, I've been unable to find. Where are you hiding it? :)
[Touch Diamond, MDA Compact IV Themes and Apps] audiophil:
In VS there's a nice feature called "show usages" when you right click on a variable, here's all the code that touches txtBox (see attachment).

I got no problem in skipping the vcard parser, use it if it gives an advantage.
[Touch Diamond, MDA Compact IV Themes and Apps] CASJ:
Thanks. Now it's all in danish. :D

New version available:
[Touch Diamond, MDA Compact IV Themes and Apps] tissot:
Heja!

This works fantastic.. Actualy better then I could imagin. Good work!

This second version that is swedish.. What did this "auto hide" function do in last version?

How ever only differences I can se is some translation and the fact callerutiliy does not show in the taskmanager (top right corner button).

Thanks again

/Jonas
[Touch Diamond, MDA Compact IV Themes and Apps] audiophil:
So, nisse notified me about some encoding errors ages ago, just didn't check my inbox here at the forum.

anyways, just fixed it, for those of you working on a branch remember to replace your loadhtml method with this one:

/// <summary>
/// Reads an HTTP-URL and returns it as a String
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
private string LoadHtml(String url)
{
System.IO.Stream st = null;

System.IO.StreamReader sr = null;

try
{

// make a Web request
System.Net.HttpWebRequest req = (System.Net.HttpWebRequest) System.Net.HttpWebRequest.Create(url);
req.UserAgent = "Opera/9.52 (Windows NT 6.0; U; en)";

// get the response and read from the result stream

System.Net.WebResponse resp = req.GetResponse();

st = resp.GetResponseStream();
sr = new System.IO.StreamReader(st, System.Text.Encoding.Default);

// read all the text in it

return sr.ReadToEnd();

}

catch (Exception ex)
{

return string.Empty;

}

finally
{

// always close readers and streams
try
{
//double size = (double) sr.ReadToEnd().Count()/1024.0;
//gui.addText("Lastet html" + size);
sr.Close();

st.Close();
}
catch (Exception e)
{

}

}
}
[Touch Diamond, MDA Compact IV Themes and Apps] obbelix:
When a call from an unknown number ended the CallerUtility window auto closed after 10 seconds.
[Touch Diamond, MDA Compact IV Themes and Apps] JiiRii:
@obbelix

Just notice that you got this app working in sweden, great work! I read this post almost daily to see if someone finds out way to get this working.

Looked up your code and it seems very similar as eniro.fi, only few changes.

I have tested eniro.fi service in Finland cause I have number registered there, only problem is that i don't know anything about coding.

If i edit LoaderAndParser.cs file code to match wap.eniro.fi service, how to finalize changes to .cab file? :confused:

Really want this to work in Finland also cause it is so close now when you have made it work in Sweden... again: GREAT WORK! :)