Basically a blog which is a mixture of anything that comes up in the author's mind. From the technologies that makes his life convenient to the everyday news in his country.

Windows Mobile Training @GlobeLabs

Monday, December 15, 2008

(0) Comments

What: Windows Mobile Training
Where: MK2, Makati
When: Dec 15-16, 2008

I though I was gonna missed this one but here I am :-). I was late, I don't know who the instructor is but I appreciate the topics. Although I am familiar with the technologies being discussed it still teaches me new approach or new things I can develop plus I like the instructor he entertains my every single question :-).

Discussions focuses on developing windows mobile application using SOAP or WSDL technology and it's quite entertaining :-).

Trainings... = Bond...

Saturday, December 13, 2008

(0) Comments

Yes it's logical when a training is being sponsored by a company an equivalent bond should be rendered. I agree with that. But how about this case... my case. I've been working with this company and there was a time when I was introduced with this telco client... And the day comes when this client sponsored a free training for Windows Mobile and i was the one who received the invitation. I've registered in their portal, I think that's why and that portal is public even you can register. My company was also invited by globe and they ask me to attend. Yes I did want to attend, why not? It's free anyway. Example I validated the invitation a week ago and I never heard anything about bound from my boss. The training is schedule Monday and suddenly yesterday night I've received this training clause and I was surprised how they come up with a training price and a bound. I'll show you the equation:

2 day free training = 1 year bond or else pay 8000 (training fee) + 500 transpo.

I was surprised but because I don't want to cause any trouble I signed and that time don't know anything... foolish... But today I'm asking advice of my friends and I've found out that it's not supposed to be. If there are money spent on the training then that's the only time you will be bond or pay an amount...

Hail, UP Oblation! Centennial Photo Shoot

Saturday, December 13, 2008

(0) Comments

If I remember right it was last last week when an old friend of mine invite to me to become one of the test subject in this experiment :-) he didn't provide any details aside from the fact that the event is sponsored by time magazine. I though it was workdays and I'm thinking of an excuse in using my VL so upon hearing the invitation I replied yes, hoping to meet the old gang :-)... And then I heard nothing from him again... Then last friday 2008.12.12 I've received a text and a call, asking if I'll be available today which is Saturday for the photo shoot... yes I wanted to go but I was surprised to hear that it will be held in Diliman and rendevouz time is 4:30am... I was shocked :-), specially when I realized that it's not just an ordinary photo shoot... as the title states UP Oblation... yes you'r right we are to wear nothing bwahahahaha... I was really glad I didn't take the chance to post in their even though ahem I have the body... (just agree with it) :-) or else somebody might get mad and cut the oblation THING out of me... hahahaha... anyway I hope you guys enjoy :-)....

Wish list

Wednesday, December 10, 2008

(0) Comments

Another year end and everyone is talking about their wish lists. And because I'm finished with my module I have the time to write mine:

1.) if release original CD of StarCraft2 :-)
2.) if release again original CD of Diablo3 :-)
3.) two words music sheet
4.) interesting novels, ung suspense - such as nancy drew or Peter Straub as the author
5.) elizabethan poem or any literature type
6.) new anime episodes to watch or manga to read
7.) something interesting to read or watch :-)
8.) tennis bag :-)

Globe Visibility VS Smart Bro Prepaid

Saturday, December 06, 2008

(0) Comments

Subject: Internet Connectivity
Variables: Globe Visibility, SmartBro Prepaid
Location: Victoria, Laguna
Date: 20081206

Compared to smartbro prepaid I can say that globe visibility is about 3-5x faster, and yes it's faster than dial up... I wonder when will smart/globe provide a broadband here... Just inquired months ago and they tell me that the place is not yet covered with internet huhuhu... poor place...

czetsuya

WHY SOME FOREIGNERS CHOSE TO STAY AND LIVE IN THE PHILIPPINES

Wednesday, November 26, 2008

(1) Comments

Got it from a friend of mine and I like it so I'm posting it here.
I don't know about the original author so if there's any issue with me posting it here pm mo :D

Kevin Kyle Navallo, a US Navy retiree and now an IT student in a reputable computer school nearby the former US military installation, Clark Air Base, tells it all!


“When I travel, people often ask me why I live in the Philippines . Well, I’ just too damn proud to tell everyone why I chose to reside permanently in the Philippines ......Well, I tell them that this is the only place on earth where......”



1. Every street has a basketball court.

2. Even doctors, lawyers and engineers are unemployed.

3. Doctors study to become nurses for employment abroad.

4. Students pay more money than they will earn afterwards.

5. School is considered the second home and the mall is considered the third.

6. Call-center employees earn more money than teachers and nurses.

7. Everyone has his personal ghost story and superstition.

8. Mountains like Makiling and Banahaw are considered holy places.

9. Everything can be forged.

10. All kinds of animals are edible.

11. Starbucks coffee is more expensive than gas.

12. Driving 4 kms can take as much as four hours.

13. Flyovers bring you from the freeway to the side streets.

14. Crossing the street involves running for your dear life.

15. The personal computer is mainly used for games and Friendster.

16. Where colonial mentality is dishonestly denied!

17. Where 4 a.m. is not even considered bedtime yet.

18. People can pay to defy the law.

19. Everything and everyone is spoofed.

20. Where even the poverty-stricken get to wear Ralph Lauren and Tommy Hilfiger (peke)!

21. The honking of car horns is a way of life.

22. Being called a bum is never offensive.

23. Floodwaters take up more than 90 percent of the streets during the rainy season.

24. Where everyone has a relative abroad who keeps them alive.

25. Where wearing your national colors make you baduy.

26. Where even the poverty-stricken have the latest cell phones. (GSM - galing sa magnanakaw)

27. Where insurance does not work.

28. Where water can only be classified as tap and dirty.

29. Clean water is for sale (35 pesos per gallon).

30. Where the government makes the people pray for miracles. (Amen to that!)

31. Where University of the Philippines where all the weird people go.

32. Ateneo is where all the nerds go.

33. La Salle is where all the Chinese go.

34. College of Saint Benilde is where all the stupid Chinese go and;

35. University of Asia and the Pacific is where all the irrelevantly rich people go.

36. Fast food is a diet meal.

37. Traffic signs are merely suggestions, not regulations.

38. Where being mugged is normal and it happens to everyone.

39. Rodents are normal house pets.

40. The definition of traffic is the 'non-movement' of vehicles.

41. Where the fighter planes of the 1940s are used for military engagements and;

42. The new fighter planes are displayed in museums.

43. Where cigarettes and alcohol are a necessity, and where the lottery is a commodity.

44. Where soap operas tell the realities of life and where the news provides the drama.

45. Where actors make the rules and where politicians provide the entertainment.

46. People can get away with stealing trillions of pesos but not with a thousand.

47. Where being an hour late is still considered punctual (Grabe talaga 'to!)

48. Where the squatters have more to complain (even if they do not pay their tax) - than those employed and have their tax automatically deducted from their salaries.

49. And where everyone wants to leave the country!



FILIPINO SIGNS OF WIT:

1. The signage in a flower shop in Diliman, Quezon City called Petal Attraction,

2. Anita Bakery

3. A 24-hour restaurant called Doris Day & Night

4. Barber shop called Felix The Cut;

5. A bakery named Bread Pitt

6. Fast-food place selling 'maruya' (banana fritters) called Maruya Carey.

7. Then, there are Christopher Plumbing,

8. A boutique called The Way We Wear

9. A video rental shop called Leon King Video Rental

10. A restaurant in Cainta District of Rizal called Caintacky Fried Chicken

11. A local burger restaurant called Mang Donald's

12. A doughnut shop called MacDonuts

13. A shop selling 'lumpia' (egg roll) in Makati called Wrap and Roll

14. And two butcher shops called Meating Place and Meatropolis.



Smart travelers can decipher what may look like baffling signs to unaccustomed foreigners by simply sounding out the 'Taglish'

(The Philippine version of English words spelled and pronounced with a heavy Filipino such as:



15. At a restaurant menu in Cebu - We hab sopdrink in can an in batol - translation: We have soft drinks in can and in bottle].

16. Then, there is a sewing accessories shop called Bids And Pises - [translation: Beads and Pieces --or-- Bits and Pieces]



There are also many signages with either badly chosen or misspelled words but they are usually so entertaining that it would be a mistake to correct' them like.......



17. In a restaurant in Baguio City , the 'summer capital' of the Philippines : Wanted: Boy Waitress

18. On a highway in Pampanga: We Make Modern Antique Furniture

19. On the window of a photography shop in Cabanatuan : We Shoot You While You Wait

20. And on the glass front of a cafe in Panay Avenue in Manila : Wanted: Waiter, Cashier, Washier



Some of the notices can even give a wrong impression such as:



21. A shoe store in Pangasinan which has a sign saying: We Sell Imported Robber Shoes (these could be the 'sneakiest' sneakers);

22. A rental property sign in Jaro reads: House For Rent, Fully Furnaced (oh,boy! it must really be hot inside)!

23. Occasionally, one could come across signs that are truly unique - if not altogether odd. City in Southern Philippines which said:

Adults: 1 peso; Child: 50 centavos; Cadavers: fare subject to negotiation.



24. European tourists may also be intrigued to discover two competing shops selling hopia (a Chinese pastry) called Holland Hopia and Poland

Hopia - which are owned and operated by two local Chinese entrepreneurs, Mr. Ho and Mr. Po respectively - (believe it or not)!



25. “Some folks also 'creatively' redesign English to be more efficient? The creative confusion between language and culture leads to more than just simple unintentional errors in syntax, but in the adoption of new words”, says reader Robert Goodfellow who came across a sign w/c says..... House Fersallarend' (house for sale or rent). Why use five words when two will do?



According to Manila businessman, Tonyboy Ongsiako, there is so much wit in the Philippines because - We are a country where a good sense of humor is needed to survive?. We have a 24-hour comedy show here called the government and a huge reserve of comedians made up mostly of politicians and bad actors. Now I ask you where else in the world would one want to live?

I hate it when...

Wednesday, November 19, 2008

(0) Comments

1.) one of the few people you value... doesn't make you feel the same (at times),
2.) the primary orientation of a life becomes work, even though you do so much for your employeer in the end your still an employee it will not make you richer nor give you an assurance of your future.
3.) of course it's lonely when you feel the two above;
4.) and you start asking things... and I'm sure you'll also get plenty of answers to.

Ajax Seminar

Friday, September 12, 2008

(0) Comments

It's not that I've attended another training or seminar, but this time I was the resource person :-). Since last night I've stay late at night (thanks to the bowling tournament - I've enjoyed though... I've always knocked all the targets except that 1 stubborn piece of craft that keeps on making my score... the usual, the average 9... so unfortunate I've only got 2 strikes)... Oh and 'bout my seminar most of the stuffs I've got here: http://en.wikipedia.org/wiki/AJAX...

Basically, I've divided my lectures into 2 dotnet ajax and non dotnet techs... Why because in dotnet we have two used existing ajax libraries else make your own while on the other hand we just have to implement from XMLHttpRequest object.

1.) Non-dotnet ajax
1.a) Basically I've introduced 2 ajax libs here 1 is anthem which I think was last updated 2007, and the latest ajaxcontroltoolkit that supports dotnet framework > 3.
Anthem can be downloaded here:http://anthemdotnet.com/ plus there are available documentations and a lot of simple examples that are easy to digest.
1.b)As for ajaxcontroltoolkit (http://ajaxcontroltoolkit.com/) it's much difficult to implement...
Comparing the two anthem contains it's own controls which are using ajax technology for example it has it's own button object, the problem here is that we only have a limited control at our disposal plus anthem and non anthem controls cannot be used together. For example non anthem button cannot be integrated with a anthem datagrid. While on the other hand ajaxcontroltoolkit produced container for non ajax object like updatepanel where we can place our checkbox, button, label, etc object and add appenders we want to use. For example using ToggleButtonAppender, where clicking on one of the checkbox produces certain action... See the example yourself...

Well I've enjoyed playing with ajax using php since I have more freedom, doing things on my own, having my own implementation. All you have to do is have a grasp of the technologies in use such as DOM, javascript, xml, and the XMLHttpRequest object - basically that's ajax. For this I'm using another open source library prototype.js which is available here: http://www.prototypejs.org/.

Nokia Seminar (August 26-27)

Friday, September 12, 2008

(1) Comments

A 2 day event that discussed topics from application development and deployment on the phone (how to symbiansigned the application), and technologies like widgets where UI can be build easily. The problem with widgets is that it's only supported on higher end phones like N95.

LBS technology was discussed and it offers a lot of possible business in the market, the problem is JSR179 is not supported on most of the phones in the market plus if the said JSR is implemented in the Philippines we have none or a few company that supply mapping of a certain place base on GPS. On the other hand cell id fails on JSR179.

Currently, the effective way of mapping location as I see it is by using cell id using etel3rdparty lib available only for symbian OS phones, I think version 8-9, am I right? For other versions etel lib can be used.

Since I've been developing in symbian from time to time most of the topics are already familiar for me :-D.

Oh my... I remember, I've reimbursed our transpo expenses and up until now I haven't received the cash :-(... How long has it been? A month? Oh well I'll just assumed that it's worth my penny and time :-)...

Sun Tech Days (June 18-19)

Friday, September 12, 2008

(0) Comments

Last June 18-19 I've attended an exposition of the newest java technology available @Makati Shangrila. It was an interesting event and it featured interesting technologies to play with such as:
1.) JavaFX which resembles macromedia flash (it's cool)
2.) JSF (Java Server Faces), which simplifies the building of UI interface for java
3.) The Solaris OS
3.) Mobile with LBS (hope more place will be properly and accurately map out
4.) Nokia Gurus talks

Well overall it was enjoyable event and I've tried to take home as much information as I could. Although there were problems like the rooms are crowded plus there were so many participants which I think were just forced to attend the event. Why because they just look after the foods :-), just keep on talking on talking and eating and eating... Wow... I've noticed this from several school participants...

June 21, 2008 (V-Lounge SPA @LB)

Wednesday, June 25, 2008

(2) Comments


I got a very relaxing day today hahaha (pretty redundant ha :-)). Well we went to LB ate at our favorite/undying restaurant "Selinas" :-), new employee looks here :-). Then we went at Vlounge to have a soothing combination massage whooo I though my muscles got worn out :-), but it's refreshing in a way. I'll be back here soon.. Soon when I have money hahaha... Try this: www.vloungespa.com...

June 15, 2008 Badmin2n @Binan, Laguna

Wednesday, June 25, 2008

(0) Comments


I left house early this day to go to our apartment and play badmin2n with my friends... At last I can work out my muscles which are getting stiffer :-)...

June 7, 2008 (eScience Outing @Laiya Batangas)

Wednesday, June 25, 2008

(0) Comments




Together with the rest of the company we enjoy the relaxing scene and beach at Laiya Tagaytay... Honestly, it's not the kind I was expecting for, not a white sand and there are rocks on the sea floor making it hard to walk (a friend of mine got wounded). Plus the place is not spacious pretty crowded in there so I'll not recommend this beach. Compared to Palawan of course it's uncomparable, nevertheless it was a relaxing day outside the office...

Overn8 at office for tomorrow is Company Outing :D (2008.06.14-2:10am)

Saturday, June 14, 2008

(0) Comments

Well here we are playing Dota... just passing time for tomorrow will have our company outing at BLUE CORAL BEACH RESORT, Laiya, San Juan Batangas hope we'll enjoy this :-).

June 9, 2008

Wednesday, June 11, 2008

(0) Comments

It's holiday today in the Philippines, so we decided (me and my partner) to travel around the area (Alabang). We went to ATC, ate at Gerry's Grill, unfortunately Pork sisig doesn't taste delicious at this shop :-) but the rest are ok. Then after spending sometime searching for items like shoes, dress etc we've decided to go to Festival since we have lots of choices there. I bought a new Fila shoes and slippers ouch my wallet hurts :-)... Just enjoying the holiday :-).

June 8, 2008

Wednesday, June 11, 2008

(0) Comments






Today we went to UPLB and try those things that we've not been able to do lately, because of busy schedules :-). We went to robinson bought some foods then walk around UPLB it was tiring but quite relaxing :-). Took pictures from the campus specially in the DL Umali Hall it's quite a peaceful place ideal for relaxing :-)...

June 3, 2008

Thursday, June 05, 2008

(0) Comments

Yesterday, finally we've finished the presentation part in Globe competition about SIP IMS, well we have a good chance of winning and we'll know it tomorrow, price is 1 million, not so big ne, considering the research we've done :-)?

I also got promoted/regularized after 6 mons of hardwork. Yes I was expecting it but maybe a little earlier. Am I happy I don't know maybe I am maybe I'm not. What I'm thinking right now is I want my house/car and a simple business for my family at my province, will I get this things immediately? Well if I stay in the philippines it might take more years than you can imagine :D considering my salary today: I am 23yrs old and still waging 27K maybe I should just go to US and try my fortune there I'm confident I got the skill so why not. But I can't just leave the philippines I've got things I treasure here which money can't simply buy :-D so maybe I stay a little bit more here. There were good offers at makati but that place equate to too much traffic I can tell you that since I've previously work there. Hehe really if you're getting old your also getting too much worries :-D. I just want to live a quite/peaceful life in the province like when I was young :-). BTW my province is Laguna I plan to teach at the University of the Philippines Los Banos after my retirement :-D. I want to serve the University which I am endebted to with my knowledge and happy memories.

Life at work

Friday, May 30, 2008

(0) Comments

Recently I've been staying at the office late because of work, most of the time 'till 12pm or greater sometimes at 5am in the morning well finally my body gave up and I caught a flue fortunately it didn't turn to fever :D... I've just realize that my OT's were discarded because i took a 1.5 day leave hahaha to take a peaceful rest... Oh, and still I'm not getting used to it :=). Finally we've managed to finish the globe IMS project and it's all up to the judges to give the verdict... And shortly after that the phase 2 of that project and the other one which is a travel portal that suddenly become rush :-)... And I'll really not get use to it... But what are my options several big companies are contacting me from Makati but I've already left that place (I've got no peace there :-), tons of snatchers, etc, and oh take note it was bombed recently and I was on the same mall :-) and I was also there when Triallanes fricked out :-) hahaha so I'll not consider that place anymore... And how about abroad... yes that's a good choice, right now I'm supposedly working in Japan if I didn't back out because of personal reasons :-)... Found someone work staying for hahaha what a timing eh :-) (Fushigi dayo ne :-))... Maybe, I'll just go back to the University to teach but I'm still to young hahaha... Hmmm... what if I get back there :-) I wonder if that's a good choice well I'll w8 'till the end of June and see what happens :-)...

Overtime

Saturday, May 10, 2008

(0) Comments

Here I am again at the office working overtime... alone hahaha oh well that's life. I hope I can finish this project once and for all so I can free up my time xD. BTW that Ericsson's IMS SDS4.0FDx plugin for eclipse was like a wild beast that's so hard to tame :D integrated with carbide to develop a location based application that'll be called in a dll. Of course since most java enabled phones doesn't have an api for this, that is JSR-179. But well I've managed to patched things up and here I am working smoothly after days of works.

Clue for the bug manually override the capabilities xD, used the appropriate emulators compatible with the device your testing and this one synchronized caps =)).

Wow, naruto's getting more interesting these days, I just wished it's title is "The Uchiha's" or something like that =)). Naruto's just an stupid add on to the show anyway hahaha. At least that was my thought...

SM Sta Rosa

Friday, May 02, 2008

(0) Comments

May 1, 2008 and it's what we (they) called Labor Day, well as usual march here march there the never ending quest of those ralliest against the government... But for the majority we don't care :-). I spend this holiday in a mall in Sta Rosa Laguna, shopping for things which I'll need the next days. By the way I brought a oil paint, maybe I'll try this one pretty interesting isn't it? Bought a cooler for my laptop and an LCD cover although we failed to fit it on my laptop screen then later throw it my gosh it's quite expensive :-(... It's small compared to the usual festival nevertheless, it's filled with interesting items, have a number of computer shops too with price cheaper compared to the usual ones :-), the reason why I bought my things here. Later this day she cooked sphagetti for us to eat, the less one taste good maybe because we didn't buy a liver spread :D. Then I washed my clothes it's not that much since it only sums up my 3 days shirts :-). Play DOTA then sleep.

Then today I've got changes from my project it's actually looking good lately the GUI and the functionalities :-)...

Buggy Installation

Wednesday, April 30, 2008

(0) Comments

Just yesterday I have a problem with the trial licensed that I'm using for my application which is the IMS-SDS4.0. I'm using licensed since we're only on a trial state of using this software redundant isn't it :-) forgive me hahaha. nway so I was forced to transfer my app in another unit and just when I though that everything would be as smoothly as before it was not I have one big problem.

First of all let me discuss my application which is an location eccentric application that deals with blogs, friends, ads on the same location... I am developing on a CDC enabled device SE P990i, although I've managed to create a CDC app using the ericsson's CDC eclipse plugin(java) that call's a dll to get the network information properties and I port it successfully in my IMS-SDS4.0 app... But unfortunately when I transfer the application in a new machine I've got java.lang.UnsatisfiedLinkError even though I've set up the machine just like the first. I've again tried compiling using the CDC plugin and it works but on SDS it did not... what I've concluded to be the cause of error is the line from the compiler which concerns the setting of capabilities it seems I can't add Location and NetworkServices... together... but using them on different application is no problem at all... my gosh what the heck is wrong with that plugin :-)... As of this moment I'm still debugging that problem :-).

Busy

Monday, April 28, 2008

(0) Comments

I was busy this last few days so on May 1 holiday I am planning to went somewhere else maybe and enjoy the sweet scent of vacation :D.

Bought a new Switch/HUB for apt.

Wednesday, April 16, 2008

(0) Comments

Yesterday I bought a new 8-port switch/hub which I will use... Obviously to try some client server applications and of course games hahaha wanna play DOTA? Next month we plan to get a smart bro for internet connection I just hope the modem type connection is fast cause it's the lowest price we can avail xD.

We are instructed to downpayment of about 4500php to own the usb modem that will connect to the internet.... we'll it's not cheap xD and then connection is about 30mins/10php like the rent in computer shops with the advantage that it's portable. We'll maybe we will buy a router late next month...

Delayed rnx

Wednesday, April 16, 2008

(0) Comments

hahaha at last everything is flowing smoothly no more technical issues and all are footprints :-). The last challenge in developing a cdc application is how you can make a good looking gui with so many limitations in java.awt 1.3 and of course the time xD. Oh well I hope I can finish this project cause at the same time I'm currently working with the web project which is a travel portal xD.

4*4*4*4*4*4 OVERTIME XD

Saturday, April 12, 2008

(0) Comments

You know what time is it 1:11AM and I'm here working no regrets though just taking notes hahahaha... It seems I'm having a TCP Connection problem in my CDC app that is deployed on SEP990i device. BTW I'm still using SDS4.0 ericsson's eclipse ims plugin.

March 29, 2008. I bought a new laptop

Monday, March 31, 2008

(0) Comments

Yeah my post is quite unsynchronized since I want to post older events.
Yeah your right the previous post was a lie :)) I forgot I got my laptop saturday then we went home together with her at our home she was shy but everything went right :-) Guess what happened :-) I can't put any more details :-)

March 28 Friday. Festival bought Laptop

Monday, March 31, 2008

(0) Comments

I was at the festival mall this day and bought a new laptop unit. It's quite cheap that's why I like it. The model is compaq presario c337tu it's not that high end though (an upgrade of this http://www.asianic.com.ph/product/compaq-presario-C733TU):
1GB Ram
256 Video Card (Intel GMA)
80GB HD
1.86GHz Intel Celeron
WiFi
Lan
Modem
and many more :-)

Unfortunately, it's Vista and of course I scrapped the crap:
Drivers I've got from here:
http://forums12.itrc.hp.com/service/forums/bizsupport/questionanswer.do?admit=109447627+1206944781764+28353475&threadId=1188739

and here:
http://www.zyxware.com/articles/2007/12/31/compaq-presario-c733tu-laptop-drivers-for-windows-xp

Thanks to them I can used my laptop well...

And oh I've used Windows Home Edition OEM with SP2 integrated else the SATA drive will not be installed. Don't want to install the SATA drive (XP press F6).

But if you manually want to install I found this similar problem:

Steps
http://komku.blogspot.com/2007/08/install-windows-xp-on-acer-aspire-4710.htm

SATA driver
http://h10025.www1.hp.com/ewfrf/wc/softwareList?os=228&lc=en&cc=us&product=3653205&dlc=en

A single line of code can make the difference

Monday, March 31, 2008

(0) Comments

I'm still on developing a java cdc application that will be integrated to JNI to call some native functions responsible in getting network informations. Developing this application I've used 2 eclipse plugin just to test if it is possible. BTW I know it is since I'm testing on SEP990i which is a CDC enabled phone.

Softwares:
0.) Carbide1.2 for the DLL
Plugins
1.) eclipse java-me with ericsson's cdc plugin
2.) IMS SDS4.0 from ericssom

Using Plugin1 I was successful in my objective. I got all the network information but before that see the code before this... I was busy debugging not my application but the plugin itself. Oh boy..

Using Plugin2 I'm 100% sure that my code works so here I am debugging again not my code but the plugin and luckily I got again this line:

rem if "%CAPS%" == "" set CAPS=NONE

I have a haunch that something is wrong here. And yes without failed the plugin continues to surprise me it's what we called a bug a bug that took my precious days away :((.

Well, I've just replace this line with
rem if "%CAPS%" == ""
set CAPS=ReadDeviceData+Location

Just comment the if, it's the source of evil within this plugin hahaha.

At last full scale development up ahead with my project.

BTW it's a location centric application that get's the cell id of the mobile user's, etc,etc.

See just one line of code can make your programming miserable and what's more it's not your code :)).

CDC, JNI, Network Information

Thursday, March 27, 2008

(0) Comments

After all these days finally I was able to obtain network information from a java CDC app using ericsson's eclipse plugin via JNI.
What went wrong was I keep on inspecting my code while the sad thing is my java CDC app needs a Location and ReadDeviceData capability but you couldn't blame me I've tried adding caps=Location+ReadDeviceData to the cdcproject.properties file and it didn't work out. Fortunately, a guy named Alain Bergevin told me that me error which was -46 (KErrPermissionDenied) means "... it was caused by calling an API while does not have the required capability. eg. for CTelephony::GetSubscriberId , it need ReadDeviceData capability. Pls check whether the capability is specified in MMP file and the developer certificate with such capability is needed when sign the sis." which forced me to scrutinized the cdc eclipse plugin... and so I've found this file:

%epocroot%epoc32\tools\ppro-custom-launcher\custom-app.bat

from this file I've changed this line:
if "%CAPS%" == "" set CAPS=NONE -> if "%CAPS%" == "" set CAPS=ReadDeviceData+Location

and that's it my project started working properly.

Oh boy it took me some time to get here :-D

CDC,

Thursday, March 27, 2008

(0) Comments

P990i, JNI, Network Info(Cell ID, Location Area Code), ete3rdparty.lib

Wednesday, March 26, 2008

(0) Comments

It seems it's impossible to get the network information such as Cell ID, LAC in java CDC using JNI it's because JNI doesn't implement Thread and even though I've created a CActiveScheduler object still all I can get from the lib is the IMEI information. I'm sure my code is working perfectly since it runs and return the network informations accurately in a Console Application. Now I have to resort to a Client/Server application just to get the network informations.

Tuesday, March 25, 2008

(0) Comments




What Edward Means



You are friendly, charming, and warm. You get along with almost everyone.

You work hard not to rock the boat. Your easy going attitude brings people together.

At times, you can be a little flaky and irresponsible. But for the important things, you pull it together.



You are balanced, orderly, and organized. You like your ducks in a row.

You are powerful and competent, especially in the workplace.

People can see you as stubborn and headstrong. You definitely have a dominant personality.



You are very charming... dangerously so. You have the potential to break a lot of hearts.

You know how what you want, how to get it, and that you will get it.

You have the power to rule the world. Let's hope you're a benevolent dictator!



You are usually the best at everything ... you strive for perfection.

You are confident, authoritative, and aggressive.

You have the classic "Type A" personality.



You are wild, crazy, and a huge rebel. You're always up to something.

You have a ton of energy, and most people can't handle you. You're very intense.

You definitely are a handful, and you're likely to get in trouble. But your kind of trouble is a lot of fun.

Long Weekend (Holyweek)

Tuesday, March 25, 2008

(0) Comments

It's been a while since I have almost 4 1/2 days of vacation and what I've done nothing special. Just spent the first day doing private business went back and forth from apt to my home to attend "Banal na Hapunan" and last Saturday I was able to attend at Carmona Locale.

During friday we plan to go somewhere called cause it's very hot that day so we decided to have some cold air in malls but unfortunately all were close went to Pavillion (Binan, Lagua); Walter (Carmona) but closed so we decided to buy some sphagetti stuffs from the ever reliable 7 eleven convenient store and just return home and then cooked and it taste so good.

Last Saturday we went to Festival Mall Alabang, shopping and enjoying ourselves (Gala Mode).
Sunday we've done nothing special :D.

Still I keep on asking myself, do those people really believe that God simply dies and live again in this season of the year? So what if Armageddon comes that day then there will be no God to save us? Or they simply follow the norms even though they understand nothing at all. Sorry :D. Simply it's just so hard to believe that God dies.

"CDC JNI P990i UIQ3"

Tuesday, March 18, 2008

(1) Comments

My CDC JNI Codes:
[code]
//.pkg
#{"eplDll DLL"},(0xAFFFFFFE),1,0,0
;Localised Vendor name
%{"eScience"}
;Unique Vendor name
:"edwardpantojalegaspi"
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\eplDll.dll" -"!:\sys\bin\eplDll.dll"

//bld.inf
PRJ_PLATFORMS
WINSCW GCCE
PRJ_EXPORTS
..\inc\eplDll.h
eplDll.def
PRJ_MMPFILES
eplDll.mmp

//definition file
EXPORTS
jni_lookup @ 1 NONAME

//mmp file
TARGET eplDll.dll
TARGETTYPE dll
UID 0x00000000 0xAFFFFFFE
USERINCLUDE ..\inc
SYSTEMINCLUDE \epoc32\include \epoc32\include\libc \Symbian\UIQ3SDK\Extensions\Sony_Ericsson_CDC_Platform_1\epoc32\include
SOURCEPATH ..\src
SOURCE eplDll.cpp
SOURCE eplDllDllMain.cpp LocationInfoNative.cpp lookup.cpp
//#endif
LIBRARY euser.lib estlib.lib Etel3rdParty.lib
CAPABILITY LocalServices Location NetworkServices ReadDeviceData ReadUserData UserEnvironment WriteDeviceData WriteUserData
//JNI related
NOSTRICTDEF
DEFFILE .\ eplDll.def
EXPORTUNFROZEN
MACRO J9EPOC32
#if defined(WINS)
MACRO J9X86
#endif

//java native
public static native String getIMEI();
public static native String getIMSI();
public static native String getAreaCode();
public static native String getOperatorName();
public static native String getCellID();
public static native String getCountryCode();
public static native String getNetworkID();
[/code]

CDC JNI P990i UIQ3

Monday, March 17, 2008

(0) Comments

After quite some time 3 days perhaps I was able to run my JNI application on P990i device. I will post the code next time :D. I will go home to cook for dinner tonight probably plenty dishes hahaha.... Sleepless nights are now gone... A new tomorrow is waiting. That sure was corny... :-)

CDC JNI P990i

Monday, March 17, 2008

(0) Comments

I was successful in running my JNI application in UIQ3 emulator however it failed when I deployed on my P990i device I wonder what's causing the problem. Again I might stay late but I will not go overtime I'm still tired :D. I wonder if anyone out there has succeeded in doing this kind of thing :D. Oh well the problem is there is less or almost no example or even a clear documentation at all, which makes it harder :D.

BTW I came from province this morning which is Laguna and the South Expressway from Calamba to Alabang is as always traffic hahahaha oh boy I wonder how much longer will I endure this environment :D. DPWH just keep on digging :D.

Again OT, J2ME CDC JNI

Friday, March 14, 2008

(0) Comments

Oh my I have an appointment today but here I am going overtime :-). It's because next week would be the pilot testing of our J2ME project for Wyeth standby for updates, while doing that I'm still researching on how I will run CDC JNI on my SE P990i device cause I'm having a hard time making it run while it perfectly run on my UIQ3 emulator... And tomorrow I will be on standby oh my my schedule just got worse this week :-) but I hope everything get wrap up.

My JNI error is the same as described here: http://developer.sonyericsson.com/message/106704
JNI working in emulator, crashes on phone with KERN-EXEC 3, it's amazing how I got here :-).

P990i CDC JNI

Friday, March 14, 2008

(0) Comments

Finally I was able to run my JNI sample on UIQ3 emulator thanks to this link

http://developer.uiq.com/devlib/uiq_31/SDKDocumentation/doc_source/doc_source/faqSDK/faq_0536.html(bug report)
http://developer.sonyericsson.com/thread.jspa?messageID=115603&tstart=0(JNI steps)

My CODES
[code]
class HelloWorld {
private native String print();
public static void main(String[] args) {
}
public String getString() {
return print();
}
static {
System.loadLibrary("Prompt");
}
}
//native implementation
#include
#include
#include "HelloWorld.h"
JNIEXPORT jstring JNICALL
Java_HelloWorld_print(JNIEnv *env, jobject obj) {
char *s;
s = "alf";
return (env)->NewStringUTF(s);
}
//lookup
#include
#include // Needed for strcmp

#include "HelloWorld.h"


#ifdef __cplusplus
extern "C" {
#endif

typedef void (*TFunc)();

typedef struct
{
char *token;
unsigned int procaddr;
} TABLE_ENTRY;

// lookup_table MUST be defined as 'const' or this file will cause a build error
// when comipling for the ARMI target
const TABLE_ENTRY lookup_table[]=
{
{ "Java_HelloWorld_print", (unsigned int) Java_HelloWorld_print },
};

// table_size MUST be defined as 'const' or this file will cause a build error
// when comipling for the ARMI target
const int table_size = sizeof(lookup_table) / sizeof(TABLE_ENTRY);


IMPORT_C TFunc jni_lookup(const char* aName);
EXPORT_C TFunc jni_lookup(const char* aName)
{
int res=0;
int mid=0;
int top=0;
int bottom=table_size-1;

// Loop while the number of the items left in the list is greater
// than 2. Each iteration will split the number of items left to search
// in half
while ((bottom - top) > 1) {
// This case handles the normal serach case where the number of
// items left to search is greater than 2
mid=(top+bottom)/2;
res=strcmp(aName,lookup_table[mid].token);
if (res==0) return((TFunc) lookup_table[mid].procaddr);
if (res>0) top=mid; else bottom=mid;
}

// If there are two items left in the list then the bottom item should be
// checked for a match
if (bottom != top) {
// Check the bottom item to see if it is a match
res=strcmp(aName,lookup_table[bottom].token);
if (res == 0) return ((TFunc) lookup_table[bottom].procaddr);
}

// Check the top item to see if it is a match
res=strcmp(aName,lookup_table[top].token);

if (res == 0) return ((TFunc) lookup_table[top].procaddr);

// Neither the top or bottom items were a match so the
// method must not exist in the file
return NULL;
}

#ifdef __cplusplus
}
#endif
//build
PRJ_PLATFORMS
gcce winscw

PRJ_EXPORTS
..\inc\Prompt.h

PRJ_MMPFILES
Prompt.mmp
//definition file
EXPORTS
jni_lookup @ 1 NONAME
//mmp
TARGET Prompt.dll
TARGETTYPE dll
UID 0x00000000 0x0A762D89

USERINCLUDE ..\inc
SYSTEMINCLUDE \epoc32\include \epoc32\include\libc

SOURCEPATH ..\src

SOURCE Prompt.cpp
SOURCE PromptDllMain.cpp HelloWorld.cpp lookup.cpp

//By default, the build tools look for the WINSCW def file in a BWINS directory
//(at the same level as the directory containing the mmp file),
//the GCC ARM def file in a BMARM directory, and the ARMV5 def file in a EABI directory.
//If def files are stored in these locations, the project files does not need to specify
//the location of the def files explicitly. If you want to store the def files in some other
//location, you will need to specify in the project file where the .def files are using
//the deffile keyword.

//The following commented out code shows how the build system uses the implicit
// location for defiles. To create the DEF files Choose Project > Freeze Exports from Carbide
// or run 'abld freeze' from the command-line
//#if defined (WINS)
// DEFFILE ..\bwins\Prompt.def
//#elif defined (GCC32)
// DEFFILE ..\bmarm\Prompt.def
//#else
// DEFFILE ..\eabi\Prompt.def
//#endif

nostrictdef

LIBRARY euser.lib estlib.lib

DEFFILE .\ exports.def
MACRO J9EPOC32
#if defined(WINS)
MACRO J9X86
#endif
EXPORTUNFROZEN
//pkg
#{"Prompt DLL"},(0x0A762D89),1,0,0


;Localised Vendor name
%{"Vendor-EN"}

;Unique Vendor name
:"Vendor"

"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\Prompt.dll" -"!:\system\libs\Prompt.dll"
[/code]

Taken from the site above:
It’s important that you use the CDC Java VM’s versions of these files,
that are distributed with the CDC Java SDK.extension.

1) Run "javah" on all your class-files with natives.

2) Run the "symexports.exe"-tool in a DOS-window.
This tool takes as input arguments all the javah-header
files and an output-file name and creates a .c-file which
has the dll lookup function.
note: symexports is bundled in the UIQ3 SDK

Using the sample-files from the zip-file, the syntax would be as follows:

symexports -h:file1.h -h:file2.h -out:lookup.c

This creates the lookup.c file.

3) The lookup.c file needs to be included as a source-file
with all your other native source-files in your *.mmp-file
that you use to build the Symbian dll. The line below shows this:
SOURCE lookup.c

4) You need to include the jni.h file in all source-files
with JNI natives. The jni.h includes the jniport.h file
which is also required.

5) You also need a def-file, e.g. exports.def.
Put it in your build directory.
It needs to have the following content:

EXPORTS
jni_lookup @ 1 NONAME

6) The .mmp file needs to have the following lines added to it:

DEFFILE .\ exports.def
MACRO J9EPOC32

NOSTRICTDEF

#if defined(WINS)
MACRO J9X86
#endif

EXPORTUNFROZEN

OT OT OT

Tuesday, March 11, 2008

(0) Comments

Here I am again working overtime... Oh well m J2ME application works fine in the emulator but failed on the device.. What it does is it posts n number of datas to the server, however it always fail...
[code]
public void run() {
for(int i = 0; i < n; i++) {
postData();
}
[/code]

Overtime....

Monday, March 10, 2008

(0) Comments

For the third straight office day.... I'm working overtime... :D

J2ME Alert->Alert, Form->Alert

Monday, March 10, 2008

(0) Comments

Well, well after almost 20 minutes of debugging I found out that you cannot make something like this form->alert->function->alert what a painful bug it is... My solution was simply creating a new Form so it becomes form->alert->function->form-> and fortunately it works catching the bugs :D.

J2ME RMS

Monday, March 10, 2008

(0) Comments

public void writeStringArray(String file, String[] strArr) throws Exception {
RecordStore rs = RecordStore.openRecordStore(file, true, RecordStore.AUTHMODE_PRIVATE, false);
ByteArrayOutputStream bos = null;
DataOutputStream dos = null;
for(int i = 0; i < strArr.length; i++) {
bos = new ByteArrayOutputStream();
dos = new DataOutputStream(bos);
dos.writeUTF(strArr[i]);
byte[] b = bos.toByteArray();
rs.addRecord(b, 0, b.length);
}
dos.close();
bos.close();

rs.closeRecordStore();
}

public boolean deleteRecords(String file, String strKeys[], boolean createFile) throws Exception {
RecordStore rs = RecordStore.openRecordStore(file, createFile, RecordStore.AUTHMODE_PRIVATE, createFile);

if(rs.getNumRecords() > 0) {
RecordEnumeration re = rs.enumerateRecords(null, null, true);
ByteArrayInputStream bis = null;
DataInputStream dis = null;
for(int i = 0; i < strKeys.length; i++) {
while(re.hasNextElement()) {
int id = re.nextRecordId();
bis = new ByteArrayInputStream(rs.getRecord(id));
dis = new DataInputStream(bis);
bis = new ByteArrayInputStream(rs.getRecord(id));
dis = new DataInputStream(bis);
String strRecord = dis.readUTF();
if(strRecord.equals(strKeys[i])) {
System.out.println(strKeys[i]);
rs.deleteRecord(id);
break;
}
}
}
dis.close();
bis.close();
}
rs.closeRecordStore();

return true;
}

public String[] getStringArray(String file, boolean createFile) throws Exception {
RecordStore rs = RecordStore.openRecordStore(file, createFile, RecordStore.AUTHMODE_PRIVATE, createFile);
String strArr[] = null;
int ctr = 0;

if(rs.getNumRecords() > 0) {
RecordEnumeration re = rs.enumerateRecords(null, this, true);

strArr = new String[re.numRecords()];
ByteArrayInputStream bis = null;
DataInputStream dis = null;
while(re.hasNextElement()) {
int id = re.nextRecordId();
bis = new ByteArrayInputStream(rs.getRecord(id));
dis = new DataInputStream(bis);
bis = new ByteArrayInputStream(rs.getRecord(id));
dis = new DataInputStream(bis);
strArr[ctr++] = dis.readUTF();
}
dis.close();
bis.close();
}
rs.closeRecordStore();

return strArr;
}

J2ME RMS, HttpConnection

Monday, March 10, 2008

(0) Comments

Last week we finished a big part of our J2ME project which is a commercial application that will cater Malls for their mobile inventory of items using low end phones. We are successful in integrating my Mobile client with the host server. What we did was post data from mobile to host, however this morning I found a strange problem my alert that will tell me if my post works fine did not alert! So I was busy debugging many of my codes try implementing several threads unluckily I was unable to solve the problem. Well this lunch I've noticed a little line space and I was so sure that it was a newline fortunately it was just a host misq for there was a newline inserted in my expected response unfortunately it took my 2 hours :D. Part of the codes:
[code]
Thread deadLock = new Thread(new Runnable() {
String strReply = "";
public void run() {
WaitCanvas cWait = new WaitCanvas();
HttpConnection c = null;
InputStream is = null;
midlet.SetDisplay(cWait);
try {
int rc;
c = (HttpConnection)Connector.open(Settings.Post_Url + strParams);
c.setRequestMethod(HttpConnection.POST);
c.setRequestProperty("If-Modified-Since", "29 Oct 1999 19:43:31 GMT");
c.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");
c.setRequestProperty("Content-Language", "en-US");
rc = c.getResponseCode();
if (rc != HttpConnection.HTTP_OK) {
Alert a = new Alert("Error", "Connection to host failed.", null, AlertType.ERROR);
a.setTimeout(Alert.FOREVER);
a.addCommand(cmdBack);
a.setCommandListener(new MyCommandListener());
midlet.SetDisplay(a);
}
is = c.openInputStream();
int len = (int)c.getLength();
if (len > 0) {
int actual = 0;
int bytesread = 0 ;
byte[] data = new byte[len];
while ((bytesread != len) && (actual != -1)) {
actual = is.read(data, bytesread, len - bytesread);
bytesread += actual;
}                 
strReply = new String(data);
}        
} catch(Exception e) {
//do something here
} finally {
try {
if (is != null)
is.close();
if (c != null)
c.close();
} catch(Exception e) { }
}
if(strReply.equals("1")) {
//do something here
} else if(strReply.equals("0")){
//do something here
} else if(strReply.equals("2")){
//do something here
}
}
});
deadLock.start();
[/code]

Project ot the day...

Friday, March 07, 2008

(0) Comments

Today is the deadline for one of my project which is a mobile tool for Wyeth Philippines well we manage to wrap everthing up cosidering that we've stayed to late last night.

Anyway there was something today. I was supposed to leave this country for Japan last December but I backout hoping there are something more that this poor country can offer me something valuable than money and so I thought it might be worth it so why not give it a try then, but this morning although it's not really somebody's fault when that thing said that she is leaving with a happy tone I felt something just hit that part inside me. Well I've always ask that thing to go with me together abroad but with a lonesome thing she always replied that she's not prepared and now she might actually leave by herself leaving me alone.... And so I said to myself whatever I'll drive again alone... Yes there's always happiness in being alone...

:)

GLOBE IMS, ctelephony, etel3rdparty, j2me, travel portal :D

Thursday, March 06, 2008

(0) Comments

Our company recently join the GLOBE IMS Challenge which focuses on using IMS technology on mobile. Many things are possible using Ericsson's SDS4 SDK such as the connectivity between different devices from mobile to TV to PS2 it's really amazing. Unfortunately this technology is new in it's nature limiting the developer like me to what we can develop. Its ericsson's  so target mobile are also ericsson's and we are advised to use P990i, P1 etc. SJP3.4 I think which doesn't have Location API such as JP7.

Now, the main module of our project will use Location API so I was force to use C++ for Symbian Programming using the ctelephony class from etel3rdparty.lib. I was successful in making getting the Location data in Symbian such as Cell ID, Location Area Code, etc. However, my main problem right now is how will I compile the DLL in such a way that I can call it in a java code using JNI which, luckily is supported by most P990i phones. I've tried JNI in windows however, I'm not sure about it's compilation in mobile.

Well, for me to not forget my code here it is :D
[code]
#ifndef SYSTEMMANAGER_H
#define SYSTEMMANAGER_H

#include // For CActive, link against: euser.lib
#include // For RTimer, link against: euser.lib

#include

class CSystemManager : public CActive
{
public:
typedef enum {EHandsetIMEI, EHandsetIMSI, EHandsetNetworkInfo } InfoType;
public:
// Cancel and destroy
~CSystemManager();

// Two-phased constructor.
static CSystemManager* NewL();

// Two-phased constructor.
static CSystemManager* NewLC();

public: // New functions
// Function for making the initial request
void StartL();
TDesC& GetIMEI();
TDesC& GetIMSI();
TUint GetLocationAreaCode();
TUint GetCellID();
TDesC& GetOperatorName();
TDesC& GetCountryCode();
TDesC& GetNetworkID();
private:
// C++ constructor
CSystemManager();
// Second-phase constructor
void ConstructL();
private: // From CActive
// Handle completion
void RunL();
// How to cancel me
void DoCancel();
// Override to handle leaves from RunL(). Default implementation causes
// the active scheduler to panic.
TInt RunError( TInt aError );

private:
enum TSystemManagerState
{
EUninitialized, // Uninitialized
EInitialized, // Initalized
EError // Error condition
};
enum TGetInfoState
{
       EStart = 1,
       EGetPhoneInfo,
       EDone
};
private:
TInt iState; // State of the active object
RTimer iTimer; // Provides async timing service

InfoType iPhoneInfoType;
CTelephony* iTelephony;
CTelephony::TPhoneIdV1 iPhoneIdV1;
    CTelephony::TPhoneIdV1Pckg iPhoneIdV1Pckg;
    
    CTelephony::TSubscriberIdV1 iSubscriberIdV1;
    CTelephony::TSubscriberIdV1Pckg iSubscriberIdV1Pckg;
    
    CTelephony::TNetworkInfoV1 iNetworkInfoV1;
    CTelephony::TNetworkInfoV1Pckg iNetworkInfoV1Pckg;
    
    CActiveSchedulerWait iActiveSchedulerWait;
    
    TBuf iIMEI;
    TBuf iModelNumber;
    TBuf iIMSI;        
    TUint iLocationAreaCode;
    TUint iCellId;
    TBuf<16> iOperatorName;
    TBuf<4> iCountryCode;
    TBuf<8> iNetworkId;
};

#endif // SYSTEMMANAGER_H

#include
#include
#include
#include
#include
#include

#include "SystemManager.h"

CSystemManager::CSystemManager () : CActive(EPriorityStandard), iPhoneInfoType(EHandsetIMEI),
iState(EStart),
iTelephony(NULL),
iSubscriberIdV1Pckg(iSubscriberIdV1),
iPhoneIdV1Pckg(iPhoneIdV1),
iNetworkInfoV1Pckg(iNetworkInfoV1) { }

CSystemManager* CSystemManager::NewLC()
{
CSystemManager* self = new ( ELeave ) CSystemManager();
CleanupStack::PushL( self );
self->ConstructL();
return self;
}

CSystemManager* CSystemManager::NewL()
{
CSystemManager* self = CSystemManager::NewLC();
CleanupStack::Pop(); // self;
return self;
}

void CSystemManager::ConstructL()
{
User::LeaveIfError( iTimer.CreateLocal() ); // Initialize timer
CActiveScheduler::Add( this ); // Add to scheduler
iTelephony = CTelephony::NewL();
}

CSystemManager::~CSystemManager()
{
Cancel(); // Cancel any request, if outstanding
delete iTelephony;
iTimer.Close(); // Destroy the RTimer object
// Delete instance variables if any
}

void CSystemManager::DoCancel()
{
switch(iPhoneInfoType)
{
case EHandsetIMEI: 
iTelephony->CancelAsync(CTelephony::EGetPhoneIdCancel);
break;
case EHandsetIMSI:
iTelephony->CancelAsync(CTelephony::EGetSubscriberIdCancel);
break;
default:
iTelephony->CancelAsync(CTelephony::EGetCurrentNetworkInfoCancel);
break;
}
}

void CSystemManager::StartL()
{
Cancel(); // Cancel any request, just to be sure
//iState = EUninitialized;
//iTimer.After( iStatus, aDelay ); // Set for later
iState = EGetPhoneInfo;
switch(iPhoneInfoType)
{
case EHandsetIMEI:
{
iTelephony->GetPhoneId(iStatus, iPhoneIdV1Pckg);
break;
}
case EHandsetIMSI:
{
iTelephony->GetSubscriberId(iStatus, iSubscriberIdV1Pckg);

break;
}
case EHandsetNetworkInfo:
{
iTelephony->GetCurrentNetworkInfo(iStatus, iNetworkInfoV1Pckg);
break;
}
}
SetActive(); 
iActiveSchedulerWait.Start();
}

void CSystemManager::RunL()
{
iState = EDone;
if ( iActiveSchedulerWait.IsStarted() )
{
iActiveSchedulerWait.AsyncStop();
if(iStatus == KErrNone)
{
switch(iPhoneInfoType)
{
case EHandsetIMEI:
{
iIMEI = iPhoneIdV1.iSerialNumber;
}
break;
case EHandsetIMSI:
{
iIMSI = iSubscriberIdV1.iSubscriberId;
}
break;
case EHandsetNetworkInfo:
{
iLocationAreaCode = iNetworkInfoV1.iLocationAreaCode;
iCellId = iNetworkInfoV1.iCellId;
iOperatorName = iNetworkInfoV1.iLongName;
iCountryCode = iNetworkInfoV1.iCountryCode;
iNetworkId = iNetworkInfoV1.iNetworkId;
}
break;
}
}
else
{
// Do nothing
}
}
}

TDesC& CSystemManager::GetIMEI()
{
iPhoneInfoType = EHandsetIMEI;
iIMEI.Zero();

StartL();
return iIMEI;
}

TDesC& CSystemManager::GetIMSI()
{
iPhoneInfoType = EHandsetIMSI;
iIMSI.Zero();

StartL();
return iIMSI;
}

TUint CSystemManager::GetLocationAreaCode() {
iPhoneInfoType = EHandsetNetworkInfo;
iLocationAreaCode = 0;
StartL();
return iLocationAreaCode;
}

TUint CSystemManager::GetCellID() {
iPhoneInfoType = EHandsetNetworkInfo;
iCellId = 0;
StartL();
return iCellId;
}

TDesC& CSystemManager::GetOperatorName()
{
iPhoneInfoType = EHandsetNetworkInfo;
iOperatorName.Zero();

StartL();
return iOperatorName;
}

TDesC& CSystemManager::GetCountryCode()
{
iPhoneInfoType = EHandsetNetworkInfo;
iCountryCode.Zero();

StartL();
return iCountryCode;
}

TDesC& CSystemManager::GetNetworkID()
{
iPhoneInfoType = EHandsetNetworkInfo;
iNetworkId.Zero();

StartL();
return iNetworkId;
}

TInt CSystemManager::RunError( TInt aError )
{
return aError;
}
[/code]

Actually parts of the code are from sonyericsson and developer.symbian and the uiq 3 documentation the .chm file. I've just paste them together :-).

Currently, I am doing 2 other major projects in short I am really busy and I haven't touch this project for days. For record the other 2 are: 
1.) a Travel web Portal wherein you can book your flights online (search for flights and it's info - how much, when, etc.)
.) J2ME project that will cater the department stores, items' inventory will now be inventoried though mobile using GPRS so a not so very high model phone is required.:D

See I was quite versatile and now I'm writing this 'coz my head is about to explode buwahahaha....

CDC Application

Friday, February 29, 2008

(0) Comments

Continue to RND if I will be able to run a CDC application on my P990i so I can implement a JNI to call my C++ native functions getting the Network Information such as Cell ID, Country Code, Mobile Subscriber etc.

How I wish this phone just supports JP-7 so I can just get the Network Information from java.property...

My first public post :-D

Thursday, February 28, 2008

(0) Comments

Well I will be busy today doing some JNI stuff. Thanks to the limitation on Mobile OS I wasn't able to get what I want using java API so now I am force to write my code in C++ and call it in java. Fortunately my phone which is Sony Ericsson P990i is bundled with SJP3.4 meaning it's like CDC1.0 or J2SE1.3. So I just need minimal support from C++. But still it's a pain :-).

After several hours of working.. I was able to run JNI on my machine however I still failed when I try to compile on CDC. It seems I'm getting error creating dlls. Oh well that's it for today :-).

Contributors