Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-14 Thread Linda Li
I mean, when we relaunch the application, the page is Login Page. if we press back button, it is Gallery. If we continue pressing back button, it goes to HOME. The whole process seems not clean (or not neat, or not friendly, or weird) to the user, since we do not expect a Gallery page hidden

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-14 Thread TreKing
On Sun, Jul 14, 2013 at 3:15 PM, Linda Li codingpotatoli...@gmail.comwrote: I mean, when we relaunch the application, the page is Login Page. if we press back button, it is Gallery. If we continue pressing back button, it goes to HOME. Sounds like your task stack is screwed up. You can make

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-11 Thread TreKing
On Wed, Jul 10, 2013 at 11:01 PM, Linda Li codingpotatoli...@gmail.comwrote: It is not clean. Actually I can make relaunching the app by starting with Login page. However, when we press back, there is Gallery. It is not clean at all. I have no idea what you mean by it not being clean.

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-10 Thread Linda Li
I do not think using default Gallery is not secure. I also use default camera intent in the app. I only need the picture. The picture is not secure: it is in the storage. So this would not be a problem. On Tuesday, July 9, 2013 1:39:59 PM UTC-5, Kristopher Micinski wrote: I guess my point is

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-10 Thread Linda Li
On Tuesday, July 9, 2013 11:30:37 PM UTC-5, TreKing wrote: I already provided you a direct link to an Activity flag whose description seems to match exactly what you want. What's the problem with that? The link you posted is not what I want. It clear the activities when we relaunch the

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-09 Thread TreKing
On Mon, Jul 8, 2013 at 10:45 PM, Linda Li codingpotatoli...@gmail.comwrote: However, I do not know all activities are cleared immediately after pressing HOME button, or immediately after launching the application.

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-09 Thread Kristopher Micinski
so call finish in onPause? Kris On Mon, Jul 8, 2013 at 11:45 PM, Linda Li codingpotatoli...@gmail.com wrote: If I use clearTaskOnLaunch of activity A, then the whole procedure can be what I want. However, I do not know all activities are cleared immediately after pressing HOME button, or

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-09 Thread Linda Li
You cannot get the activity ID of the thrid-party activity, such as Gallery. On Tuesday, July 9, 2013 8:03:57 AM UTC-5, Kristopher Micinski wrote: so call finish in onPause? Kris -- -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-09 Thread Kristopher Micinski
It sounds like your design is flawed and completely insecure: you really thinking that not showing the user the screen any more --- even though you're going through another app and handing all the sensitive information to it --- sounds like a good security policy? Merely not showing the screen

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-09 Thread Linda Li
I plan to kill all activities in the app, of course. If all activities in the app are my own, the goal can be easily implemented. However, now we need to call a thrid-party activity, such as Gallery (yes, we could design our gallery. Here is an example): So if the user presses HOME button

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-09 Thread Kristopher Micinski
I guess my point is that if you don't control the app, whose to say it won't steal your data? Nothing stops it from doing so. Furthermore, how are you going to transmit the data so that the gallery app gets it in a secure way? The gallery doesn't have any features that allow encryption or any

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-09 Thread TreKing
I already provided you a direct link to an Activity flag whose description seems to match exactly what you want. What's the problem with that? On Tue, Jul 9, 2013 at 1:12 PM, Linda Li codingpotatoli...@gmail.comwrote: So if the user presses HOME button when he is during Gallery, I still want

[android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-08 Thread Linda Li
I can only get the package name and class name of the top activity object, using activityManager.getRunningTasks. The reason I want to get the reference to the top activity object is: My application FOOL will start a third-part activity, say Gallery intent activity. For example, the

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-08 Thread TreKing
On Mon, Jul 8, 2013 at 8:33 PM, Linda Li codingpotatoli...@gmail.comwrote: So when I start FOOL again, I see Gallery! This is not desired at all! And why not? If I opened the Gallery via your app, and went home, when I returned to your app I would expect to still be in the Gallery as this was

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-08 Thread Linda Li
If I use clearTaskOnLaunch of activity A, then the whole procedure can be what I want. However, I do not know all activities are cleared immediately after pressing HOME button, or immediately after launching the application. I just asked the question in clearTaskOnLaunch behavior ambiguous I