MCPcopy Index your code
hub / github.com/amahi/android

github.com/amahi/android @v2.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.4.0 ↗ · + Follow
1,188 symbols 2,873 edges 117 files 80 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Amahi Android App Build Status

This repository contains the source code for the Amahi Android app.

You will need JDK 1.7+ installed to work with it. Gradle, Android SDK and project dependencies will be downloaded automatically.

Building the app

  1. Set API information.

$ vim api.properties url.amahi = URL url.proxy = URL client.id = ID client.secret = SECRET

This is something to keep private and you obtain it by asking in the Amahi IRC channel or send a message to support at Amahi dot org.

  1. Build the application using command line or using GUI.

``` $ ./gradlew clean assembleDebug

```

  1. Once you have built the application, you will be needing credentials to use the application. Go to Amahi website and create your account, once the account is activated, you will see the description on how to setup Amahi server. However, this is not strictly needed, as we have a set up of a demo server called "Welcome to Amahi" which you should see even without your own server installed.

Code Style Convention

  • Set the Code Style Scheme to Default in Android Studio settings.
  • Run Reformat Code on changed files before committing.
  • Please check out the Code Style for Contributors section in AOSP and maintain as much consistency with them as possible.

Generating the documentation

  1. Install Android documentation.

$ android update sdk --no-ui --force --all --filter doc-21

  1. Generate the documentation.

$ ./gradlew clean assembleDebug generateDebugJavadoc

Extension points exported contracts — how you extend this code

BusEvent (Interface)
Base interface for all bus events. Useful for a very basic polymorphism, for example to declare a result object of {@lin [35 …
src/main/java/org/amahi/anywhere/bus/BusEvent.java
ProxyApi (Interface)
Proxy API declaration. [1 implementers]
src/main/java/org/amahi/anywhere/server/api/ProxyApi.java
ServerApi (Interface)
Server API declaration. [1 implementers]
src/main/java/org/amahi/anywhere/server/api/ServerApi.java
AmahiApi (Interface)
Amahi API declaration. [1 implementers]
src/main/java/org/amahi/anywhere/server/api/AmahiApi.java
OnItemClickListener (Interface)
(no doc) [2 implementers]
src/main/java/org/amahi/anywhere/util/RecyclerItemClickListener.java

Core symbols most depended-on inside this repo

getBus
called by 63
src/main/java/org/amahi/anywhere/bus/BusProvider.java
getString
called by 46
src/main/java/org/amahi/anywhere/util/Preferences.java
show
called by 32
src/main/java/org/amahi/anywhere/util/ViewDirector.java
getName
called by 26
src/main/java/org/amahi/anywhere/server/model/Server.java
equals
called by 26
src/main/java/org/amahi/anywhere/server/model/ServerFile.java
from
called by 24
src/main/java/org/amahi/anywhere/AmahiApplication.java
getMediaPlayer
called by 24
src/main/java/org/amahi/anywhere/activity/ServerFileVideoActivity.java
of
called by 21
src/main/java/org/amahi/anywhere/util/ViewDirector.java

Shape

Method 1,024
Class 151
Interface 7
Enum 6

Languages

Java100%

Modules by API surface

src/main/java/org/amahi/anywhere/fragment/ServerFilesFragment.java75 symbols
src/main/java/org/amahi/anywhere/activity/ServerFileAudioActivity.java70 symbols
src/main/java/org/amahi/anywhere/service/AudioService.java60 symbols
src/main/java/org/amahi/anywhere/fragment/NavigationFragment.java55 symbols
src/main/java/org/amahi/anywhere/activity/ServerFileVideoActivity.java54 symbols
src/main/java/org/amahi/anywhere/activity/NavigationActivity.java44 symbols
src/main/java/org/amahi/anywhere/activity/ServerFilesActivity.java33 symbols
src/main/java/org/amahi/anywhere/activity/AuthenticationActivity.java33 symbols
src/main/java/org/amahi/anywhere/activity/ServerFileImageActivity.java30 symbols
src/main/java/org/amahi/anywhere/activity/ServerAppActivity.java30 symbols
src/main/java/org/amahi/anywhere/fragment/SettingsFragment.java27 symbols
src/main/java/org/amahi/anywhere/server/client/ServerClient.java25 symbols

For agents

$ claude mcp add android \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact