Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7407951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:49:16+00:00 2026-05-29T05:49:16+00:00

I am unable to find the solution to this problem. I just have to

  • 0

I am unable to find the solution to this problem.
I just have to play an audio file and get the duration of that file. Sometimes it works fine but it shows error:

Below is my logcat:

Please help I am stucked.

02-01 12:30:40.287: E/MediaPlayer(256): error (1, -17)
02-01 12:30:41.896: D/MediaPlayer(256): create failed:
02-01 12:30:41.896: D/MediaPlayer(256): java.io.IOException: Prepare failed.: status=0x1
02-01 12:30:41.896: D/MediaPlayer(256): at android.media.MediaPlayer.prepare(Native Method)
02-01 12:30:41.896: D/MediaPlayer(256): at android.media.MediaPlayer.create(MediaPlayer.java:644)
02-01 12:30:41.896: D/MediaPlayer(256):     at PointOf1761.onClick(PointOf1761.java:953)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.view.View.performClick(View.java:2364)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.view.View.onTouchEvent(View.java:4179)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.view.View.dispatchTouchEvent(View.java:3709)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
02-01 12:30:41.896: D/MediaPlayer(256):     at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
02-01 12:30:41.896: D/MediaPlayer(256):     at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.app.Activity.dispatchTouchEvent(Activity.java:2061)
02-01 12:30:41.896: D/MediaPlayer(256):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.os.Handler.dispatchMessage(Handler.java:99)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.os.Looper.loop(Looper.java:123)
02-01 12:30:41.896: D/MediaPlayer(256):     at android.app.ActivityThread.main(ActivityThread.java:4363)
02-01 12:30:41.896: D/MediaPlayer(256):     at java.lang.reflect.Method.invokeNative(Native Method)
02-01 12:30:41.896: D/MediaPlayer(256):     at java.lang.reflect.Method.invoke(Method.java:521)
02-01 12:30:41.896: D/MediaPlayer(256):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
02-01 12:30:41.896: D/MediaPlayer(256):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
02-01 12:30:41.896: D/MediaPlayer(256):     at dalvik.system.NativeStart.main(Native Method)

it says in line 953 

i have this in 953

953  female = MediaPlayer.create(this, femaleNum[i]);
954         handler.postDelayed(new Runnable() {
955             
956             @Override
957             public void run() {
958                 female.start();
959                 
960             }
961         },1000);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:49:17+00:00Added an answer on May 29, 2026 at 5:49 am

    Please make sure you don’t have too many MediaPlayer objects active at once. See this for reference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After a lot of googling I'm unable to find a solution to this problem.
i am unable to solve this problem and i can´t find any solution elsewhere.
I have been unable to find any decent documentation on this function. The code
I have done my research but I am still unable to find a solution
I've looked all over and have been unable to find a solution to my
Unable to find a SQL diff tool that meets my needs, I am writing
I have been unable to find any documentation on the .build method in Rails
I've been unable to find any info on this, which seems like it could
I have been unable to find any documentation on properly closing database connections in
That may be really simple but I'm unable to find a good answer. How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.