Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 before a Login page. On Thursday, July 11, 2013 6:06:51 PM UTC-5, TreKing wrote: On Wed, Jul 10, 2013 at 11:01 PM, Linda Li codingpo...@gmail.comjavascript: wrote: 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. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 the Gallery be part of it's own task so the system does not do what you described. Again, look at the activity flags - I'm sure there's some combination there that will help you achieve your goal. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 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 way to exchange keys. Kris On Tue, Jul 9, 2013 at 2:12 PM, Linda Li codingpo...@gmail.comjavascript: wrote: 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 when he is during Gallery, I still want to kill activities in the app, including Gallery. On Tuesday, July 9, 2013 11:44:15 AM UTC-5, Kristopher Micinski wrote: 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 sounds like a non solution. Kris On Tue, Jul 9, 2013 at 12:39 PM, Linda Li codingpo...@gmail.com wrote: 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. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.comjavascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 task. I want the activities to be killed when pressing the HOME button. There is a gap between the two situations. On Tue, Jul 9, 2013 at 1:12 PM, Linda Li codingpo...@gmail.comjavascript: wrote: So if the user presses HOME button when he is during Gallery, I still want to kill activities in the app, including Gallery. And if the user uses the recent task list to move to another app, not HOME? In that case as well? What difference does it make if the user remains on the Gallery when they come back to your app or not? How is this any less secure than opening the Gallery app to begin with? 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. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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. http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 immediately after launching the application. I just asked the question in clearTaskOnLaunch behavior ambiguous I need to clear all activities immediately after pressing HOME button. The reason, my application is related to some private data, and the first activity actually is login. So security is the top reason. On Monday, July 8, 2013 9:47:22 PM UTC-5, TreKing wrote: On Mon, Jul 8, 2013 at 8:33 PM, Linda Li codingpo...@gmail.com wrote: 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 the last thing I was doing with your app and this is standard Android Behavior. However, if you feel you need to change this, check the Intent flags which you can use when starting activities. I'm sure some combination of them will do what you're looking for. - TreKing - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 sounds like a non solution. Kris On Tue, Jul 9, 2013 at 12:39 PM, Linda Li codingpotatoli...@gmail.com wrote: 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. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 when he is during Gallery, I still want to kill activities in the app, including Gallery. On Tuesday, July 9, 2013 11:44:15 AM UTC-5, Kristopher Micinski wrote: 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 sounds like a non solution. Kris On Tue, Jul 9, 2013 at 12:39 PM, Linda Li codingpo...@gmail.comjavascript: wrote: 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. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 way to exchange keys. Kris On Tue, Jul 9, 2013 at 2:12 PM, Linda Li codingpotatoli...@gmail.com wrote: 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 when he is during Gallery, I still want to kill activities in the app, including Gallery. On Tuesday, July 9, 2013 11:44:15 AM UTC-5, Kristopher Micinski wrote: 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 sounds like a non solution. Kris On Tue, Jul 9, 2013 at 12:39 PM, Linda Li codingpo...@gmail.com wrote: 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. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 to kill activities in the app, including Gallery. And if the user uses the recent task list to move to another app, not HOME? In that case as well? What difference does it make if the user remains on the Gallery when they come back to your app or not? How is this any less secure than opening the Gallery app to begin with? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 the last thing I was doing with your app and this is standard Android Behavior. However, if you feel you need to change this, check the Intent flags which you can use when starting activities. I'm sure some combination of them will do what you're looking for. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object
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 need to clear all activities immediately after pressing HOME button. The reason, my application is related to some private data, and the first activity actually is login. So security is the top reason. On Monday, July 8, 2013 9:47:22 PM UTC-5, TreKing wrote: On Mon, Jul 8, 2013 at 8:33 PM, Linda Li codingpo...@gmail.comjavascript: wrote: 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 the last thing I was doing with your app and this is standard Android Behavior. However, if you feel you need to change this, check the Intent flags which you can use when starting activities. I'm sure some combination of them will do what you're looking for. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.