Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] in PlatformLibrary

by mizmit1222 » Thu, 07 May 2009 09:43:57 GMT


Sponsored Links
 Hi,

PlatformLibrary is a sample of JNI on Android. You will need to
install
.so, .jar and permission file as well as client apk.

Try,
$ cd your/mydroid
$ source build/envsetup.sh
$ cd development/samples/PlatformLibrary/
$ mm

You will get following message which shows where each file should be
installed to.
Install: out/target/product/generic/system/app/
PlatformLibraryClient.apk
Install: out/target/product/generic/system/etc/permissions/
com.example.android.platform_library.xml
Install: out/target/product/generic/system/framework/
com.example.android.platform_library.jar
Install: out/target/product/generic/system/lib/
libplatform_library_jni.so
Copy: out/target/product/generic/system/etc/apns-conf.xml

Cheers,



--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. screen light off problem

Hi All ,
             I am trying to do the screen back light on and off
through program but i am unable to do the screen baclight off through
program .

my code is as follows

static PowerManager pm=null;
static PowerManager.WakeLock wl=null;

//for light on
if(pm == null)
{

    pm = (PowerManager)
context.getSystemService(context.POWER_SERVICE);
    wl = pm.newWakeLock(PowerManager.ACQUIRE_CAUSES_WAKEUP|
PowerManager.FULL_WAKE_LOCK, "MyTag");
      wl.acquire();//duration);
}

//for light off
if(wl != null && wl.isHeld ( ))
{
        wl.release();
         wl      =       null;
}

with the above code i am able to do light on but light off is not
happening.

can anyone throgh some light about what i should do for doing the
light off of the screen programetically.

Regards

-- 

2. Anyone able to use ENCODING_PCM_8BIT in recording and playing sound?

Hi
I am trying to use AudioFormat.ENCODING_PCM_8BIT with AudioRecord and
AudioTrack to record some voice from mic and then play it to the
speaker.

Here is my code:



[CODE]


int     sampleRate = 11025;
                int     bufferSize = AudioRecord.getMinBufferSize(11025*2,
                    AudioFormat.CHANNEL_CONFIGURATION_MONO,
                    AudioFormat.ENCODING_PCM_8BIT);



                AudioRecord arec = new 
AudioRecord(MediaRecorder.AudioSource.MIC,
                                sampleRate, 
AudioFormat.CHANNEL_CONFIGURATION_MONO,
                                AudioFormat.ENCODING_PCM_8BIT, bufferSize);



                short[] buffer = new short[bufferSize];
                arec.startRecording();
arec.read(buffer, 0, bufferSize);

[/CODE]

and here is the code portion for playing the content from the buffer


[CODE]
                AudioTrack atrack = new AudioTrack(AudioManager.STREAM_MUSIC,
                                sampleRate, 
AudioFormat.CHANNEL_CONFIGURATION_MONO,
                                AudioFormat.ENCODING_PCM_8BIT, bufferSize,
                                AudioTrack.MODE_STREAM);

                atrack.setPlaybackRate(sampleRate);
atrack.play();
                        atrack.write(buffer, 0, buffer.length);


[/CODE]

The error I get is an IllegalArgumentException in the line where I am
initializing the arec object. Any idea why it is happening?

The same code works fine with ENCODING_PCM_16BIT and I do not know
what is wrong with it. I tried using byte[] with no luck.

Thanks.

-- 

3. Service or no service

4. disable the search key android alertdialog

5. Sipdroid build problem

6. Localization in Android for Indian Languages

7. Exerciser Monkey and media volume