关闭

关闭

关闭

封号提示

内容

首页 blackberry app java.pdf

blackberry app java.pdf

blackberry app java.pdf

上传者: jack20039 2011-10-10 评分 0 0 0 0 0 0 暂无简介 简介 举报

简介:本文档为《blackberry app javapdf》,可适用于IT/计算机领域,主题内容包含BlackBerryJavaApplicationDevelopmentBeginner'sGuideBuildanddeploypowerful,符等。

BlackBerryJavaApplicationDevelopmentBeginner'sGuideBuildanddeploypowerful,useful,andprofessionalJavamobileapplicationsforBlackBerrysmartphones,thefastandeasywayBillFoustBIRMINGHAMMUMBAIDownloadfromWow!eBook<wwwwowebookcom>BlackBerryJavaApplicationDevelopmentBeginner'sGuideCopyrightPacktPublishingAllrightsreservedNopartofthisbookmaybereproduced,storedinaretrievalsystem,ortransmittedinanyformorbyanymeans,withoutthepriorwrittenpermissionofthepublisher,exceptinthecaseofbriefquotationsembeddedincriticalarticlesorreviewsEveryefforthasbeenmadeinthepreparationofthisbooktoensuretheaccuracyoftheinformationpresentedHowever,theinformationcontainedinthisbookissoldwithoutwarranty,eitherexpressorimpliedNeithertheauthor,norPacktPublishing,anditsdealersanddistributorswillbeheldliableforanydamagescausedorallegedtobecauseddirectlyorindirectlybythisbookPacktPublishinghasendeavoredtoprovidetrademarkinformationaboutallofthecompaniesandproductsmentionedinthisbookbytheappropriateuseofcapitalsHowever,PacktPublishingcannotguaranteetheaccuracyofthisinformationFirstpublished:JulyProductionReference:PublishedbyPacktPublishingLtdLincolnRoadOltonBirmingham,BPA,UKISBNwwwpacktpubcomCoverImagebyParagKadam(paragvkadamgmailcom)CreditsAuthorBillFoustReviewersRichardEversJasonReeseAcquisitionEditorDavidBarnesDevelopmentEditorMehulShettyTechnicalEditorNamitaSahniIndexerMonicaAjmeraMehtaEditorialTeamLeaderAksharaAwareProjectTeamLeaderPriyaMukherjiProjectCoordinatorAshwinShettyProofreaderJeffOrloffProductionCoordinatorsAlwinRoyAdlineSwethaJesuthasKruthikaBangeraCoverWorkAlwinRoyAbouttheAuthorBillFousthasbeendevelopingsoftwareforoverfifteenyearsinavarietyoffieldsandtechnologiesHebeganworkingwithBlackBerrydevicesinbeforetheyevenhadbuiltincellularphones!Duringthattime,hecreatedandsoldapplications,andhelpedseveralcompaniesdevelopproductofferingsforBlackBerryWiththereleaseoftheBlackBerryin,thedevelopmentenvironmentchangedfromCtoJavaMicroandBillstartedpursuingotheropportunities,includingNET,andhascontinuedtododevelopmentasaconsultantprofessionallysincethenIn,heauthoredthebookMobileMagazineGuidetoBlackBerrywithQuePublishing(http:wwwamazoncomMobileGuideBlackBerryBillFoustdp)ThisbookwasasuccessandleadtoBillbeingafoundingmemberoftheMobileComputingAuthoritypodcastwithtwootherbookauthorsBilliscurrentlyworkingwithaconsultingcompanyinKansasCityandcontinuestoopineaboutBlackBerryandthemobilecomputingindustryingeneralthroughtheMobileComputingAuthorityblogandpodcastsAcknowledgementFirst,IneedtothankGod,theFather,foreverythingthatHehasdonethroughoutmylifeandforthegrace,favor,andpeacetogetthisbookdoneTheopportunitytowritethisbookcameaboutatatimeinmylifethatwasnotveryconvenientIwaslookingatmovingcrosscountryandajobchangetohelptakecareofmyailingmotherInspiteofthis,themanychallengeswefacedtocompletethisbookwereneveroverwhelmingandintheend,wereovercomeSecondly,Ineedtothankmywife,Angela,andfamilyfortheircontinualsupportthroughouttheentireprocessEvenasdeadlinesweremissedandeveningswerespentwritinginsteadofplayingwiththekids,mywifewasunderstandingandsupportiveinseeingthisdoneIalsoneedtogivespecialthankstothestaffatPacktPublishingfortheirpatienceandunderstandingwithmethroughalloftheissuesanddelayswefacedI’dliketodedicatethisbooktomymother,whopassedawayduringthewritingofthisbookWewillmissyouMomAbouttheReviewersRichardEversdevelopssoftwareinmanylanguagesacrossseveralplatforms,andhasextensiveexperiencedevelopingforOracle,DB,Informix,MySQL,andSQLServerHehasbeentheeditoroffivemagazines,publisheroftwomagazines,authorofthousandsofsoftwareproducts,andpublisherofeighteducationalwebsitesRichardhasbeenhelpedcreatebookssuchastheProfessionalBlackBerry(Wrox),MobilePCGuidetoBlackBerry(Que),theBlackBerryForDummiesseries(Wiley),fourBlackBerryCertificationProgramselfstudyguides,theCivicsCanadaOnlineTextbook,TheCompleteCommodoreInnerSpaceAnthology,andTheTransactorBookofBitsandPiecesRichardworkedforResearchInMotionformorethanyears,andrecentlyleftRIMtoworkforBlueCatNetworksasaseniorsoftwareengineerIwouldliketothankmywife,Donna,andmychildren,Stephanie,Samantha,andAdam,fortheirloveandsupportthroughcountlessyearsofhidingbehindacomputerscreenJasonReesehasspentyearsworkinginthetelecommunicationsandwirelessindustriesmanagingglobalmobilityprojects,devicedeployments,support,andapplicationdevelopmentonallmajormobileplatformsJasonisaregularcontributortothetechnologysiteGearDiarycomWhenhe’snotworking,Jasonenjoystravelingandspendingtimewithhiswife,Stephanie,andtheiryearoldBostonTerrier,SophieIwouldliketothankmywife,Stephanie,whohasbeenincrediblysupportive(andpatient!)throughmanyyearsandprojectsTableofContentsPrefaceChapter:IntroducingBlackBerryApplicationDevelopmentExpectationsofthisbookGeneraldevicecapabilitiesTwodifferentapproachestoapplicationdevelopmentChoosinganSDKversionWhatyoucanexpectSummaryChapter:InstallingtheDevelopmentEnvironmentSystemrequirementsDevelopmentEnvironmentsDownloadingandinstallingJavaTimeforaction–downloadingtheJavaDevelopmentKitTimeforaction–installingtheJavaDevelopmentKit(JDK)IntroducingtheBlackBerryDeveloperZoneDownloadingandinstallingEclipseTimeforaction–downloadingEclipsewiththeJDEpluginTimeforaction–installingtheJDEpluginforEclipseFullinstallerInstallingotherJDEcomponentpackageversionsTimeforaction–installingotherJDEcomponentpackagesovertheairSummaryChapter:GettingFamiliarwiththeDevelopmentEnvironmentStartingtheEclipseIDETimeforaction–launchingEclipseforthefirsttimeImportingthehelloworldprojectTimeforaction–importingtheHelloWorldDemosampleapplicationRunningtheapplicationTimeforaction–runninganapplicationinthesimulatorTableofContentsiiDebuggingtheapplicationTimeforaction–startingthedebuggerIntroducingEclipseperspectivesTimeforaction–changingtheperspectiveGettingsomehelp!Timeforaction–displayingtheHelpSummaryChapter:CreatingyourFirstBlackBerryProjectChoosingtheSDKversionCreatinganewprojectTimeforaction–creatinganewprojectAddingapackagetothenewprojectTimeforaction–creatinganewprojectStartatthebeginningApplicationandUiApplicationTimeforaction–addingtheUiApplicationclassAcloserlookatthecodeTimeforaction–expandingTipCalcApplicationMainScreenTimeforaction–addingaMainScreenDeterminingyourscreenrequirementsTimeforaction–expandingtheTIpCalcMainScreenTimeforaction–addingmoretotheMainScreenAddingamenutotheapplicationTimeforaction–addingamenutotheMainScreenSettingtheSDKversionTimeforaction–selectingtherightcomponentpackageTestingitoutTimeforaction–runningyournewapplicationGivingTipCalcsomepolishAddinganicontoTipCalcTimeforaction–addinganiconTimeforaction–changingtheapplicationtitleFixingtheBillAmountfieldTimeforaction–fixingthebillamountfieldDisablingthesavepromptTimeforaction–disablingthe"save"dialogSummaryTableofContentsiiiChapter:LearningtheBasicsAbouttheUIGettingtoknowotherFieldclassesSeparatorFieldTimeforaction–creatingaSeparatorFieldLabelFieldTimeforaction–creatingaLabelFieldBitmapFieldTimeforaction–creatingaBitmapFieldChoiceFieldObjectChoiceFieldTimeforaction–creatinganObjectChoiceFieldNumericChoiceFieldTimeforaction–creatingaNumericChoiceFieldGaugeFieldTimeforaction–creatingaGaugeFieldDateFieldTimeforaction–creatingaDateFieldCheckboxFieldTimeforaction–creatingaCheckboxFieldRadioButtonFieldTimeforaction–creatingaRadioButtonFieldTextFieldBasicEditFieldTimeforaction–creatingaBasicEditFieldEditFieldTimeforaction–creatinganEditFieldPasswordEditFieldTimeforaction–creatingaPasswordEditFieldEmailAddressEditFieldTimeforaction–creatinganEmailAddressFieldAutoTextEditFieldTimeforaction–creatinganAutoTextEditFieldActiveAutoTextEditFieldTimeforaction–creatinganActiveAutoTextEditFieldRichTextFieldTimeforaction–creatingaRichTextFieldActiveRichTextFieldTimeforaction–creatinganActiveRichTextFieldSummaryTableofContentsivChapter:GoingDeeperintotheUIButtonFieldTimeforaction–creatingaButtonFieldListFieldTimeforaction–creatingaListFieldTreeFieldTimeforaction–creatingaTreeFieldMapFieldTimeforaction–creatingaMapFieldDisplayinganotherscreenTimeforaction–creatingan"AboutScreen"DisplayingadialogTimeforaction–collectinginformationwithacommondialogTimeforaction–collectinginformationwithcustombuttonsonadialogTimeforaction–collectinginformationwithalistonadialogListenersandcallbacksLayoutmanagersSpecialconsiderationsfortouchscreensTouchEventsandTouchGesturesSummaryChapter:StoringDataLayingthegroundworkCreatingadataclassTheJavaway:RMSTimeforaction–creatingandopeningaRecordStoreTimeforaction–addingarecordTimeforaction–retrievingrecordsTimeforaction–deletingrecordsTheBlackBerryway:PersistentStorePersistentStoreandPersistentObjectTimeforaction–preparingtheJournalEntryclassTimeforaction–gettingaPersistentObjectTimeforaction–accessingthePersistentObjectdataTimeforaction–accessingthePersistentObjectdataAccessingremovablestorageConnectorandFileConnectionTimeforaction–storingdatatoafileTimeforaction–readingdatafromafileSummaryTableofContentsvChapter:InterfacingwithApplicationsIntroducingPIMWhyisallsogenericPIMListsPIMItemsLayingthegroundworkTimeforaction–creatingtestcontactsExpandingyourtestcontactsTimeforaction–addingtelephonenumbersExpandingevenmoreTimeforaction–addingemailaddressesFinishingthetestcontactsTimeforaction–addingemailaddressesEmbeddingtheaddressbookintoyourapplicationTimeforaction–embeddingtheaddressbookAddingtheeventtoyourcalendarTimeforaction–addinganeventtothecalendarRecurringeventsSendingemailTimeforaction–sendinganemailfromanapplicationSummaryChapter:NetworkingThreadingConnectorclassHTTPbasicsHTTPGETrequestsTimeforactionHTTPBasicsHTTPPOSTrequestsTimeforaction–callingawebserviceTimeforaction–parsingtheresponseThetransportsomanypossibilitiesDirectTCPIPMDSBESBISBWiFiWAPWAPXWAPDebuggingwiththeMDSsimulatorTestingforavailabilityoftransportsTimeforaction–testingforavailabilityTableofContentsviMovingbeyondHTTPconnectionsSummaryChapter:AdvancedTopicsIntroducingtheGlobalPositioningSystemTheLocationProviderclassCriteriaThreewaystogetGPSdataBringingitalltogetherGettingcoordinatesTimeforaction–acquiringalocationExpandingHanselTimeforaction–expandingHanselAlternateentrypointsCreatingafocusiconTimeforaction–creatinganalternateentrypointprojectTimeforaction–addingafocusicontoHanselSummaryChapter:WrappingItAllUpUsingresourcesforlocalizationTimeforaction–addingaresourcefileResourcebundlesTimeforaction–addingasecondresourcefileTimeforaction–populatingaresourcefileandconfiguringtheprojectTimeforaction–usingaresourceinyourcodeCodesigningyourapplicationTimeforaction–configuringprojectstoallowaccessTimeforaction–installingthecodesigningkeysTimeforaction–codesigningtheapplicationDistributingyourapplicationthroughBlackBerryAppWorldLicensingmodelsSubmittinganapplicationSummaryAppendix:PopQuizAnswersChapterChapterChapterPopQuizPopQuizPopQuizTableofContentsviiChapterPopQuizPopQuizPopQuizPopQuizPopQuizChapterPopQuizPopQuizPopQuizChapterPopQuizPopQuizPopQuizChapterPopQuizPopQuizPopQuizChapterPopQuizPopQuizPopQuizChapterPopQuizPopQuizChapterIndexDownloadfromWow!eBook<wwwwowebookcom>PrefaceThebookteacheshowtowriterich,interactive,andsmartBlackBerryapplicationsinJavaItexpectsthereaderstoknowJavabutnotJavaMobileortheBlackBerryAPIsThisbookwillcoverUIprogramming,datastorage,programmingnetwork,andInternetAPIappsAswemoveon,youwilllearnmoreabouttheBlackBerry’sdevicefeatures,suchasmessaging,GPS,multimedia,contactsandcalendar,andsoonThisbookalsohelpsyoubuildyourownapplicationstoillustratetheplatformandthevariouscapabilitiesthatdeveloperscanuseintheirprogramsWhatthisbookcoversChapter,IntroducingBlackBerryApplicationDevelopmentgetsyoustartedbytalkingaboutthecapabilitiesofaBlackBerrysmartphoneandwhatkindofthingscanbedonewiththesecapabilitieswithacustomapplicationIttalksabouttheothertoolswhichareavailableandwhywritingnativeJavaapplicationsbyusingtheBlackBerrySDKisthemostpowerfulandpracticalapproachtodevelopingapplicationsFinally,itcovershowtoselectwhichversionoftheSDKtouseandwhenyoumightwanttouseanolderversionoftheSDKinsteadofthelatestChapter,InstallingthedevelopmentEnvironmentstepsyouthroughtheprocessofinstallingtheproperversionsofJavaandEclipseThischaptertalksaboutwhentoinstalladditionalversionsoftheSDKandhowtodosothroughtheEclipseovertheairupdatetoolaswellashowtoinstallthemmanuallyChapter,GettingFamiliarwiththeDevelopmentEnvironmentstartsoffthelearningprocessbyimportinganexistingsampleapplicationthestandard"HelloWorld"applicationAfterimportingtheproject,thechapterwillgooverthissimpleapplicationlinebylineAfterwards,youwillruntheapplicationinthesimulatorandthenintroduceabugintotheapplicationsothatyoucandebugitaswellPrefaceChapter,CreatingyourfirstBlackBerryProjectiswhereyoucreateanewprojectfromscratchThischapterdemonstrateshowyouaccomplishthisusingEclipseandthevariouswizardsthatareavailablewithinitItalsodemonstrateshowyoucancreateasimple,butcompleteapplicationquicklyusingtheUserInterface(UI)elementsprovidedbytheframeworkChapter,LearningtheBasicsabouttheUIcreatesanapplicationtodemonstrateeachoftheUIelementsthatareavailabletoyouwhenusingtheBlackBerrySDKThissampleapplicationdemonstrateshowtosetandretrievedatafromeachfieldanddiscusseswheneachfieldshouldbeusedaccordingtotheBlackBerrydevelopmentguidelinesBydemonstratingeachfield,youwillgetacompleteunderstandingofthecapabilitiesofeachfieldChapter,GoingDeeperintotheUIpicksupwherethepreviouschapterleavesoffbydemonstratinghowtousesomeoftheadvancedfields,suchaslistsandtreesItalsocoversnavigationbetweenscreens,displayingdialogs,andcommonpatternsusedintheBlackBerrySDKBythetimeyouaredonewiththischapter,youwillbewellequippedtocreatetheentireUIforanapplicationChapter,StoringDatajumpsrightintohowtousethedatastoragetoolsoftheSDKandwhenitisappropriatetouseeachoneThiscoverstheJavastandardRMS,theBlackBerryspecificPersistentStore,andevenhowtoaccesstheremovablemediacardsthatareavailableonsomedevicesChapter,InterfacingwithApplicationsshowsyouhowtotakeadvantageofoneofmostpowerfulfeaturesavailabletoaBlackBerryapplicationEachBlackBerrydevicecomeswithstandardapplicationsthatyoucaninterfacewithTheseincludetheaddressbook,calendar,andeventhemessagingapplicationsBeingabletotightlyintegrateanapplicationwiththesecanmakeitevenmorevaluableandusefultotheenduserChapter,Networkingwadesintothecomplex,butanimportantareaofhowtomakeanapplicationnetworkingawareHere,youwilldiscoverwhattransportsareavailable,howtoopenconnections,andhowtosenddatathroughthemThesamplealsodemonstrateshowtocommunicatewithasimplewebserviceandparsetheresultingXMLdataChapter,AdvancedTopicscoverstwodistinct,butpowerfultopicsThefirsttopicishowtoutilizethebuiltinGPSreceiverthatisbuiltintosomesmartphonesinordertogetlocationinformationYouwilllearnaboutthevariousmethodsthatcanbeusedtogetlocationinformationandhowtodosomecommoncalculationsusingthesecoordinatesTheothertopiccoveredinthischaptercovershowtousealternateentrypointssothatasingleprojectcanbeusedtolaunchmultipleapplicationsBecausetheseapplicationsshareacommonproject,theycansharecodeandevenmemoryPrefaceChapter,WrappingItAllUpfinishesthebookwithtasksthatcommonlyaredonelast,suchaslocalizationwithlanguageresourcefilesandcodesigningyourapplicationsothatitcanbeinstalledonrealdevicesYouwillalsolearnwhatittakestodistributeyournewapplicationthroughtheBlackBerryAppWorldmarketplaceWhatyouneedforthisbookInordertogetstartedyoudon’tneedanythingatallexceptsomestartercode,whichisavailablewiththecodebundleofthisbookEverythingelsethatyouwillneedwillbedownloadedandinstalledthroughthecourseofthisbook,mostlyinChapterInthischapter,wewillinstalltheJavaJRE(JavaRuntimeEnvironment)andJDE(JavaDevelopmentEnvironment),whicharebothneededtorunEclipse,thedevelopment

用户评论(0)

0/200

精彩专题

上传我的资料

每篇奖励 +2积分

资料评价:

/49
仅支持在线阅读

意见
反馈

立即扫码关注

爱问共享资料微信公众号

返回
顶部