User Tools

Site Tools


proton:admanager_flurry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
proton:admanager_flurry [2012/07/16 23:19]
seth
proton:admanager_flurry [2012/07/26 03:59] (current)
seth
Line 4: Line 4:
  
 Currently supported on Android only. Currently supported on Android only.
 +
 +Requires an [[http://​www.rtsoft.com/​wiki/​doku.php?​id=proton:​admanager|AdManager]] object to be setup to use.
  
 === Adding Flurry to the AdManager === === Adding Flurry to the AdManager ===
Line 45: Line 47:
  
 //when someone buys IAP, you could add this to track what people are buying: //when someone buys IAP, you could add this to track what people are buying:
-GetApp()->​GetAdManager()->​TrackingLog("​BoughtIAP",​ "​powerBoots",​ "​$1.99"​);​ //limited to two parms+GetApp()->​GetAdManager()->​TrackingLog("​BoughtIAP",​ "​powerBoots",​ "​$1.99"​);​ //limited to two "​extra" ​parms, besides the main page name
 </​code>​ </​code>​
  
Line 51: Line 53:
  
 These directions assume you are using the proton v2 android build system, which nearly all examples use now.  You can look at RTAdManager for an example if needed. These directions assume you are using the proton v2 android build system, which nearly all examples use now.  You can look at RTAdManager for an example if needed.
 +
 +The plugin will automatically handle creating multiple Flurry sessions upon suspend/​resume as needed.
  
 First, download the Flurry SDK for Android (you'​ll need a Flurry account to see that option) and place FlurryAgent.jar in the \shared\android\optional_src\libs\Flurry,​ which should exist already. ​ I can't include this file in p+ for legal reasons. First, download the Flurry SDK for Android (you'​ll need a Flurry account to see that option) and place FlurryAgent.jar in the \shared\android\optional_src\libs\Flurry,​ which should exist already. ​ I can't include this file in p+ for legal reasons.
Line 91: Line 95:
  
 That's it, Flurry should work in your Android build now. That's it, Flurry should work in your Android build now.
 +
 +Note:  When testing, the Flurry control panel seemed very slow to show activity, like 10+ hours to update. ​ So if it seems like it isn't working, you may just want to wait a bit.
 +
 +== Important note about Flurry on Android ==
 +Flurry actually sends the the statistical data it's collected when it closes the session. ​ However, if you send the MESSAGE_FINISH_APP message, the app will shutdown and close before Flurry can finish sending. ​ (It doesn'​t start its own activity)
 +
 +To work around this, don't send MESSAGE_FINISH_APP or have a quit button. ​ Alternately,​ if you really want the Back button from the main menu to appear to quit, send MESSAGE_SUSPEND_TO_HOME_SCREEN instead. The app will suspend and allow Flurry to do its thing, but will actually get killed later when the OS decides it wants the memory, similarly to how iOS does it.
 +
 +RTAdTest does it this way, you can check it for an example.
proton/admanager_flurry.1342480773.txt.gz ยท Last modified: 2012/07/16 23:19 by seth