This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onStart() | |
{ | |
super.onStart(); | |
FlurryAgent.onStartSession(this, YOUR_API_KEY); | |
// Your code | |
} | |
@Override | |
public void onStop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity | |
android:name="com.flurry.android.FlurryFullscreenTakeoverActivity" | |
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"> | |
</activity> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity | |
android:name="com.google.ads.AdActivity" | |
android:configChanges="keyboard|keyboardHidden|orientation| | |
screenLayout|uiMode|screenSize|smallestScreenSize" /> | |
<meta-data | |
android:name="com.flurry.admob.MY_AD_UNIT_ID" | |
android:value="@string/appSpot_admob_apikey" /> | |
<meta-data | |
android:name="com.flurry.admob.test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.flurry.android.FlurryAds; | |
import com.flurry.android.FlurryAdSize; | |
import com.flurry.android.FlurryAgent; | |
import com.flurry.android.FlurryAdListener; | |
public class InterstitialAdsActivity extends Activity implements FlurryAdListener { | |
FrameLayout adLayout; | |
// the adSpaceName refers to the ad space configured on dev.flurry.com under Publishers tab | |
// under left-hand nav Inventory / Ad Spaces | |
String adSpaceName = "Takeover"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "FlurryAdDelegate.h" | |
#import "FlurryAds.h" | |
- (void)viewWillAppear:(BOOL)animated { | |
[super viewWillAppear:animated]; | |
// Register yourself as a delegate for ad callbacks | |
[FlurryAds setAdDelegate:self]; | |
// Fetch fullscreen ads early when a later display is likely. For |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FlurryAgent.setLogEnabled(true); | |
FlurryAgent.setLogLevel(2); //verbose | |
//if you haven't already added the AdUnityListener do so to see whether the ads are received or not | |
FlurryAds.setAdListener(new AdUnityListener() { | |
public void spaceDidReceiveAd(String adSpaceName) | |
{ | |
Log.d(kLogTag, "spaceDidReceiveAd"); | |
} | |
OlderNewer