[android-developers] Re: How change ViewPager animation's duration when setCurrentItem is called?
this is what i did, and use MyViewPager in your xml ISO ViewPager public class MyViewPager extends ViewPager { Method scroller; public MyViewPager(Context context) { super(context); } public MyViewPager(Context context, AttributeSet attr) { super(context,attr); } void smoothScrollTo(int x, int y, int velocity) { super.smoothScrollTo(x, y, 1); } } It worked great, if you want you can calculate and provide actual velocity ISO of just 1. On Thursday, February 16, 2012 2:09:03 AM UTC+1, Bruno Bruggemann wrote: Hi, I've a handler that before some seconds changes my views in the ViewPager. It works perfectly, the only thing that I want to do is change the speed of the slide animation when the setCurrentItem is called with the parameter smoothScroll true. It's too fast and in some devices it looks a little jerky. Any suggestion? Thanks! -- -- 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.
[android-developers] Avoid android taking screenshot/snapshot of activity while going in background
In 3.0+ and 4.0+, When user switches applications Android takes a screenshot of the current activity before moving the application in background. If you press the task-switcher button, you can see the snapshot of your app. I want to avoid that android takes snapshot of my activity as it has sensitive data in it. I have already tried flag excludeFromRecents but it doesnot work. Any help is appreciated. -- 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
[android-developers] Re: ICS Recent apps thumbnails
Hi Daz, I am facing the same problem. Did you find any solution. It would be great help if you can provide any guidance. Thanks in advance. Tegbir On Dec 17 2011, 10:55 am, Daz kuffs2...@gmail.com wrote: Hi Diane, Sorry I should have been more specific but this was my 3rd attempt at asking the question, the previous 2 not making it past the New member moderation. I didn't want to waste too much time as I was unsure the post would appear. Basically it is exactly as Zsolt says. My app should not have its contents visible unless a valid password has been entered. I understand that physical access to the phone is required to see the thumbnails but the fact is that the data should not be accessible outside the app at all. As a user as well as a dev, I may pass my phone to another person to show a photo, web page etc and tablets in my household tend to be partly communal for looking up web sites etc. At present I have to ensure that the app has been swiped away from the recent apps list before I allow anybody else access. So back to the original question. Is there a way to prevent the screen grab or at the very least, an override I can use to hide the sensitive data manually before the screen grab is taken? Thanks for any help anybody can give. Daz p.s After my first post I am now being spammed. We saw your post on google groups, would you like to . Any tips to prevent this? -- 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
[android-developers] Re: Avoid android taking screenshot/snapshot of activity while going in background
it captures the last shown screen of my app, when another app comes to foreground or home key is pressed. The captured screenshot is visible on task-switcher button. On Jan 20, 12:37 pm, Harri Smått har...@gmail.com wrote: On Jan 20, 2012, at 1:25 PM, tegbird wrote: If you press the task-switcher button, you can see the snapshot of your app. Does this happen also if you jump to another task, and press task-switcher button from that other task again? Is your application still available there? -- Harri -- 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
[android-developers] Re: what is the ApplicationInfo.uid life cycle, does it ever change for an application
Thanks Mark, My next question would be does it remains same if we donot add android:sharedUserId ? On Nov 29, 10:23 pm, Mark Murphy mmur...@commonsware.com wrote: Neither are correct AFAIK. For example, if you add android:sharedUserId to an existing shipping app, both the name and the UID might change on users' devices, with the lovely side effect of causing your app to no longer be able to read its own existing files. On Tue, Nov 29, 2011 at 1:32 PM, tegbird tegb...@gmail.com wrote: When I update my app, doesApplicationInfo.uid stays the same. PackageManager.getNameForUid (int uid) says Retrieve the official name associated with a user id. This name is guaranteed to never change, though it is possibly for the underlying user id to be changed. That is, if you are storing information about user ids in persistent storage, you should use the string returned by this function instead of the raw user-id. From the above explanation it seems it can change. in developers site athttp://developer.android.com/guide/topics/security/security.html it says At install time, Android gives each package a distinct Linux user ID. The identity remains constant for the duration of the package's life on that device. Are thess two documents referring the same user id? If yes why they are contradicting. What is the correct behavior. Thanks -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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
[android-developers] what is the ApplicationInfo.uid life cycle, does it ever change for an application
When I update my app, does ApplicationInfo.uid stays the same. PackageManager.getNameForUid (int uid) says Retrieve the official name associated with a user id. This name is guaranteed to never change, though it is possibly for the underlying user id to be changed. That is, if you are storing information about user ids in persistent storage, you should use the string returned by this function instead of the raw user-id. From the above explanation it seems it can change. in developers site at http://developer.android.com/guide/topics/security/security.html it says At install time, Android gives each package a distinct Linux user ID. The identity remains constant for the duration of the package's life on that device. Are thess two documents referring the same user id? If yes why they are contradicting. What is the correct behavior. Thanks -- 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