Okay, I think I'm getting close, but not quite there yet--

Followed your steps below and I got the emulator to launch (using the
one located in out/host/linux-x86/bin/emulator).  But now I'm having
issues when trying to launch ApiDemos so I can test the media
playback.  The following are what I did:

Approach 1:
=========

1) Modify MediaPlayerDemo_Video.java from development/samples/ApiDemos/
src/com/example/android/apis/media/ and supplied the path to the media
I want to do a local playback with

2) cd to <android-root> then run make (apparently running 'make -f
Android.mk' from ApiDemos directory doesn't work to build the apk file
(???))

3) I was expecting an ApiDemos.apk to get built, but it didn't and
couldn't locate it when I ran the 'find' command.  Instead, after
looking at the make output, it appears an apk is created in "out/
target/product/generic/obj/APPS/ApiDemos_intermediates/package.apk"
instead.  Is this the ApiDemos.apk?  I'm not sure but I have nothing
to lose....

4) Launched emulator (-wipe-data to be sure)

5) Run adb install on package.apk

I got the following error instead:

912 KB/s (1970610 bytes in 2.108s)
        pkg: /data/local/tmp/package.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]


Approach 2:
=========

1) So now I tried building the ApiDemos.apk through Eclipse IDE.
After setting up the project then Running it as an Android
application, it says that there are errors in the project and couldn't
install the ApiDemos application (it looks like problems with the
AndroidManifest.xml file?)  Note that I didn't change anything in this
directory yet except for the file to point to my media file.



Is there something wrong with the ApiDemos source code/manifest in the
latest repository?  Does that need to be updated to reflect changes
with OpenCore 2.0 or is that irrelevant?  How can I fix this error?
(Reminder:  I'm still an android beginner here :) )


Thanks

-R




On Feb 3, 6:54 pm, rktb <[email protected]> wrote:
> I would prefer not mixing the SDK build and the opensource build. The
> following should work:
> <android-root>$ source build/envsetup.sh
> <android-root>$ lunch 1
> <android-root>$ make clean
> <android-root>$ make -j ENABLE_PV_LOGGING=1
> <android-root>$ emulator & adb logcat
>
> -Ravi
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to