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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:04:24+00:00 2026-05-25T18:04:24+00:00

I am trying to start native record activity, the voice recorder shows up and

  • 0

I am trying to start native record activity, the voice recorder shows up and when it save the clip, my application shows error. i am using htc desire and htc wildfire and also testing on emulator,

           Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
                   startActivityForResult(intent, GET_AUDIO);


       @Override
       protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   super.onActivityResult(requestCode, resultCode, data);

      switch (requestCode) {
   case GET_AUDIO:
    Log.i(TAG, data.getDataString());
    break;
 }
}

my Logcat Message

09-18 15:18:35.015: ERROR/ContentService(98): Content Service Crash
09-18 15:18:35.015: ERROR/ContentService(98): java.lang.NullPointerException
09-18 15:18:35.015: ERROR/ContentService(98):     at android.content.ContentService.notifyChange(ContentService.java:166)
09-18 15:18:35.015: ERROR/ContentService(98):     at android.content.IContentService$Stub.onTransact(IContentService.java:91)
09-18 15:18:35.015: ERROR/ContentService(98):     at android.content.ContentService.onTransact(ContentService.java:83)
09-18 15:18:35.015: ERROR/ContentService(98):     at android.os.Binder.execTransact(Binder.java:288)
09-18 15:18:35.015: ERROR/ContentService(98):     at dalvik.system.NativeStart.run(Native Method)



09-18 15:18:35.245: ERROR/AndroidRuntime(4477): FATAL EXCEPTION: main
09-18 15:18:35.245: ERROR/AndroidRuntime(4477): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=Intent { dat=content://media/external/audio/media/9 }} to activity {ChatActivity}: java.lang.NullPointerException
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.app.ActivityThread.deliverResults(ActivityThread.java:3712)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.app.ActivityThread.handleSendResult(ActivityThread.java:3754)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.app.ActivityThread.access$2800(ActivityThread.java:135)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2162)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.os.Handler.dispatchMessage(Handler.java:99)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.os.Looper.loop(Looper.java:143)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.app.ActivityThread.main(ActivityThread.java:4914)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at java.lang.reflect.Method.invokeNative(Native Method)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at java.lang.reflect.Method.invoke(Method.java:521)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at dalvik.system.NativeStart.main(Native Method)




09-18 15:18:35.245: ERROR/AndroidRuntime(4477): Caused by: java.lang.NullPointerException
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.os.Parcel.readException(Parcel.java:1253)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.os.Parcel.readException(Parcel.java:1235)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.content.IContentService$Stub$Proxy.notifyChange(IContentService.java:458)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.content.ContentResolver.notifyChange(ContentResolver.java:850)
09-18 15:18:35.245: ERROR/AndroidRuntime(4477):     at android.content.ContentResolver.notifyChange(ContentResolver.java:836)
  • 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-25T18:04:24+00:00Added an answer on May 25, 2026 at 6:04 pm

    Seems like null pointer exception in your onActivityResult.

    You must expect that data may be null, and also check for resultCode. Don’t call methods on data blindly without checking what’s returned.

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

Sidebar

Related Questions

I am trying to start the main activity from inside a BroadcastReceiver. I dont
I'm trying start java application but in browser i see standard tomcat's page. Server
I am trying to debug a simple Java application on my machine using Eclipse
I'm trying to debug a native application that uses some C# components but I'm
What should I change to fix following error: I'm trying to start a job
I am trying to debug native C code for an Android application, where I
I'm Trying to start the saveBookmark activity and I get Force Close for some
I'm trying to develop a simple mxml Flex application to start Skype from the
I am trying to create header file for java native method in android application
When trying to start my JUnit-Test out of Eclipse, I get a ClassNotFoundException. When

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.