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 8909993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:34:32+00:00 2026-06-15T03:34:32+00:00

I am creating an app to record voice, when I try to store file

  • 0

I am creating an app to record voice, when I try to store file in sdcard with

<uses-sdk android:minSdkVersion="8"

it gives me error “No such file or directory”, but when I comment out the “uses-sdk” part from manifest, it is working fine. I am not sure what is the actual problem, but it seems like it is due to setting sdk-version in manifest.
I also tried increasing/decreasing minSdkVersion, but still same error.

Below is the error log.

 11-28 15:53:54.887: W/System.err(5935): java.io.FileNotFoundException: /mnt/sdcard/Recorder/voicemail.3gp (No such file or directory)
11-28 15:53:54.897: W/System.err(5935):     at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
11-28 15:53:54.897: W/System.err(5935):     at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
11-28 15:53:54.897: W/System.err(5935):     at java.io.FileOutputStream.<init>(FileOutputStream.java:94)
11-28 15:53:54.897: W/System.err(5935):     at java.io.FileOutputStream.<init>(FileOutputStream.java:165)
11-28 15:53:54.897: W/System.err(5935):     at java.io.FileOutputStream.<init>(FileOutputStream.java:144)
11-28 15:53:54.897: W/System.err(5935):     at android.media.MediaRecorder.prepare(MediaRecorder.java:540)
11-28 15:53:54.897: W/System.err(5935):     at com.abc.SendVoiceMailFragment.startRecording(SendVoiceMailFragment.java:96)
11-28 15:53:54.897: W/System.err(5935):     at com.abc.SendVoiceMailFragment.access$0(SendVoiceMailFragment.java:84)
11-28 15:53:54.897: W/System.err(5935):     at com.abc.SendVoiceMailFragment$3.onClick(SendVoiceMailFragment.java:59)
11-28 15:53:54.897: W/System.err(5935):     at android.view.View.performClick(View.java:2532)
11-28 15:53:54.897: W/System.err(5935):     at android.view.View$PerformClick.run(View.java:9293)
11-28 15:53:54.897: W/System.err(5935):     at android.os.Handler.handleCallback(Handler.java:587)
11-28 15:53:54.897: W/System.err(5935):     at android.os.Handler.dispatchMessage(Handler.java:92)
11-28 15:53:54.897: W/System.err(5935):     at android.os.Looper.loop(Looper.java:150)
11-28 15:53:54.897: W/System.err(5935):     at android.app.ActivityThread.main(ActivityThread.java:4277)
11-28 15:53:54.897: W/System.err(5935):     at java.lang.reflect.Method.invokeNative(Native Method)
11-28 15:53:54.897: W/System.err(5935):     at java.lang.reflect.Method.invoke(Method.java:507)
11-28 15:53:54.897: W/System.err(5935):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-28 15:53:54.897: W/System.err(5935):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-28 15:53:54.897: W/System.err(5935):     at dalvik.system.NativeStart.main(Native Method)

EDIT
Here is my manifest file

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.abc"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="8" /> 

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" >
    </uses-permission>
    <uses-permission
        android:name="android.permission.INTERNET"
        android:protectionLevel="normal" >
    </uses-permission>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" >
    </uses-permission>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" >
    </uses-permission>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" >
    </uses-permission>
    <uses-permission android:name="android.permission.GET_ACCOUNTS" >
    </uses-permission>
    <uses-permission android:name="android.permission.USE_CREDENTIALS" >
    </uses-permission>
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" >
    </uses-permission>
    <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" >
    </uses-permission>
    <uses-permission android:name="android.permission.CAMERA" >
    </uses-permission>
    <uses-permission android:name="android.permission.SEND_SMS" >
    </uses-permission>
    <uses-permission android:name="android.permission.RECORD_AUDIO" >
    </uses-permission>
    <uses-permission android:name="androd.permission.WRITE_EXTERNAL_STORAGE" />

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="false"
        android:normalScreens="true"
        android:smallScreens="true" />

    <application
        android:debuggable="true"
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        android:theme="@style/tab_name" >
        <activity
            android:name=".SplashScreen"
            android:icon="@drawable/icon"
            android:label="@string/app_name"
            android:screenOrientation="portrait"
            android:theme="@android:style/Theme.NoTitleBar" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>    
</manifest>

My code to create file

private String getFilename(){
        String filepath = Environment.getExternalStorageDirectory().getPath();
        File file = new File(filepath,AUDIO_RECORDER_FOLDER);

        if(!file.exists()){
            file.mkdirs();
        }

        return (file.getAbsolutePath() + "/" + AUDIO_FILE_NAME + ".3gp");
    }
  • 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-06-15T03:34:33+00:00Added an answer on June 15, 2026 at 3:34 am

    The correct way of doing what you are doing in the manifest is:

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="15" /> <!-- You need a target
    

    Also this part should come after the <uses-sdk> tag:

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on creating a checkbook app for android using a database to record
I am creating an exercise app that will record the weight used and the
I am creating an app using iOS 5 SDK. I managed to push views
I'm creating quiz app of sorts for Android. The questions shall be posed in
I'm creating an app that uses Rails to serve webpages and node.js/socket.io to facilitate
I am creating an android app that basically records an applies an Effect on
I am creating an app that contains voice recording and playing. Is it possible
I'm creating an app where I have a simple delete record on the index
we are creating a location-enabled app where users use this app to record certain
My record sheet app has a menu option for creating a new, blank record

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.