Kapitel 7 Flashcards
Woraus bestehen Device applications?
User Interface layer, business logic layer, Unwired Server Client Object APIs, Devie platform and third party Frameworks
Welche Programmiersprachen werden bei der Generierung unterstützt?
Java für BB (ME) und für Android, C# für Win und Win Mobile, Objective-C für iOS
Wo kann der Code generiert werden?
Im UWS über Mobile Application Project rechtsklicken und “Generate Code…” wählen
Welche Typen von Apple Developer Accounts gibt es?
Standard Developer und Developer Enterprise
Was kann ein Apple Standard Developer?
Registratino fee applies, Allow deployment over App Store
Was kann Developer Enterprise?
Registration fee applies; Inhouse-Verteilung
What is used when programming iPhone?
Tools (Xcode); Frameworks (Foundation, UIKit); Objective-C
Welche Plattformen werden bei iOS untersützt?
iPhone 3G; iOS 4.2, iPhone 3G/4iOS iOS 4.2 und 4.3; iPod Touch 3rd/4th gen iOS4.2 und 4.3; iPad iOS 4.2 und iOS 4.5; iPad2 iOS 4.3
BB-Entwicklung: Welche Dateien müssen aus dem Generated Code wohin kopiert werden?
alle .java-Files aus dem \src in den BB Application Development Projects eigenen \src-Ordner (Achtung: nicht den Ordner selber!)
Wozu dienen die Metadaten-Klassen und Object-Manager-Klassen?
Welche Wahlmöglichkeiten gibt es bei der Erstellung?
“Generate metadata classes” creates additional classes that describe the attributes and operations of the
generated objects
- Similar to Java Reflection
- The metadata classes are also under the Generated Code folder (\src\namespace\intrnl)
Object manager allows you to retrieve the metadata at runtime
Nur Metadaten, oder Metadaten und Object-Manager sind möglich.
Für Visual Studio: was benötigt man für die Erstellung des nativen Projekts?
Project-Type = Smart device project
In the VS Solution Explorer, highlight the project name, right click and select Add Reference….
- Click the Browse tab to locate and select these .dll files from your system:
- sup-client.dll (C:\Sybase\UnwiredPlatform\ClientAPI\RBS\WM)
- iAnywhere.Data.UltraLite.dll (C:\Sybase\UnwiredPlatform\ClientAPI\RBS\WM\Ultralite)
These libraries need to be added to the project:
- ulnet11.dll
- mlcrsa11.dll
- PUtilTRU.dll
For each of the added libraries, set the Copy to Output property to a value of “Copy Always”
- In WorkSpace Navigator, right click the “Generated Code” folder and select Copy
- In Visual Studio, paste this folder into the project and delete some files:
- delete the Dlls folder in the Generated Code
- Open the src folder and delete the file with the extension “.csproj”
Wie sollte man vorgehen, um Code für verschiedene Plattfomen für das gleiche MBO zu erstellen?
Recommend creating separate directories for
each device-platform language generation
- Directory must be created before code is generated
Entwicklung für iOS: Welche beiden Verzeichnisse gibt es?
The generated code folder is broken into:
- Includes (Interface files)
- Source files (Implementation files)
In addition to the generated code, you MUST copy the iOS Client APIs to your Mac
- Located at: …Sybase\UnwiredPlatform\ClientAPI\MBS\ObjectiveC
- Copy the entire contents of the folder into a separate directory on the Mac from the directory containing the generated code
- Click Xcode’s FileAdd Files to … menu and choose the appropriate SUP Client libraries (libclientrt.a, libMO.a, libSUPObj.a)
- weitere Kopier-Aktionen ………
- Auswahl einiger Frameworks, die von Windows herüberkopiert wurden …
Welche Perspektive sollte man wählen für BlackBerry-Entwicklung und welche Dateien werden benötigt für das native Projekt?
- To develop the user interface for the BlackBerry platform, install the BlackBerry Eclipse plugin
- Then, you can select the BlackBerry Application Development perspective
Click the Libraries tab and then click the Add External Jars button
- Navigate to C:\Sybase\Unwired Platform\ClientAPI \ RBS \ BB
- Select these files:
- CommonClient.jar
- sup_client_rim.jar
- UltraLiteJ.jar
Copy these files from C:\Sybase\Unwired Platform\ClientAPI\RBS\BB:
- CommonClient.cod, sup_client_rim.cod, UltraLiteJ.cod
- Paste these files to these two directories:
- C:\BlackBerry_Java_Plugin\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\simulator
- C:\Sybase\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\simulator
Copy all the *.java files from the Unwired WorkSpace project’s Generated code “\src”
folder to the BlackBerry Application Development project’s own “\src” folder
- Do not copy the folder itself!