Development/BuildingForAndroid/nl

    From The Document Foundation Wiki
    This page is a translated version of the page Development/BuildingForAndroid and the translation is 63% complete.

    Android SDK installeren

    Het is misschien het eenvoudigst om de Android Studio te installeren: https://developer.android.com/studio

    • Na het downloaden, pak /bin/studio.sh uit en voer het uit
    • Na enkele seconden wordt een GUI weergegeven en wordt u begeleid (selecteer gewoon de standaardopties als u nog nooit Android Studio heeft geïnstalleerd) voor het configureren en downloaden van componenten (inclusief SDK).
    • Er kan een mksdcard-fout optreden aan het einde van het proces.
    • Er zal een map ~/Android/Sdk zijn, dit is uw ANDROID_HOME
    • Ga naar File ▸ Settings
      • Typ "SDK" in de zoekbalk in de linkerbovenhoek.
      • of volg Appearance & Behaviour > System Settings > Android SDK
        • Installeer hier de nieuwste SDK (of wat u maar nodig heeft/verkiest)

    Het is ook mogelijk om "Android SDK Platform-Tools" hier te downloaden https://developer.android.com/studio/releases/platform-tools en dan de sdkmanager te gebruiken om een SDK te installeren.

    Ga naar Tools ▸ Android ▸ SDK Manager in Android Studio, Android SDK en ga naar het tabblad SDK Tools, klik daar op NDK en installeer het.

    Hoe het te builden

    De build instructies zijn bijna gelijk aan de normale Build instructies.

    We ontwikkelen op Linux als hostomgeving. Windows wordt niet ondersteund. Als u de NDK en SDK hebt, kloont u de git-repo:

    git clone git://gerrit.libreoffice.org/core libreoffice
    cd libreoffice

    Maak uw autogen.input aan, zodat het er zo uitziet (gebruik a.u.b. het volledige pad in plaats van ~):

    # ARM Android
    --with-distro=LibreOfficeAndroid
    # of Android x86 ( heeft de voorkeur als u een AVD-Emulator gebruikt)
    --with-distro=LibreOfficeAndroidX86
    --with-android-sdk=~/Android/Sdk
    --with-android-ndk=~/Android/Sdk/ndk-bundle
    

    Configureren (en pakketten installeren indien nodig) en builden

    ./autogen.sh
    make

    Het uitvoeren

    cd android/source
    make install

    Hiermee wordt de .apk op de standaardemulator of het standaardapparaat geïnstalleerd.

    Hacken

    We stellen alle hulp bij de ontwikkeling op prijs - elke patch telt :-) Als u niet weet waar u aan moet werken, bekijk dan de geopende Bugzilla-tickets die zijn ingediend voor de Android Viewer.

    Meer informatie over de ontwikkeling:

    Hints

    Als u uw ontwikkelingscyclus wilt versnellen, gebruik dan de Icecream distributed compiler. Specifieke instructies voor het instellen van LibreOffice op Android staan deze blogpost over Icecream gebruik.

    gtktiledviewer

    gtktiledviewer is a test app that allows development of the LOK API implementations in LO core without any additional complexity (Android or Online both add complexity).

    See the gnome-documents page about how to use the underlying GTK widget with that frontend.

    At the moment gtktiledviewer has no testsuite, so here is a checklist to do manual testing if there is some larger rework on it.

    Basic feature set:

    1. Click inside a paragraph. Result: Caret appears at the position where the user clicked.
    2. Click inside a paragraph, start typing. Result: text appears in the application.
    3. Click inside a bullet list, type Enter. Result: new bullet is inserted, caret is on the new line.
    1. Double-click inside a paragraph. Result: entire word is selected, the selection has handles to allow shrinking or growing the selection.
    2. Drag the shown handles inside the paragraph. Result: the selection grows or shrinks according to the movements.
    3. Text is selected, type a word. Result: The selected text is deleted, the word is typed in.
    1. Double-click inside a cell in a table or a spreadsheet. Result: If empty, the entire cell is selected. If any text is there, the closest word is selected. If the handles are dragged outside of the cell boundary, selection turns into a able selection.
    2. Click on an image. Result: selection rectangle of the image (including handles) appears.
    3. Drag the image's selection handles. Result: The image is resized, keeping the aspect ratio.
    1. Click on a text inside a shape. Result: Caret appears inside the shape text.
    2. Click on the border of a shape. Result: Bounding box of the shape appears as the selection, including handles to manipulate the object.
    3. Drag a handle of the shape's selection. Result: The shape resizes according to the drag. The resizing does not keep aspect ratio.
    4. Select text (double-click on a word), trigger Bold action on the toolbar. Result: The selected text will be emboldened.

    Features implemented after the TDF-funded project ended:

    1. Search for something in the document. The search result is highlighted.
      1. If the document is an Impress one, then if the search result is on a next slide, the viewer switches to that slide automatically and the part selector is updated.
      2. If the search term is not found, the findbar is updated to say so.
      1. If nothing is selected, then search starts from the top left corner of the visible area, not from the cursor position.
    1. Desktop-style selection with the mouse (click somewhere, then drag the mouse to the end position).
    2. Progress-bar on load.
    3. Clicking on a hyperlinks opens the URL in a browser.
    1. Add or remove enough content to/from a Writer document so the number of pages changes. The viewer should update the document size correctly. (E.g. scrollbars.)
    2. Select Writer text, copy, paste to e.g. abiword: formatting should be preserved, as HTML is used for copying.
    3. Select Writer shape text, paste to abiword, at least plain text should show up, as it's detected that HTML is not supported.
    1. Switch Impress slides, type text after the slide change -- text should appear. (Focus does not remain on the part selector widget.)
    2. Switch Calc sheets, after sheet switch the contents of the new sheet is visible. (Tiles from the old sheet are not kept.)