Tải bản đầy đủ (.pdf) (564 trang)

OReilly blackberry hacks oct 2005 ISBN 0596101155

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (7.14 MB, 564 trang )

BlackBerryHacks
ByDaveMabe
...............................................
Publisher:O'Reilly
PubDate:October2005
ISBN:0-596-10115-5
Pages:328

TableofContents|Index

TheBlackBerryhasbecomeaninvaluabletoolforthoseofuswhoneedtostay
connectedandintheloop.Butmostpeopletakeadvantageofonlyafewfeaturesthat
thismarvelouscommunicationsdeviceoffers.Whatifyoucoulddomuchmorewith
yourBlackBerrythanjustwebsurfingandemail?
BlackBerryHackswillenhanceyourmobilecomputingwithgreattipsandtricks.
You'lllearnthattheBlackBerryiscapableofthingsyouneverthoughtpossible,and
you'lllearnhowtomakeitanevenbetteremailandwebworkhorse:
Getthemostoutofthebuilt-inapplications
Takecontrolofemailwithfilters,searches,andmore
Revupyourmobilegaming--whetheryou'reanarcadeaddictorpokerpro
Browsetheweb,chatoverIM,andkeepupwithnewsandweblogs
Workwithofficedocuments,spellcheckyourmessages,andsendfaxes
Becomemoresecure,lockdownyourBlackBerryandstashsecureinformation
somewheresafe
ManageandmonitortheBlackBerryEnterpriseServer(BES)andMobileData
System(MDS)
CreatewebsitesthatlookgreatonaBlackBerry
DevelopanddeployBlackBerryapplications


Whetheryouneedtoscheduleameetingfromatradeshowfloor,confirmyourchild's


nextplaydateatthepark,orjustfindtheshowtimesandsecuremovieticketswhile
atdinner,thisbookhelpsyouusetheremarkableBlackBerrytostayintouchandinthe-know--nomatterwhereyouareorwhereyougo.


BlackBerryHacks
ByDaveMabe
...............................................
Publisher:O'Reilly
PubDate:October2005
ISBN:0-596-10115-5
Pages:328

TableofContents|Index



Copyright



Credits



AbouttheAuthor



Contributors




Acknowledgments



Preface



WhyBlackBerryHacks?



HowtoUseThisBook



HowThisBookIsOrganized



WheretoLearnMore



Conventions




UsingCodeExamples



HowtoContactUs




SafariEnabled
Chapter1.UsingYourBlackBerry



Section1.1.Hacks121:Introduction



Hack1.ChooseaDataPlan



Hack2.CutandPasteText



Hack3.TaketheEasyWayOutwithShortcuts




Hack4.SyncYourCalendarovertheAir



Hack5.OrganizetheIconsontheHomeScreen



Hack6.RunProgramsintheBackground



Hack7.TypeLessUsingAutoText



Hack8.ViewtheEventLog



Hack9.UseYourBlackBerryasaModem



Hack10.MaximizeYourBatteryLife



Hack11.OptimizeYourBlackBerryBrowser




Hack12.MaximizeYourFreeMemory



Hack13.GetThingsDonewiththeBlackBerry




Hack14.CreateYourOwnPolyphonicRingtones



Hack15.StoreaPhotoCollectiononYourDevice



Hack16.TurnYourComputerintoaSpeakerphone



Hack17.DisplaySignalStrengthasaNumber



Hack18.DialLikeaPro




Hack19.PutNotesintheCallLog



Hack20.UpgradeYourHandheldSoftware




Hack21.TypeonaBluetoothWirelessKeyboard
Chapter2.Email



Section2.1.Hacks2231:Introduction



Hack22.ClearYourInboxQuickly



Hack23.CreatePersistentCustomSearches



Hack24.FilterMessagesbyType




Hack25.UseanAutoSignature



Hack26.SendaMessagetoaGroupofUsers



Hack27.SendaMessageDirectlytoAnotherBlackBerryUser



Hack28.SendandReceiveS/MIMEEncryptedEmails



Hack29.SixWaystoCheckYourGmail



Hack30.UseFilterstoControlMessageDelivery




Hack31.GetMailfromMultipleAccounts
Chapter3.Games




Section3.1.Hacks3236:Introduction



Hack32.PlayTexasHold'Em



Hack33.PlayChess



Hack34.PlayFreeJavaGames



Hack35.PlayFreeMagmicGames



Hack36.PlayZorkonYourBlackBerry



Chapter4.TheInternetandOtherNetworks



Section4.1.Hacks3750:Introduction




Hack37.ConfigureYourBlackBerryforInternetAccess



Hack38.BlogfromYourBlackBerry



Hack39.ReadNewsandBlogsontheBlackBerry



Hack40.ControlAnotherComputerRemotely



Hack41.UseGoogleMaps



Hack42.TelnetorSSHtoInternetServers



Hack43.TelnetorSSHtoIntranetServers




Hack44.ChatoverIM



Hack45.ChatoverIRC



Hack46.BookmarkItondel.icio.us



Hack47.UseBackpackasYourMobileWorkspace



Hack48.UseGmailasaSpam-Catcher



Hack49.UseYourBlackBerryBrowserto…





Hack50.FindYourWaywithaGPS
Chapter5.FreePrograms
Section5.1.Hacks5159:Introduction





Hack51.GetFastandFreeMobileSearch



Hack52.StoreYourPasswordsSecurely



Hack53.SkinYourDevice



Hack54.RunaStressTest



Hack55.InstallaPlanetarium



Hack56.ReinInYourBacklight



Hack57.UseMultipleReply-toAddresses




Hack58.ShopAmazon.com



Hack59.ManageYoureBayAuctions



Chapter6.SharewareApps



Hacks6071:Introduction



Hack60.DisplayaBlackBerryTodayView



Hack61.SyncYourBlackBerrytoYourMac



Hack62.SendVoiceEmailsfromYourDevice




Hack63.FaxfromYourBlackBerry



Hack64.SyncMemosovertheAirWithoutaBES



Hack65.SpellcheckOutgoingMessages



Hack66.TryaThird-PartyWebBrowser



Hack67.TryAnotherEmailProgram



Hack68.EditOfficeDocuments



Hack69.DisplayaSlideshow



Hack70.GetReal-TimeStockQuotesandCharts





Hack71.TrackYourFitness
Chapter7.BESAdministration



Section7.1.Hacks7284:Introduction



Hack72.AddUserstotheBESinBulk



Hack73.LockDownYourBlackBerry



Hack74.TestYourSRPConnection



Hack75.SendanAlertWhenYourSRPIsDown



Hack76.PingaUser'sBlackBerry




Hack77.TrackMessageDeliveryTime



Hack78.CreateAlertsforImportantUsers



Hack79.MovetheAttachmentService



Hack80.MonitorAttachmentUsage



Hack81.ExportUserStatstoaTextFile



Hack82.CreateaWebInterfaceforUserAdministration



Hack83.SetOwnerInfoforAllDevices





Hack84.QuerytheBES4.0Database
Chapter8.TheWebandMDS



Section8.1.Hacks8593:Introduction



Hack85.ControlAccesstoCertainSites



Hack86.TrackMDSHTTPRequests



Hack87.DetectBlackBerryBrowserRequeststheRightWay



Hack88.MakeYourWebSitesBlackBerryFriendly



Hack89.BrowseWMLfromYourDesktop





Hack90.CreateaSimplePushApplication



Hack91.DeleteaPushApplication



Hack92.PushInstallApplications



Hack93.SimulateAnyBlackBerry



Chapter9.ApplicationDevelopment



Section9.1.Hacks94100:Introduction



Hack94.CreateHTTPConnections



Hack95.CreateaSimpleStockQuoteApplication




Hack96.IntegratetheBrowserintoaJavaApp



Hack97.DeployBlackBerryApplications



Hack98.SignYourCODFiles



Hack99.ControlBlackBerryApplicationsintheEnterprise



Hack100.EnsureYourAppIsPlacedFirstontheHomeScreen



Colophon



Index



Copyright©2006O'ReillyMedia,Inc.Allrightsreserved.
PrintedintheUnitedStatesofAmerica.
PublishedbyO'ReillyMedia,Inc.,1005GravensteinHighwayNorth,
Sebastopol,CA95472.
O'Reillybooksmaybepurchasedforeducational,business,orsalespromotional
use.Onlineeditionsarealsoavailableformosttitles(safari.oreilly.com).For
moreinformation,contactourcorporate/institutionalsalesdepartment:(800)
998-9938or
Table
Editor:

BrianJepson

ProductionEditor:

JamiePeppard

SeriesEditor:

RaelDornfest

CoverDesigner:

MarciaFriedman

ExecutiveEditor:

DaleDougherty

InteriorDesigner:


DavidFutato

PrintingHistory:



October2005:

FirstEdition.

NutshellHandbook,theNutshellHandbooklogo,andtheO'Reillylogoare
registeredtrademarksofO'ReillyMedia,Inc.TheHacksseriesdesignations,
BlackBerryHacks,andrelatedtradedressaretrademarksofO'ReillyMedia,Inc.
RIM,ResearchinMotion,BlackBerry,andallBlackBerry-basedtrademarksand
logosaretrademarksorregisteredtrademarksofResearchinMotionLimitedin
theUnitedStatesandothercountries.O'ReillyMedia,Inc.isindependentof
ResearchinMotionLimitedanditspartners,affiliates,distributors,licensors,
andlicensees.


Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheir
productsareclaimedastrademarks.Wherethosedesignationsappearinthis
book,andO'ReillyMedia,Inc.wasawareofatrademarkclaim,thedesignations
havebeenprintedincapsorinitialcaps.
Whileeveryprecautionhasbeentakeninthepreparationofthisbook,the
publisherandauthorassumenoresponsibilityforerrorsoromissions,orfor
damagesresultingfromtheuseoftheinformationcontainedherein.
Smallprint:Thetechnologiesdiscussedinthispublication,thelimitationson
thesetechnologiesthattechnologyandcontentownersseektoimpose,andthe

lawsactuallylimitingtheuseofthesetechnologiesareconstantlychanging.
Thus,someofthehacksdescribedinthispublicationmaynotwork,maycause
unintendedharmtosystemsonwhichtheyareused,ormaynotbeconsistent
withapplicableuseragreements.Youruseofthesehacksisatyourownrisk,and
O'ReillyMedia,Inc.disclaimsresponsibilityforanydamageorexpense
resultingfromtheiruse.Inanyevent,youshouldtakecarethatyouruseofthese
hacksdoesnotviolateanyapplicablelaws,includingcopyrightlaws.
ThisbookusesRepKover™,adurableandflexiblelay-flatbinding.
ISBN:0-596-10115-5
[M]


Credits
AbouttheAuthor
Contributors
Acknowledgments


AbouttheAuthor
DaveMabe()isanaccomplishedandlargelyselftaughtengineerandnowawriterwhostrivestocreateasimple,elegantsolution
toacomplexproblem.DavehasworkedatAT&Tinthecommunications
industryforeightyearsandhasworkedwithBlackBerrydevicesforalmostfive.
Alwayslookingtosaveafewkeystrokesandmouseclicks,Davehasautomated
countlessbusinessprocessesforFortune500companies.Heisthekindof
personwhowouldratherspendseveralhoursinventinganautomatedsolution
thanspendafewmonotonousmomentseachdayperformingamenialtask.He
fancieshimselfaproficientPerlprogrammerandwouldlovetoseePerlrunning
onaBlackBerryoneday.Daveenjoystinkeringwiththelatestgadgetsand
software,bothclosedandopensource.Hehasauthoredandcontributedto
severaltechnology-relatedpublications.

Whennotworkingoncomputer-orientedstuff,you'relikelytoseeDaverunning
ontheroadsandtrails(mostlytrails!)ofChapelHill,wherehegraduatedwitha
BSinMathematicalSciences,specializinginOperationsResearch.Although
quiteabitslowerthantheglorydaysofcollegerunningatUNC,hecanstillleg
outadecent10K.DavelivesinChapelHill,NorthCarolinawithhisthree
energeticdaughters,SarahJane,Rosemary,andLizzie.Dave'srunningiseasily
overshadowedbythatofhiswife,JoanNesbitMabe
(),whoisatalentedrunner,writer,andpublic
speaker,whorepresentedtheUnitedStatesinthe1996OlympicGamesin
Atlanta.Notbeingthetechietype,sheisstillnotexactlysurewhatDavedoes
foraliving,butenjoysherPerl-automatedcupofcoffeeeachmorning
nonetheless.


Contributors
Thefollowingpeoplecontributedtheirtime,writing,hacks,andknowledge
towardthewritingofthisbook:
Byday,PhilBogleiscofounderandchieftechnologyofficerofJobster
(),awebservicethathelpscompaniestargetand
connectwithpassivejobseekers,whileenablingthebestcandidatestostand
outfromthepackandgetnoticed.Bynight,Philisagentlemancoderand
authorofseveralfreeBlackBerryapplications,includingBerry411local
search.Hehasaweblogat.
PaulDumaisiscurrentlyvicepresidentofproductdevelopmentatIdokorro
Mobile,theleaderinmobilenetworkadministrationsoftware.Paulisthe
creativeandtechnicalforcebehindIdokorro'sproducts,MobileAdminand
MobileSSH.PriortoIdokorro,Paulcreatedaworld-classbugtracking
softwarethatwasacquiredbyMKSIncandbrandedChangeIntegrity.Paul
hasalsoheldpositionsasaJavadeveloperatSunandCorel.
JeffGreenhutisfounderandpresidentofsomedevelopersinc.

(),aproviderofmobileapplicationsforthe
BlackBerry.AftergraduatingfromtheStateUniversityofNewYorkat
BinghamtonwithaNationalMeritScholarship,Jeffhasbuiltflight
simulators,storagesolutions,andaccountingsoftware.Whennotworking
withcomputers,Jeffcantypicallybefoundworkingwithcomputers,
playingicehockey,orfloatingonthelakewithBlackBerryinhand.Jeffis
married,hastwoyounggirls,andlivesintheAtlanta,Georgiaarea.
BrianJepsonisanO'Reillyeditor,programmer,andcoauthorofMacOSX
TigerforUnixGeeksandLinuxUnwired.He'salsoavolunteersystems
administratorandall-aroundgeekforAS220(),a
nonprofitartscenterinProvidence,RhodeIsland.AS220givesRhode
Islandartistsuncensoredandunjuriedforumsfortheirwork.Theseforums
includegalleries,performancespace,andpublications.Brianseestoitthat
technology,especiallyfreesoftware,supportsthatmission.


ShariKornbergisasoftwareengineeratAT&T,responsibleforengineering
andsupportoftheExchangeemail(50,000users)andBlack-Berry
platforms.Shedesigned,architected,andimplementedAT&T'sBlackBerry
infrastructure.Shariwasalsothetechnicalleadfortherecentmigration
efforttoExchange2003.SharibeganherITcareeratAT&Tover25years
agoandhasaBAincomputersciencefromQueensCollege,City
UniversityofNewYork.Inhersparetime,sheenjoysmusic,theater,travel,
andspendingtimewithherthreesons,Jeffrey,Alex,andDavid.Youcan
reachherat
JasonLamisawirelessandopensourcedeveloperenthusiastwhoenjoys
creatingsynergyandsharingknowledgeinthesoftwaredevelopment
world.AsseniorwirelessdeveloperatQuoteMediaInc
()heleadsthedevelopmentofQuotestream
Wireless,afinancialwirelessstreamingapplication.Inhissparetime,he

contributestoopensourceprojectsandonlinetutorials/articles.Oneofhis
significantcontributionsishisopensourcebookJ2ME&Gaming,
().Tolearnmoreabouthim,visithis
personalsiteat.
R.EmoryLundberglivesinProvidence,RhodeIsland,withhiswife,
Elizabeth,andachubbycalicocatnamedEcho(1).Byday,heappliesninja
tacticstoerrantpacketsforVeriSign'sexcellentManagedSecurityServices
team,andbynight,hewritesaboutmobiletechnologyandtinkerswith
gadgets.Hewillonedaybesurvivedbyhismotorscootersandanexquisite
collectionofmobilephones.
MarkRejhonworksatIdokorroInc.()andisa
moderaterofBlackBerryForumsat.
Hehasapersonalwebsiteat.


Acknowledgments
Thisbookcouldn'thavebeenwrittenwithoutthegenerosityofthecontributors
andthehelpfulguidanceofmywonderfuleditor,BrianJepson.Brian'sgentle
supervisionwasreassuringthroughtheentireprocessandhealwaysprovideda
quickanswerwhenIhadaquestion.Thanks,Brian!
Ihavetothankmywifeandbestfriend,Joan,andmydaughterswhotolerated
(andsometimescelebrated?)myfrequentabsenceasthisbookwasformed.They
areasmuchapartofthisbookasIam,andIwillforeverbegratefulfortheir
sacrifice.
I'dalsoliketothankmyextendedfamilyandfriends,especiallymymomand
dadforraisingmeandremainingtwoofmyclosestfriendshavefunwiththose
newBlackBerrys!
Manyofthehackscouldn'thavebeenconceivedorwrittenwithoutthe
generosityofLorenBeckermanofCingularWirelesswhosteppeduptotheplate
toprovideaBlackBerryandbest-in-classwirelessservicethroughoutthewriting

ofthisbook.
ThankstoVictoriaBerry,RachaelBabcock,andChristopherHerstine(allfrom
ResearchInMotion)whocontributedresources,guidance,andcontactstoward
thisproject.
I'dberemissifIdidn'tacknowledgethesignificanceofRobertKernofTIPS
TechnicalPublishing,Inc.(Histireless
efforthelpedshapethisprojectfromthebeginning.Bob,Ihopetoseeyouonthe
trailssoon!


Preface
TheBlackBerryhascomefromrelativeobscuritytoomnipresenceinavery
shortamountoftime.HowwasResearchInMotion,arelativelysmallCanadian
company,abletostealthethunderfromthedominantplayersinthehandheld
arenaandrevivewhatwasbecomingalacklustermarket?TheInternet'soriginal
killerapp:email.ForyearsnohandheldcouldmatchtheBlackBerry'sknackfor
email.FromthesmallbutusableQWERTYkeyboardtothepushtechnology
thatdeliversemailtoadeviceasit'sreceived,BlackBerryhasreachedalevelto
whicheventhelargestplayersintheindustrymustscrambletocatchup.
Meanwhile,RIMisintentonconqueringotheraspectsofthemobileuser
experiencesuchaswebbrowsingandsecurecorporatedataaccess.RIM
continuestopourimprovementsnotonlyintothedeviceitself,buttheentire
BlackBerryplatform.EveryonefromtheendusertotheBlackBerry
administratortothedeveloperwillfindconveniencesintheBlackBerrythat
don'texistonotherplatforms.Inthisbook,you'llfindcleverusesforsomeof
theseenhancementsandnewtricksforusingsomefeaturesthathavebeenthere
fromthebeginning.


WhyBlackBerryHacks?

Thetermhackinghasabadreputationinthepress.Theyuseittorefertothose
whobreakintosystemsorwreakhavocwithcomputersastheirweapon.Among
peoplewhowritecode,though,thetermhackreferstoa"quick-and-dirty"
solutiontoaproblem,oracleverwaytogetsomethingdone.Andtheterm
hackeristakenverymuchasacompliment,referringtosomeoneasbeing
creative,havingthetechnicalchopstogetthingsdone.TheHacksseriesisan
attempttoreclaimtheword,documentthegoodwayspeoplearehacking,and
passthehackerethicofcreativeparticipationontotheuninitiated.Seeinghow
othersapproachsystemsandproblemsisoftenthequickestwaytolearnabouta
newtechnology.
TheBlackBerryisripewithopportunitiesforthehackerinallofus.Justthesize
ofthekeyboardandscreenrequiredRIMtobuildhacksintothedevicetomake
itusablefortheaverageperson.Thereareaslewofhacksforthebeginner,but
eventhemostadvancedpoweruserwillfindjuicynuggetstoincorporateinto
dailyuse.


HowtoUseThisBook
Youcanreadthisbookfromcovertocoverifyoulike,buteachhackstandson
itsown,sofeelfreetobrowseandjumptothedifferentsectionsthatinterestyou
most.Ifthere'saprerequisiteyouneedtoknowabout,across-referencewill
guideyoutotherighthack.


HowThisBookIsOrganized
Thehacksinthisbookvarybytypeandsometimesbyaudience.Assuch,itis
dividedintoninechapters:

Chapter1,UsingYourBlackBerry
ThischapterfocusesongettingaroundinyourBlackBerry.Therearehacks

tochangeprograms,dothingsquickly,hiderarelyusedicons,andother
usefultricks.UsethischaptertomakeyourBlackBerryyourown.

Chapter2,Email
UsethischaptertobecomeablackbeltintheBlackBerry'sbreadand
butter.Thehacksinthischapterwillhelpyouusethedevicetointeract
withtheapplicationthatevenyourgrandmothernowuses.

Chapter3,Games
Wherewouldacomputingplatformbewithoutitsgames?Killsometimein
theairportwaitingforyournextflightwiththehacksinthischapter.

Chapter4,TheInternetandOtherNetworks
InteractwiththewebservicesthatmaketheInternetwhatitistoday.The
Webhastransformedhandheldsfromsimplepersonaldigitalassistantsto
trulymobilecomputers.


Chapter5,FreePrograms
Wherethere'sanoperatingsystem,therearesuretobeprogramsavailable
forit.Theapplicationshighlightedinthischapterarefreeforthetaking.

Chapter6,SharewareApps
Ifyou'rewillingtodropalittlecoin,youcanuseyourBlackBerryto
performavarietyoffunctionsfrommultimediahackstospellchecking.
Thischapterfeaturessomeofthecoolestthird-partyapplicationsoutthere.

Chapter7,BESAdministration
BlackBerryhasbecomeamission-criticalserviceintheeyesofthe
corporateexecutivesthatuseit.BlackBerryadministratorswillfindhelpful

techniquestohelpthemkeeptheirsanity.

Chapter8,TheWebandMDS
BlackBerry'sMobileDataServicegivesuserssecureaccesstodatafrom
theInternetaswellastheintranet.Usethischaptertoturnyourtired
intranetsiteintoamobile,push-enabledapplicationoptimizedforthe
BlackBerry.

Chapter9,ApplicationDevelopment
UsethischapterasaguideforjumpingintoBlackBerrydevelopmentwith
twofeet.Thesearen'tjustsimple"HelloWorld"hackstheyarehighoctane
techniquesthatshowevenbeginningdevelopershowtodopowerfulthings
withtheBlackBerry.


WheretoLearnMore
Thisfieldischangingataquickpace.Therearesomeexcellentsitestovisitto
keepabreastofthelatesthappeningsintheworldofBlackBerry:
TheBlackBerryForums(isathirdpartyforumsitewhereusersexchangequestionsandanswersabout
BlackBerry.Ifyourunintoaproblem,there'sagoodchancesomeoneelse
has,too.
TheRIMsectionofHowardForums(isa
frequentlyusedforumforexchangingtipsandtricksforBlackBerryusage.
BlackBerryCool()isanexcellentblogthat
regularlypostssoftwarereviews,generalnews,andtipsforBlack-Berry
users.
BBHub()isanotherheavilypostedweblogthat
highlightsnewsoftwareandnewsontheBlackBerry.
BlackBerry.com()istheofficialsiteofBlackBerry.You'llfindthelatesthandhelds,pressreleases,webcasts,andinsight
rightfromthesource.

TheBlackBerryDeveloperJournal
(isafree
monthlyemailnewsletterfordevelopersthatprovidesthelatesttechniques,
APIs,andnewsforBlackBerrydevelopers.
TheBlackBerrydeveloperforums
(allowdevelopersto
interactandaskquestionsonanythingrelatedtotheBlackBerry.Thereis
currentlyaJavaforumandaBrowserforum.
TheBlackBerryBlog(isanotherblogto


monitorthelatestBlackBerryhappenings.
TheBlackBerrytagondel.icio.us(isanice
collectionofthelatestURLsthatalphageekBlackBerryusersare
bookmarking.


Conventions
Thefollowingisalistofthetypographicalconventionsusedinthisbook:

Italics
UsedtoindicateURLs,filenames,filenameextensions,anddirectory/folder
names.Forexample,apathinthefilesystemwillappearasC:\Temp.

Constantwidth
Usedtoshowcodeexamples,thecontentsoffiles,andconsoleoutput,as
wellasthenamesofvariables,commands,andothercodeexcerpts.

Constantwidthbold
Usedtohighlightportionsofcode,typicallynewadditionstooldcode.It

alsoindicatestextthatyoushouldtypeinliterally.

Constantwidthitalic
Usedincodeexamplesandtablestoshowsampletexttobereplacedwith
yourownvalues.

Graytype
Usedtoindicateacross-referencewithinthetext.


Alt-X
PressandholdAltandtapX,inthatorder.

Alt-X,Y,Z
PressandholdAlt,andthentypeX,Y,andZ,inthatorder.ReleaseAlt
whenyouaredonetyping.
Youshouldpayspecialattentiontonotessetapartfromthetextwiththe
followingicons:

Thisisatip,suggestion,orgeneralnote.Itcontainsuseful
supplementaryinformationaboutthetopicathand.

Thisisawarningornoteofcaution,oftenindicatingthatyourmoney
oryourprivacymightbeatrisk.

Thethermometericons,foundnexttoeachhack,indicatetherelativecomplexity
ofthehack:
beginner moderate expert



UsingCodeExamples
Thisbookisheretohelpyougetyourjobdone.Ingeneral,youmayusethe
codeinthisbookinyourprogramsanddocumentation.Youdonotneedto
contactusforpermissionunlessyou'rereproducingasignificantportionofthe
code.Forexample,writingaprogramthatusesseveralchunksofcodefromthis
bookdoesnotrequirepermission.SellingordistributingaCD-ROMof
examplesfromO'Reillybooksdoesrequirepermission.Answeringaquestionby
citingthisbookandquotingexamplecodedoesnotrequirepermission.
Incorporatingasignificantamountofexamplecodefromthisbookintoyour
product'sdocumentationdoesrequirepermission.
Weappreciate,butdonotrequire,attribution.Anattributionusuallyincludesthe
title,author,publisher,andISBN.Forexample:"BlackBerryHacksbyDave
Mabe.Copyright2006O'ReillyMedia,Inc.,0-596-10115-5."
Ifyoufeelyouruseofcodeexamplesfallsoutsidefairuseorthepermission
givenabove,feelfreetocontactusat


HowtoContactUs
Wehavetestedandverifiedtheinformationinthisbooktothebestofour
ability,butyoumayfindthatfeatureshavechanged(oreventhatwehavemade
mistakes!).Asareaderofthisbook,youcanhelpustoimprovefutureeditions
bysendingusyourfeedback.Pleaseletusknowaboutanyerrors,inaccuracies,
bugs,misleadingorconfusingstatements,andtyposthatyoufindanywherein
thisbook.
Pleasealsoletusknowwhatwecandotomakethisbookmoreusefultoyou.
Wetakeyourcommentsseriouslyandwilltrytoincorporatereasonable
suggestionsintofutureeditions.Youcanwritetousat:
O'ReillyMedia,Inc.
1005GravensteinHighwayNorth
Sebastopol,CA95472

(800)998-9938(intheUnitedStatesorCanada)
(707)829-0515(international/local)
(707)829-0104(fax)
Toasktechnicalquestionsortocommentonthebook,sendemailto:

ThewebsiteforBlackBerryHackslistsexamples,errata,andplansforfuture
editions.Youcanfindthispageat:
/>Formoreinformationaboutthisbookandothers,seetheO'Reillywebsite:



SafariEnabled

WhenyouseeaSafari®Enabledicononthecoverofyourfavorite
technologybook,thatmeansthebookisavailableonlinethroughtheO'Reilly
NetworkSafariBookshelf.
Safarioffersasolutionthat'sbetterthane-books.It'savirtuallibrarythatlets
youeasilysearchthousandsoftoptechbooks,cutandpastecodesamples,
downloadchapters,andfindquickanswerswhenyouneedthemostaccurate,
currentinformation.Tryitforfreeat.

GotaHack?
ToexploreHacksbooksonlineortocontributeahackforfuturetitles,visit:



×