android - Closing application which we use to open implicit intent after activity result -


i wanna know can close application(adobe reader pdf,documentstogo ppt) used open implicit intent after activity result, example:

 file file = classname.this.getfilestreampath(filename);             file.setreadable(true, false);             uri path = uri.fromfile(file);             contid = contentid[position];             intent intent = new intent(intent.action_view);             intent.setdataandtype(path, "application/pdf");             try {                 starttime = system.currenttimemillis();                 startactivityforresult(intent, 6002);              } catch (activitynotfoundexception e) {                 toast.maketext(introduction.this,                         "no application available view pdf",                         toast.length_short).show();} 

is used view pdf when press button onactivityresult after if i'll minimize application , adobe reader continues open in background can see adobe opened file in task manager . sorry if question not clear. answers appreciated.

protected void onactivityresult(int requestcode, int resultcode, intent data) {          super.onactivityresult(requestcode, resultcode, data);          if (requestcode == 6002) {             endtime = system.currenttimemillis();             duration = endtime - starttime;             durationstring = "" + duration;             save();             finish();         } } 

when exit application

there no "exit application" in android.

i can see adobe in application manager

i not know think "application manager" is. however, normal application processes run after have left foreground. android efficiency, in case user elects return app right away, not have waste time , battery setting process. android terminate background process when needs to, in order free system ram other processes.

hence, there nothing need do.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -