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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:44:14+00:00 2026-06-06T12:44:14+00:00

I am trying to debug my app because something is happening from when I

  • 0

I am trying to debug my app because something is happening from when I call the camera intent to when it takes the picture and my app is force closing on the way back. The problem is that the debugger disconnects immediately when the camera intent is called and I can no longer debug my app. I’m debugging on a device and not the emulator. I came across this solution in Google, but it doesn’t seem to work. http://groups.google.com/group/android-developers/browse_thread/thread/6d6b5fa7819e4d74. Does anybody know how to get around this? The debugger should not disconnect when you call an external intent…I mean your app is still running. I just need to know how to keep debugging when I launch an external intent.

Thanks,
Ed

  • 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-06T12:44:16+00:00Added an answer on June 6, 2026 at 12:44 pm

    I just have the same issue when calling the gallery to browse for photos.
    The solution provided in the link you mentioned worked perfectly for me.
    write this code block in OnActivityResult method:

    if (!Debug.isDebuggerConnected()){
        Debug.waitForDebugger();
        Log.d("debug", "started"); // Insert a breakpoint at this line!!
    }
    

    and put a breakpoint in the Log line specified as the comment says.
    When the execution return from the called intent it shall start the debugger and stop in the Log line so you can continue debugging.

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

Sidebar

Related Questions

I'm trying to debug an android app that call native code to do some
I am trying to debug the cause of my app to crash. From my
I'm trying to debug my little app failing to create a Price because of
I am trying to debug a multi-threaded Android app on a 2.3.6 device using
I'm trying to debug an issue that only occurs when my iPhone app receives
When trying to debug a ASP.NET MVC app, the breakpoints in my controllers arent
I am trying to debug my Django project via Eclipse. The app works fine
I am trying to build my iphone app from a swf in windows using
I'm trying to use GDB and KDEvelop to debug a console app under Knoppix
All, I am (trying to) using Netbeans to build a simple Qt app (from

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.