After I followed the document, it is still not working right. Here is more
details.

Right now, I build my app using 3.0 sdk. And for platform 2.3.3 or later, it
worked fine. But for older system, when I need to call
MediaMetadataRetriver, it did get into the old code, but when it tries to
load the library "media_jni", it throws exception, I think the exception is
"unsuccessful link error". I don't know if it is because building using
older sdk worked, but with new sdk, did they removed "media_jni" because
android 3.0 has api for it?

What should I do now?


On Fri, Apr 22, 2011 at 11:11 AM, Yves Liu <[email protected]> wrote:

> Thanks, that is exactly what I am looking for.
>
>
> On Fri, Apr 22, 2011 at 12:01 AM, Zsolt Vasvari <[email protected]>wrote:
>
>>
>> http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html
>>
>> On Apr 22, 2:39 pm, "[email protected]" <[email protected]> wrote:
>> > I have an app which uses mediametadataretriever to generate thumbnails
>> > for videos. In the older system, I always use the media_jni library
>> > and define my own mediametadataretriever class and it worked fine.
>> > With API level 10 or later, mediametadataretriever is an built-in API
>> > now. So, I am not sure what I should do. If I still build my project
>> > using earlier version of the SDk, then because media_jni library
>> > doesn't exist in the new sdk, so, my call will not work. If I import
>> > the new media.mediametadataretriever, then I have to use new sdk to
>> > build the project and use the new API to do it. It works on the new
>> > system, But my old code will not work anymore.
>> >
>> > So, what should I do now? Is splitting the project into 2, one for old
>> > system and use older sdk to build, and one for new system and use the
>> > latest sdk to build, the only option?
>> >
>> > Thanks
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" 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-developers?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to