Re: [android-developers] How to get a reference to the stock launcher activity object?

2012-05-29 Thread Daniel
Thanks for the replies! Yes, taking screenshots has been plan B. It is the way to go now. -- 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

Re: [android-developers] How to get a reference to the stock launcher activity object?

2012-05-28 Thread Daniel
The main aim of this hack is to study the placement of the shortcuts on the screens. If I would force another launcher on the study participants, they would have to rearrange all the shortcuts and widgets again, so that this step would distort the collected data. -- You received this message

Re: [android-developers] How to get a reference to the stock launcher activity object?

2012-05-28 Thread Mark Murphy
What you want is impossible, for obvious security reasons. Launcher2 is not your app. You did not write that app. You cannot get a reference to the launcher activity object in your own app's process, any more than you can get a reference to the user's preferred banking activity object, so I can

Re: [android-developers] How to get a reference to the stock launcher activity object?

2012-05-23 Thread TreKing
On Sun, May 20, 2012 at 2:56 PM, Daniel daniel.waxwei...@gmail.com wrote: I want to read out the shortcuts' and widgets' position and name on the screens of the launcher. Since every launcher is different, I will focus on the stock launcher of Android for the moment. How about making a

[android-developers] How to get a reference to the stock launcher activity object?

2012-05-21 Thread Daniel
I want to read out the shortcuts' and widgets' position and name on the screens of the launcher. Since every launcher is different, I will focus on the stock launcher of Android for the moment. I have not found an API to do this, so I am trying my luck with Java's Reflection API. So far I