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. need help in getting screen coordinates of a view

Hii All,

I am developing a game in android and i want to capture screen
coordinates of a view(ImageView) which is embedded in frame.

Hierarchy is
<LinearLayout android android:layout_height="fill_parent"
android:layout_width="fill_parent" >
      <RelativeLayout android:layout_height=fill_parent"
android:layout_width="fill_parent" >
            <FrameLayout android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/frame14"></FrameLayout>
    </RelativeLayout>
</LinearLayout>

At run time i am attaching two image views for frame layout.I wanted
to capture screen coordinates of frame layout.But Couldnt do it.if i
say

(FrameLayout) f=(FrameLayout)findViewById(R.id.frame14);
int[] loc = new int[2];
f.getLocationOnScreen(loc);
System.out.println(loc[0]);
System.out.println(loc[1]);

I get Null Pointer Exception for getLocationOnScreen() method.

If I try to get f.getLeft() and f.getRight() they return as 0 coordinates.

Can anyone please tell me how to find location on screen of a view.

It is very urgent.Please help.

Thanks
Kavitha

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

2. Android SDK for 64 bit Linux?

Is there a chance that there may be a Android SDK for 64 bit distros?
I'm running Fedora 11 Alpha 64 now and have a hard time finding a
similar package that Ubuntu have "ia32-libs" as described in the
installation notes.

/Perty

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

3. g1 version

4. how do i get the center location after a user dragged their center point to another location on a map?

5. how to get the new center location on a map after user had dragged it?

6. android build error.

7. handset error log