Need help with android?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

meganz
670 Stars 272 Forks Other 13.6K Commits 74 Opened issues

Description

MEGA Android App

Services available

!
?

Need anything else?

Contributors list

MEGA Android Client

A fully-featured client to access your Cloud Storage provided by MEGA.

This document will guide you to build the application on a Linux machine with Android Studio.

Setup development environment

Build & Run the application

  1. Get the source code.
git clone --recursive https://github.com/meganz/android.git
  1. Install in your system the Android NDK 21 (latest version tested: NDK r21d).

  2. Export

    NDK_ROOT
    variable or create a symbolic link at
    ${HOME}/android-ndk
    to point to your Android NDK installation path.
export NDK_ROOT=/path/to/ndk
ln -s /path/to/ndk ${HOME}/android-ndk
  1. Export
    ANDROID_HOME
    variable or create a symbolic link at
    ${HOME}/android-sdk
    to point your Android SDK installation path.
export ANDROID_HOME=/path/to/sdk
ln -s /path/to/sdk ${HOME}/android-sdk
  1. Export
    JAVA_HOME
    variable or create a symbolic link at
    ${HOME}/android-java
    to point your Java installation path.
export JAVA_HOME=/path/to/jdk
ln -s /path/to/jdk ${HOME}/android-java
  1. Download the link https://mega.nz/file/t81HSYJI#KQNzSEqmGVSXfwmQx2HMJy3Jo2AcDfYm4oiMP_CFW6s, uncompress it and put the folder

    webrtc
    in the path
    app/src/main/jni/megachat/
    .
  2. Before running the building script, install the required packages. For example for Ubuntu or other Debian-based distro:

sudo apt install build-essential swig automake libtool autoconf cmake
  1. Build SDK by running

    ./build.sh all
    at
    app/src/main/jni/
    . You could also run
    ./build.sh clean
    to clean the previous configuration. IMPORTANT: check that the build process finished successfully, it should finish with the Task finished OK message. Otherwise, modify
    LOG_FILE
    variable in
    build.sh
    from
    /dev/null
    to a certain text file and run
    ./build.sh all
    again for viewing the build errors.
  2. Download the link https://mega.nz/#!1tcl3CrL!i23zkmx7ibnYy34HQdsOOFAPOqQuTo1-2iZ5qFlU7-k, uncompress it and put the folders

    debug
    and
    release
    in the path
    app/src/
    .
  3. Open the project with Android Studio, let it build the project and hit Run.

Notice

To use the geolocation feature you need a Google Maps API key:

  1. To get one, follow the directions here: https://developers.google.com/maps/documentation/android/signup.

  2. Once you have your key, replace the "googlemapskey" string in these files:

    app/src/debug/res/values/google_maps_api.xml
    and
    app/src/release/res/values/google_maps_api.xml
    .

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.