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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:54:50+00:00 2026-06-06T18:54:50+00:00

I am opening a file using the ACTION_VIEW intent from my app. Now i

  • 0

I am opening a file using the ACTION_VIEW intent from my app.
Now i want to perform some actions in my app whenever this file is closed.

This can be closed either by pressing back or by the context menu option of the app that opened the file.

Is there a way my app can get to know when a file is closed

  • 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-06T18:54:51+00:00Added an answer on June 6, 2026 at 6:54 pm

    when you want to launch the other app, use startActivityForResult() instead of startActivity(). And override the onActivityResult() method in your activity class. Most of the apps return a result of RESULT_OK or RESULT_CANCELED when the user exits from their app. And when they exit, onActivityResult() method will be called in your app, where you can put code to do whatever you want after that. Check the android doc for more help and info

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

Sidebar

Related Questions

Simple question: I am opening a file in matlab 7.x, and I want to
What I mean by this, is opening a file with a Java code in
In Emacs 23.1 I'm opening up a file with conflict markers from a svn
I 'm opening a video file (3gp) file using code below String url =
I tried opening xml file using both the ways, but only the latter part
I am opening a file using the OpenFileDialog in c# and I am noticing
I'm writing some integration tests using a robot. I have the robot opening a
I am trying to create an app that will perform actions on specific times
I want open xls file in iPad which contain macro. This macro are security
I am trying to retrieve the text data from an ePub file using Java.

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.