[android-developers] Context menu on long press on any icon

2014-07-15 Thread sourabh sahu
Dear All, I am looking for functionality in which if I long press on any file/app/etc.My Context menu should apper with few options. How can I achieve this any kind code or sample program.. Regards, Sourabh -- You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: activity.getResoures()

2014-07-15 Thread sweety fx
Thank you On Monday, July 14, 2014 6:34:44 PM UTC-4, Streets Of Boston wrote: > > If 'res' is a local variable or a member/field of your activity, it's fine > to use 'res' all over your method/activity. > > However, don't make res static/global (if you do and fail to set it to > null at the

[android-developers] Re: Context menu on long press on any icon

2014-07-15 Thread MathieuB
http://developer.android.com/reference/android/view/View.OnLongClickListener.html http://developer.android.com/guide/topics/ui/menus.html#FloatingContextMenu Next time it would be great if you have a look at google before. Le mardi 15 juillet 2014 05:38:45 UTC-4, sourabh a écrit : > > Dear All,

[android-developers] Mock locations from GPX track on real device?

2014-07-15 Thread Nathan
I am not seeing any app on the market that does this. The emulator will use a GPX file, but it is grayed out for a real device. Have one of you invented an app that does this? Nathan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: Context menu on long press on any icon

2014-07-15 Thread sourabh sahu
Dear mathieu, I am nit looking contextual menu in my app, my requirement is when I long press on any file lets say in a image inside file manager, then whwtever options comes into a menu. I want to add my own menu in that context menu.please help On Tuesday, July 15, 2014, MathieuB wrote:

Re: [android-developers] Re: Context menu on long press on any icon

2014-07-15 Thread TreKing
On Tue, Jul 15, 2014 at 12:07 PM, sourabh sahu wrote: > I am nit looking contextual menu in my app, my requirement is when I long > press on any file lets say in a image inside file manager, then whwtever > options comes into a menu. I want to add my own menu in that context > menu.please help

Re: [android-developers] Re: Compass Reading - proper implementation.

2014-07-15 Thread Nathan Mellor
For those of you who have smoothed the jitter. On Wed, Jul 9, 2014 at 11:55 PM, gjs wrote: > > One way to smooth the jitter is to compute an average value from a small > array of recently stored recent values. > For those who have filtered to get a smooth value, what is a good buffer size and

[android-developers] Re: Custom List View is not Click-able when scrolling the list.

2014-07-15 Thread Damien Cooke
Ali, Should this be done in the Adaptor sub class or the XML as we create the view components? Damien On Thursday, January 12, 2012 12:14:10 AM UTC+10:30, Ali Chousein wrote: > > So, what exactly is the problem you are facing? If I understand you > correctly, clicking on list items does not res

Re: [android-developers] Re: Compass Reading - proper implementation.

2014-07-15 Thread Adam Ratana
Nathan, I would suggest just using a simple low pass filter (in this case an EWMA - http://en.m.wikipedia.org/wiki/Exponential_smoothing) and tuning the weighting to taste. The more samples usually the smoother you'll get. I use the GAME rate, but I believe you can specify a rate past a certain api

[android-developers] Sync Adapter - Syncs frequently

2014-07-15 Thread Deepak
I've written a sync adapter which I scheduled to run every 6 hours but it synchronises every few minutes. Below is lines of code which enables sync and adds a periodic sync (period is in seconds) ContentResolver.setIsSyncable(account, Table.AUTHORITY, 1); ContentResolver.setSyncAutomatically(a

[android-developers] Why does RemoteController require an app to have a NotificationListenerService?

2014-07-15 Thread Tom
In API 19 Android added the RemoteController classes to it's API for allowing apps to control media playback. Oddly however is this: "Registration requires the RemoteController.OnClientUpdateListener

[android-developers] Re: Sync Adapter - Syncs frequently

2014-07-15 Thread G. Blake Meike
Do you have any calls to ContentResolver.notifyChange() in your app? If you pass "true" as the third argument, it will force a sync. -- 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@

Re: [android-developers] Re: Sync Adapter - Syncs frequently

2014-07-15 Thread Deepak Soni
Yes I do have calls to notifyChange and I'm passing false. I tried several other things as I listed in my initial post Deepak On Jul 15, 2014 11:55 PM, "G. Blake Meike" wrote: > > Do you have any calls to ContentResolver.notifyChange() in your app? If > you pass "true" as the third argument, it