specific. On Wednesday, September 5, 2012 11:28:28 PM UTC+9, MagouyaWare wrote: > > Is "Activity A" a specific activity of a specific app or just any > arbitrary activity? > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Wed, Sep 5, 2012 at 6:34 AM, Dan <[email protected] <javascript:>>wrote: > >> By "not readily" he means that there is no nice public API for >> "what application has focus", but things that look close (e.g. >> RunningAppProcessInfo importance sounds close, but requires >> polling, is slow to update, and refers to scheduler time, not >> what the user is doing.) If you want to play non public API >> games pre-JellyBean you could watch for ActivityManager >> messages for application start (JellyBean restricts the Log >> output so you need to be a system app to see it.) >> >> The Google company line for not providing such an API seems >> to range from privacy to performance. The net result is that >> if the performance monitoring tools provided (stuff under >> Settings or dumpsys) don't match your needs precisely, tough >> luck, you don't get to harness the app developers out there >> to create something beyond what Google provides. >> >> Unless your company has some bizarre change request process, >> you'll be much happier having activity A do some IPC you can >> count on. >> >> >> On Tuesday, September 4, 2012 10:24:46 PM UTC-4, HK wrote: >>> >>> Yes, Activity A belongs to a different team. I can ask for change >>> request if possible. >>> >>> 1) But what do you mean by 'not readily' ? is it possible to detect ? >>> >>> 2) I was wondering if there was another solution using >>> TYPE_SYSTEM_DIALOG which I am guessing if it can be called from a Service >>> rather than an Activity. But nobody replied to this post. >>> >>> On Wednesday, September 5, 2012 11:18:04 AM UTC+9, Mark Murphy (a >>> Commons Guy) wrote: >>>> >>>> On Tue, Sep 4, 2012 at 10:12 PM, HK <[email protected]> wrote: >>>> > So, in Activity A's onPause, is it possible to find which activity >>>> is >>>> > launched ? i.e., when Activity B is launched, is it possible to find >>>> in >>>> > Activity A's onPause that Activity B is launched ? >>>> >>>> Not readily. Moreover, you "do not have much control" over Activity A. >>>> >>>> -- >>>> Mark Murphy (a Commons Guy) >>>> http://commonsware.com | http://github.com/commonsguy >>>> http://commonsware.com/blog | http://twitter.com/commonsguy >>>> >>>> Android Training in NYC: >>>> http://marakana.com/training/**android/<http://marakana.com/training/android/> >>>> >>>> >>> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to >> [email protected]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

