I'm writing a back ground app and would like to be able to tell which
app is currently running (actually has focus).
I'm particularly interested in if the Home screen is being shown.
Can anyone help with this?
On Aug 27, 5:40 pm, GodsMoon <godsm...@gmail.com> wrote:
> I'm writing a back ground app and would like to be able to tell which
> app is currently running (actually has focus).
> I'm particularly interested in if the Home screen is being shown.
> Can anyone help with this?
I got stumped on that too.
There is a call that will get a list of what is running and tell if it
has user-interactive level of priority, but that's not unique enough -
a few things (in call screen for example) keep this even when their
window is not visible. Another problem is that latin input method can
show up in the list interactive priority, but you don't know what
application it is accepting input on behalf of.
> On Aug 27, 5:40 pm, GodsMoon <godsm...@gmail.com> wrote:
> > I'm writing a back ground app and would like to be able to tell which
> > app is currently running (actually has focus).
> > I'm particularly interested in if the Home screen is being shown.
> > Can anyone help with this?
> I got stumped on that too.
> There is a call that will get a list of what is running and tell if it
> has user-interactive level of priority, but that's not unique enough -
> a few things (in call screen for example) keep this even when their
> window is not visible. Another problem is that latin input method can
> show up in the list interactive priority, but you don't know what
> application it is accepting input on behalf of.
> That might be enough info for my app.
> Which api are you looking at?
> On Aug 27, 6:06 pm, Chris Stratton <cs07...@gmail.com> wrote:
> > On Aug 27, 5:40 pm, GodsMoon <godsm...@gmail.com> wrote:
> > > I'm writing a back ground app and would like to be able to tell which
> > > app is currently running (actually has focus).
> > > I'm particularly interested in if the Home screen is being shown.
> > > Can anyone help with this?
> > I got stumped on that too.
> > There is a call that will get a list of what is running and tell if it
> > has user-interactive level of priority, but that's not unique enough -
> > a few things (in call screen for example) keep this even when their
> > window is not visible. Another problem is that latin input method can
> > show up in the list interactive priority, but you don't know what
> > application it is accepting input on behalf of.
Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
No there is no API to do this. What are you trying to accomplish?
Note that your code will break in many many situations -- when a custom home
screen is being used, on a device where the manufacturer is not using the
base platform home app, in the future when we have more memory so don't need
to run home in a shared process, etc.
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails. All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.
I'm writing an app that turns off the keyguard and I would like to
exitKeyguardSecurely when you user goes back to the home screen.
This works great when hitting the Home button, but the user can back
to the home screen without prompt by using the back button (I think
this is an API bug).
So I'm trying to determine if the Home screen is displayed so I can
force exitKeyguardSecurely.
I realize homescreen replacements will break this code but until the
API bug gets fixed I don't see a good way around this.
On Aug 29, 2:35 pm, Dianne Hackborn <hack...@android.com> wrote:
> No there is no API to do this. What are you trying to accomplish?
> Note that your code will break in many many situations -- when a custom home
> screen is being used, on a device where the manufacturer is not using the
> base platform home app, in the future when we have more memory so don't need
> to run home in a shared process, etc.
> On Sat, Aug 29, 2009 at 9:59 AM, GodsMoon <godsm...@gmail.com> wrote:
> > I have a solution for home screen detection, but its slow and
> > horrible.
> > I run this bit of code every 1 seconds.
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails. All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
On Sat, Aug 29, 2009 at 11:52 AM, GodsMoon <godsm...@gmail.com> wrote: > I'm writing an app that turns off the keyguard and I would like to > exitKeyguardSecurely when you user goes back to the home screen. > This works great when hitting the Home button, but the user can back > to the home screen without prompt by using the back button (I think > this is an API bug).
What API bug? Of course you can press back to go to the home screen.
What are you doing to determine when the user presses home? Afaik there isn't really a way to do this since the system completely consumes the home key.
Unfortunately, I don't think there is any robust way to do what you want. I can't imagine an app being able to do this consistently with the current API... and that should kind-of give you a moment of pause since you are messing with the lock screen and thus fundamental security of the device.
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
> On Sat, Aug 29, 2009 at 11:52 AM, GodsMoon <godsm...@gmail.com> wrote:
> > I'm writing an app that turns off the keyguard and I would like to
> > exitKeyguardSecurely when you user goes back to the home screen.
> > This works great when hitting the Home button, but the user can back
> > to the home screen without prompt by using the back button (I think
> > this is an API bug).
> What API bug? Of course you can press back to go to the home screen.
> What are you doing to determine when the user presses home? Afaik there
> isn't really a way to do this since the system completely consumes the home
> key.
> Unfortunately, I don't think there is any robust way to do what you want. I
> can't imagine an app being able to do this consistently with the current
> API... and that should kind-of give you a moment of pause since you are
> messing with the lock screen and thus fundamental security of the device.
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
On Sat, Aug 29, 2009 at 12:54 PM, GodsMoon <godsm...@gmail.com> wrote: > Dianne Hackborn, > Are you familiar with the KeyguardManager class? Its really cool, I > haven't seen anything like it on any other platform and I'm excited to > take advantage of it. > http://developer.android.com/reference/android/app/KeyguardManager.html
Yes I am.
> It can take over the Home screen button
I don't know what you mean. As far as I know, it has nothing to do with the home screen button, it just controls whether the lock screen is shown.
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
I admit that what I'm trying to do is a little unorthodox and somewhat
creative. The idea I have does slightly change the way security works
on the phone. However, I don't think I'm abusing the API or decreasing
security. Its somewhat hard to explain my app idea. I will be
releasing a video of my app in action for the ADC2 fairly soon.
I'll post back here once it is released the video. I'd love to get
feedback to make sure I'm not doing anything I'm not suppose to.
Thanks for your help.
On Aug 29, 7:39 pm, Dianne Hackborn <hack...@android.com> wrote:
> On Sat, Aug 29, 2009 at 12:54 PM, GodsMoon <godsm...@gmail.com> wrote:
> > Dianne Hackborn,
> > Are you familiar with the KeyguardManager class? Its really cool, I
> > haven't seen anything like it on any other platform and I'm excited to
> > take advantage of it.
> >http://developer.android.com/reference/android/app/KeyguardManager.html
> Yes I am.
> > It can take over the Home screen button
> I don't know what you mean. As far as I know, it has nothing to do with the
> home screen button, it just controls whether the lock screen is shown.
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
On Sat, Aug 29, 2009 at 9:23 PM, GodsMoon <godsm...@gmail.com> wrote:
> I admit that what I'm trying to do is a little unorthodox and somewhat > creative. The idea I have does slightly change the way security works > on the phone. However, I don't think I'm abusing the API or decreasing > security. Its somewhat hard to explain my app idea. I will be > releasing a video of my app in action for the ADC2 fairly soon. > I'll post back here once it is released the video. I'd love to get > feedback to make sure I'm not doing anything I'm not suppose to.
Dianne,
I've published a video to give you a better idea of the problem I'm
having with the back button protection. Hopefully my video helps show
the problem I am having.
http://www.youtube.com/watch?v=ipue9Yhi5VA The bug I mention in the video is NOT the bug report I filed out but
rather http://code.google.com/p/android/issues/detail?id=2643 Anyway, does this give any more credence to My bug report?
Also, I'm not abusing the API, am I? I would guess that the
KeyguardManager was not designed to be triggered with a background
processes, but a lot of people are quite interested in my app and I'm
excited to release it soon.
Thanks for the input,
David Shellabarger
On Sep 3, 5:39 pm, Hong <lordh...@gmail.com> wrote:
> On Sat, Aug 29, 2009 at 9:23 PM, GodsMoon <godsm...@gmail.com> wrote:
> > I admit that what I'm trying to do is a little unorthodox and somewhat
> > creative. The idea I have does slightly change the way security works
> > on the phone. However, I don't think I'm abusing the API or decreasing
> > security. Its somewhat hard to explain my app idea. I will be
> > releasing a video of my app in action for the ADC2 fairly soon.
> > I'll post back here once it is released the video. I'd love to get
> > feedback to make sure I'm not doing anything I'm not suppose to.
> Dianne,
> I've published a video to give you a better idea of the problem I'm
> having with the back button protection. Hopefully my video helps show
> the problem I am having.http://www.youtube.com/watch?v=ipue9Yhi5VA > The bug I mention in the video is NOT the bug report I filed out but
> ratherhttp://code.google.com/p/android/issues/detail?id=2643 > Anyway, does this give any more credence to My bug report?
> Also, I'm not abusing the API, am I? I would guess that the
> KeyguardManager was not designed to be triggered with a background
> processes, but a lot of people are quite interested in my app and I'm
> excited to release it soon.
> Thanks for the input,
> David Shellabarger
> On Sep 3, 5:39 pm, Hong <lordh...@gmail.com> wrote:
> > On Sat, Aug 29, 2009 at 9:23 PM, GodsMoon <godsm...@gmail.com> wrote:
> > > I admit that what I'm trying to do is a little unorthodox and somewhat
> > > creative. The idea I have does slightly change the way security works
> > > on the phone. However, I don't think I'm abusing the API or decreasing
> > > security. Its somewhat hard to explain my app idea. I will be
> > > releasing a video of my app in action for the ADC2 fairly soon.
> > > I'll post back here once it is released the video. I'd love to get
> > > feedback to make sure I'm not doing anything I'm not suppose to.
On Tue, Sep 15, 2009 at 7:57 PM, GodsMoon <godsm...@gmail.com> wrote:
> ping...
> On Sep 8, 4:02 pm, GodsMoon <godsm...@gmail.com> wrote:
> > Dianne,
> > I've published a video to give you a better idea of the problem I'm
> > having with the back button protection. Hopefully my video helps show
> > the problem I am having.http://www.youtube.com/watch?v=ipue9Yhi5VA > > The bug I mention in the video is NOT the bug report I filed out but
> > ratherhttp://code.google.com/p/android/issues/detail?id=2643 > > Anyway, does this give any more credence to My bug report?
> > Also, I'm not abusing the API, am I? I would guess that the
> > KeyguardManager was not designed to be triggered with a background
> > processes, but a lot of people are quite interested in my app and I'm
> > excited to release it soon.
> > Thanks for the input,
> > David Shellabarger
> > On Sep 3, 5:39 pm, Hong <lordh...@gmail.com> wrote:
> > > On Sat, Aug 29, 2009 at 9:23 PM, GodsMoon <godsm...@gmail.com> wrote:
> > > > I admit that what I'm trying to do is a little unorthodox and
> somewhat
> > > > creative. The idea I have does slightly change the way security works
> > > > on the phone. However, I don't think I'm abusing the API or
> decreasing
> > > > security. Its somewhat hard to explain my app idea. I will be
> > > > releasing a video of my app in action for the ADC2 fairly soon.
> > > > I'll post back here once it is released the video. I'd love to get
> > > > feedback to make sure I'm not doing anything I'm not suppose to.
> My 1st ADC 2 judging app is Smart Lock ^_^ interesting!
> On Tue, Sep 15, 2009 at 7:57 PM, GodsMoon <godsm...@gmail.com> wrote:
> > ping...
> > On Sep 8, 4:02 pm, GodsMoon <godsm...@gmail.com> wrote:
> > > Dianne,
> > > I've published a video to give you a better idea of the problem I'm
> > > having with the back button protection. Hopefully my video helps show
> > > the problem I am having.http://www.youtube.com/watch?v=ipue9Yhi5VA > > > The bug I mention in the video is NOT the bug report I filed out but
> > > ratherhttp://code.google.com/p/android/issues/detail?id=2643 > > > Anyway, does this give any more credence to My bug report?
> > > Also, I'm not abusing the API, am I? I would guess that the
> > > KeyguardManager was not designed to be triggered with a background
> > > processes, but a lot of people are quite interested in my app and I'm
> > > excited to release it soon.
> > > Thanks for the input,
> > > David Shellabarger
> > > On Sep 3, 5:39 pm, Hong <lordh...@gmail.com> wrote:
> > > > On Sat, Aug 29, 2009 at 9:23 PM, GodsMoon <godsm...@gmail.com> wrote:
> > > > > I admit that what I'm trying to do is a little unorthodox and
> > somewhat
> > > > > creative. The idea I have does slightly change the way security works
> > > > > on the phone. However, I don't think I'm abusing the API or
> > decreasing
> > > > > security. Its somewhat hard to explain my app idea. I will be
> > > > > releasing a video of my app in action for the ADC2 fairly soon.
> > > > > I'll post back here once it is released the video. I'd love to get
> > > > > feedback to make sure I'm not doing anything I'm not suppose to.