AllJoynAudioServiceMediaPlayer Building AJ Audio Android

asked 2014-04-10 07:01:43 -0700

AAudio gravatar image


I am having trouble compiling the Audio service framework for Android, I've compiled the android source (2.3.2 Gingerbread) and was on to compiling the Audio in <alljoyn_root>/service/audio and was presented with the problem of missing android.os and android.media. was wondering if there are any help with this. My goal is to get all the library to run the audio sample for Android. The .so file you will use in the armeabi folder of the eclipse project.</alljoyn_root>

#Summary error output
alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:21: package android.media does not exist
alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:22: package android.os does not exist
alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:27: package android.util does not exist

Running the build using the following

# command
  scons OS=android CPU=arm ANDROID_API=9 ANDROID_SDK=/home/george/Downloads/adt-bundle-linux-x86_64-20140321/sdk ANDROID_NDK=~/Downloads/adt-bundle-linux-x86/sdk/android-ndk-r9d BINDINGS=cpp,java ANDROID_SRC=~/Gingerbread/android WS=off

The following are the error messages

    [JAVAC]   samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceListener.java
samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:21: package android.media does not exist
import android.media.MediaPlayer;
samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:22: package android.os does not exist
import android.os.Bundle;
samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:23: package android.os does not exist
import android.os.Handler;
samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:24: package android.os does not exist
import android.os.HandlerThread;
samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:25: package android.os does not exist
import android.os.Looper;
samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:26: package android.os does not exist
import android.os.Message;
samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:27: package android.util does not exist
import android.util.Log;

Would Greatly Appreciate any help

Thanks, George

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-04-11 16:16:27 -0700

bspencer gravatar image

I just posted the way to compile the AllJoyn Audio service for Android here: ( https://ask.allseenalliance.org/question/154/unable-to-build-alljoyn-audio-service-framework-for-android/ )

edit flag offensive delete publish link more


Hi bspencer I've got a question. Will the Android sample work in conjunction ( be able to connect) with the sample that's on the Linux side. Will the audio sample in android be able to stream to the audio sample in Linux? Thanks George

AAudio ( 2014-04-13 12:03:32 -0700 )edit

YES! This is the power of AllJoyn, for applications written in different programming languages to be able to communicate and interact regardless of the OS or language used. One could even port the AllJoyn Audio Service to the AllJoyn Thin Library and run it on an Arduino Due and the java or linux sample would be able to stream to the MCU running C software. No port of the Audio Service to Thin Library exists, but it is a possibility for someone to implement.

bspencer ( 2014-04-14 10:38:27 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-04-10 07:01:43 -0700

Seen: 233 times

Last updated: Apr 11 '14