Anyone?

On Fri, Mar 9, 2012 at 11:22 AM, Yves Liu <[email protected]> wrote:
> And another question is here is my code, why can't I capture the crash?
>
> @Override
>       public Bitmap getFrame(String uri) {
>               try{
>                       MediaMetadataRetriever retriever = new
> MediaMetadataRetriever();
>                       retriever.setDataSource(uri);
>                       return retriever.getFrameAtTime();
>           } catch(IllegalArgumentException ex) {
>               ex.printStackTrace();
>           } catch (RuntimeException ex) {
>               ex.printStackTrace();
>           } catch (Throwable e){
>               e.printStackTrace();
>           } finally {
>           }
>           return null;
>       }
>
>
>
> On Fri, Mar 9, 2012 at 11:18 AM, [email protected] <[email protected]> wrote:
>> I have a question which I have no idea what is going on. I have an
>> application which uses MediaMetadataRetriever class to get a video
>> thumbnail, I don't really care which frame it returns, so, I use
>> getFrameAtTime() call to do that. It worked on all API level 10 or up
>> phones before. Recently, I restructured my code and moved this piece
>> of code into a library project, so my other applications can use the
>> same class. But since then, it FC on a lot of phones.
>>
>> I did some research online and found out that there is a bug created
>> for a similar issue
>>
>> http://code.google.com/p/android/issues/detail?id=24300
>>
>> And I also found that some people mentioned that if memory is full or
>> mediascanner is running, this will fail as well.
>>
>> My question is that why it worked for me before? is that because I
>> moved the code the library project? I am out of ideas. Any suggestions
>> will be very appreciated.
>>
>> --
>> 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