This file contains hidden or 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
//C:\Program Files (x86)\Android\android-sdk\platform-tools | |
adb logcat AndroidRuntime:E *:S |
This file contains hidden or 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
#if OPENGL | |
#define SV_POSITION POSITION | |
#define VS_SHADERMODEL vs_3_0 | |
#define PS_SHADERMODEL ps_3_0 | |
#else | |
#define VS_SHADERMODEL vs_4_0_level_9_1 | |
#define PS_SHADERMODEL ps_4_0_level_9_1 | |
#endif | |
matrix WorldViewProjection; |
This file contains hidden or 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
window.onload = function() { | |
} | |
function removejscssfile(filename, filetype){ | |
var targetelement=(filetype=="js")? "script" : (filetype=="css")? "link" : "none" //determine element type to create nodelist from | |
var targetattr=(filetype=="js")? "src" : (filetype=="css")? "href" : "none" //determine corresponding attribute to test for | |
var allsuspects=document.getElementsByTagName(targetelement) | |
for (var i=allsuspects.length; i>=0; i--){ //search backwards within nodelist for matching elements to remove | |
if (allsuspects[i] && allsuspects[i].getAttribute(targetattr)!=null && allsuspects[i].getAttribute(targetattr).indexOf(filename)!=-1) |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="refresh" content="0; url=http://example.com"> | |
<script type="text/javascript"> | |
window.location.href = "http://example.com" | |
</script> | |
<link rel="canonical" href="http://www.example.com/product.php?item=swedish-fish"/> | |
<title>Page Redirection</title> |
This file contains hidden or 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
/// <summary> | |
/// Shows the initersial ad if there's one loaded. | |
/// </summary> | |
public void ShowInitersialAd() | |
{ | |
#if __ANDROID__ | |
if (mInterstitialAd.IsLoaded) | |
{ | |
mInterstitialAd.Show(); |
This file contains hidden or 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
public void LoadIniterstialelAd() | |
{ | |
#if __ANDROID__ | |
if (mInterstitialAd.IsLoaded==false) | |
{ | |
var adRequest = new AdRequest.Builder() | |
#if DEBUG | |
.AddTestDevice("DEADBEEF9A2078B6AC72133BB7E6E177") // Prevents generating real impressions while testing | |
#endif |
This file contains hidden or 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
/// <summary> | |
/// Adds the initerstialel ad. | |
/// </summary> | |
/// <param name="adUnitID">Ad unit identifier.</param> | |
public void InitIniterstialelAd(string adUnitID) | |
{ | |
this.AdUnitID = adUnitID; | |
#if __ANDROID__ | |
try |
This file contains hidden or 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
/// <summary> | |
/// Initialise a new AdMob Ad Overlay. This is a Cross platform method which will run on both Android and iOS. | |
/// </summary> | |
/// <param name="game">The host game to et the service container from</param> | |
/// <param name="location">The location to place the add on the screen</param> | |
public AdManager(Game Game, Vector2 location) | |
{ | |
this.Game = Game; | |
#if __ANDROID__ |
This file contains hidden or 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
using System; | |
using Microsoft.Xna.Framework; | |
using Virtex.Lib.Vrtc.Core; | |
using Microsoft.Xna.Framework.GamerServices; | |
#if __IOS__ | |
using CoreGraphics; | |
using UIKit; | |
using Google.MobileAds; | |
#endif |
NewerOlder