Flurry and AppWidgets

by Jake Colman » Thu, 08 Jul 2010 04:49:32 GMT


Sponsored Links
 I am familiar with using Flurry with Activities and calling
FlurryAgent.onStartSession() in the activity's onStart() method and
calling FlurryAgent.onEndSession in the activity's onStop() method.
What would be the best way to do the same thing if I want to use Flurry
with my appwidget?  Should I use the onEnabled()/onDisabled() methods or
should I use onUpdate() since the user may never delete my appwidget and
I won't know he's still using it?  Or maybe onUpdate() and onDisabled()
but then I won't be matching my start/end sessions.  If my appwidget has
a configuration activity or some other displayed activity I can
obviously use flurry there.  But how about in the appwidget itself?

-- 
Jake Colman -- Android Tinkerer

--



Flurry and AppWidgets

by whitemice » Fri, 16 Jul 2010 16:36:12 GMT


 Hi Jake
Assuming you are talking about Android Home Screen Widgets, I had the
same issue which I blogged here:
 http://blog.zedray.com/2010/05/01/tracking-a-android-home-screen-widget/ 

I still haven't gotten a response from Flurry, so I suggest you
consider the Google Analytics API.  While this offers fewer features
relevant for application developers, it does provide a dispatch()
method which allows you to manually workaround the widget life cycle
issue.  Let me know how this works for you.

Regards
Mark





--


Sponsored Links


Flurry and AppWidgets

by Jake Colman » Fri, 16 Jul 2010 20:46:30 GMT


 Mark,

Your blog postings hit the nail directly on the head!  I guess I'll do
as you suggest and see what Google Analytics can do for me.

Thanks.

...Jake



   w> Hi Jake

   w> Assuming you are talking about Android Home Screen Widgets, I had
   w> the same issue which I blogged here:
   w>  http://blog.zedray.com/2010/05/01/tracking-a-android-home-screen-widget/ 

   w> I still haven't gotten a response from Flurry, so I suggest you
   w> consider the Google Analytics API.  While this offers fewer
   w> features relevant for application developers, it does provide a
   w> dispatch() method which allows you to manually workaround the
   w> widget life cycle issue.  Let me know how this works for you.

   w> Regards
   w> Mark




   >> I am familiar with using Flurry with Activities and calling
   >> FlurryAgent.onStartSession() in the activity's onStart() method
   >> and calling FlurryAgent.onEndSession in the activity's onStop()
   >> method.  What would be the best way to do the same thing if I want
   >> to use Flurry with my appwidget? Should I use the
   >> onEnabled()/onDisabled() methods or should I use onUpdate() since
   >> the user may never delete my appwidget and I won't know he's still
   >> using it? Or maybe onUpdate() and onDisabled() but then I won't
   >> be matching my start/end sessions. If my appwidget has a
   >> configuration activity or some other displayed activity I can
   >> obviously use flurry there. But how about in the appwidget
   >> itself?
   >> 
   >> --
   >> Jake Colman -- Android Tinkerer

   w> -- 
   w>



Flurry and AppWidgets

by Jake Colman » Fri, 16 Jul 2010 20:50:15 GMT


 Mark,

So you call dispatch() from a service upon every call to onUpdate?

...Jake



   w> Hi Jake

   w> Assuming you are talking about Android Home Screen Widgets, I had
   w> the same issue which I blogged here:
   w>  http://blog.zedray.com/2010/05/01/tracking-a-android-home-screen-widget/ 

   w> I still haven't gotten a response from Flurry, so I suggest you
   w> consider the Google Analytics API.  While this offers fewer
   w> features relevant for application developers, it does provide a
   w> dispatch() method which allows you to manually workaround the
   w> widget life cycle issue.  Let me know how this works for you.

   w> Regards
   w> Mark


-- 
Jake Colman -- Android Tinkerer

--



Flurry and AppWidgets

by whitemice » Mon, 19 Jul 2010 17:05:41 GMT


 No, that would be crazy.
I have written a throttling algorithm that progressively reduces the
update frequency over time, since the last upgrade.

Regards
Mark





--



Other Threads

1. Ringtone from the RingtoneManager always returns null

Hey all,

I have this piece of code to enumerate the ringtones on the system:

                RingtoneManager rm = new RingtoneManager(this);
                Cursor c = rm.getCursor();

                c.moveToFirst();
                while(!c.isAfterLast()){

                        Uri geller = rm.getRingtoneUri(c.getPosition());
                        Log.d(TAG,"path: "+geller);
                        Ringtone rt = RingtoneManager.getRingtone(this, geller);
                        Log.d(TAG,"rt: "+rt);

                        Log.d(TAG, "Ringtone: 
"+rm.getRingtone(c.getPosition()));
                        c.moveToNext();
                }
                c.deactivate();

But the RingtoneManager always returns null. Here's some log-output:

01-15 13:48:51.414: DEBUG/CallReceiverActivity(315): path:
content://media/internal/audio/media/1
01-15 13:48:51.503: DEBUG/MediaPlayer(315): Couldn't open file on
client side, trying server side
01-15 13:48:51.613: ERROR/MediaPlayerService(31): Couldn't open fd for
content://media/internal/audio/media/1
01-15 13:48:51.613: ERROR/MediaPlayer(315): Unable to to create media
player
01-15 13:48:51.623: ERROR/RingtoneManager(315): Failed to open
ringtone content://media/internal/audio/media/1
01-15 13:48:51.623: DEBUG/CallReceiverActivity(315): rt: null
01-15 13:48:51.764: DEBUG/MediaPlayer(315): Couldn't open file on
client side, trying server side
01-15 13:48:51.834: ERROR/MediaPlayerService(31): Couldn't open fd for
content://media/internal/audio/media/1
01-15 13:48:51.845: ERROR/MediaPlayer(315): Unable to to create media
player
01-15 13:48:51.845: ERROR/RingtoneManager(315): Failed to open
ringtone content://media/internal/audio/media/1
01-15 13:48:51.845: DEBUG/CallReceiverActivity(315): Ringtone: null

As you can see, the MediaPlayer is unable to open the file. Should I
have extra permissions? Is anything else preventing me from accessing
the file? Would appreciate help :)

Regards,

Daan

2. Extending contacts

Hi,
 
I'm trying to see how extra information can be attached to contacts
entries.
Looking at the SDK reference, I stumble upon the Contacts.Extensions
(http://developer.android.com/reference/android/provider/Contacts.Extens
ions.html) and Contacts.People.Extensions
(http://developer.android.com/reference/android/provider/Contacts.People
.Extensions.html) classes. Sadly I can't find any article about what
theses classes are for and how to use them.
My goal is to add a few extra fields to the contacts entries which do
not fit in any of the current available field types (emails, im
accounts, phone numbers, postal addresses).
 
Is there a way to achieve this?
 
Thanks,
 
Marc

--~--~---------~--~----~------------~-------~--~----~

3. How to get device details

4. AvoidXferMode

5. Showing the map view before the direction list on android device.

6. play video bypass surfaceflinger

7. Sample or Tutorial in using OpenGL in a "Live Wallpaper" in SDK 2.1?