:(

Is there any way to circumvent this? Meaning, to get screen info without
relying on the launcher? The app is working flawlessly in the emulator...

Thanks,
PMD

On 1 January 2011 06:35, Dianne Hackborn <[email protected]> wrote:

> It is up to the launcher to decide how much parallax scrolling to do.  The
> sizes and offsets come from whatever the last launcher app set them to be.
>
> On Fri, Dec 31, 2010 at 9:42 PM, Pedro Duque <[email protected]> wrote:
>
>> Let me develop on this subject:
>>
>> I've develop a Live Wallpaper that was working perfectly in Android 2.1.
>> It emulate the standard Android wallpaper by having a bitmap scrolling when
>> a user changes screen.
>>
>> To achieve that effect I use the event "onOffsetsChanged" to detect
>> screen changes when the user swipes left and right.
>>
>> I just installed Android 2.2.1 and now the values returned in 
>> onOffsetsChanged
>> for xPixelOffset and yPixelOffset are always 0. The value for xOffset and
>> yOffset do return values from 0 to 1 but because
>> WallpaperManager.getInstance(myContext).getDesiredMinimumHeight() and
>> WallpaperManager.getInstance(myContext).getDesiredMinimumHeight() now
>> return the screen physical size instead of the screen virtual size, I have
>> now way to calculate how much that percentage represent in terms of actual
>> displacement.
>>
>> I know it's possible to achieve the desired result because the packed
>> wallpaper has that behaviour.
>>
>> Can somebody help? Is this a problem with Samsung Galaxy S implementation
>> or is this a standard behaviour?
>>
>> Thanks,
>> Pedro Duque
>>
>> On 1 January 2011 02:05, Pedro Duque <[email protected]> wrote:
>>
>>> When developing a live wallpaper how can I get the virtual screen size?
>>> How can I know in which virtual screen the user is in?
>>>
>>> Thanks,
>>> PMD
>>>
>>
>>  --
>> 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]<android-developers%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> 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.
>
>
>  --
> 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]<android-developers%[email protected]>
> 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

Reply via email to