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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:43:13+00:00 2026-05-18T00:43:13+00:00

I am developing my first app on the G1, with firmware 2.2, and my

  • 0

I am developing my first app on the G1, with firmware 2.2, and my code crashes on the emulator and on the phone when I try to run it.

I have the following:

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Prepare recorder source and type
    recorder = new MediaRecorder();
    recorder.setAudioSource(MediaRecorder.AudioSource.MIC);

The code will crash on the last line, when trying to execute recorder.setAudioSource(MediaRecorder.AudioSource.MIC).

After a few Google searches, it seems like a lot of people are having this problem but I cannot find any solutions for it!

Does anyone know why this is happening and how to fix it please?

I would really appreciate it,

Thank you,

Jary

  • 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-18T00:43:14+00:00Added an answer on May 18, 2026 at 12:43 am

    I found the solution, it has to be:

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

Sidebar

Related Questions

Yesterday I have started developing my first Metro style App using JavaScript. I've used
I'm developing a first iPhone app for iOS 4.x/5.0 and have some confusions on
I'm developing my first Mac App have some issues with shell commands... I'm trying
Looking at developing an iphone app for the first time upon Windows. I have
I'm developing my first iPhone app, and while implementing user preferences, I have a
I am developing my first Android app. I have a ListActivity which uses the
I have samsung i5503 galaxy. I got a problem in developing app. First I
I've been developing my first iPhone app part-time and would like to start using
For an app I'm developing for Facebook, when the user first logs in, I'd
I have been developing my first TCP/Socket based application with Apache Mina, it looks

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.