Adcolony Clear Cache Solution

Adcolony Clear Cache Solution...AdColony does cache our assets to the device - both for quality (instant loading advertisements) as well as reusability.



We know that developing android apps and working with AdColony SDK to show video ads gives you problem. The problem we found usually it keeps downloading video ads and save them on the device.

I found the comment from the person from Adcolony, He says

AdColony does cache our assets to the device - both for quality (instant loading advertisements) as well as reusability. Many assets are shared across multiple campaigns and in the case that a duplicate advertisement is served it saves you from re-downloading the same assets.
Each device has a specific memory class (or app specific memory limit) that we will not exceed, and we also purge old and unused assets occasionally to keep the size down.
While it is possible to programmatically clear your app's data cache, we do not recommend this as it may lead to redundant downloads and unnecessary data usage.
Please feel free to contact us further at support@adcolony.com.

Solution:

Your video is stored in the application data path.
You just have to delete file created with the  File.Delete()  command.

This code will do the trick and works on PC, Mac, iOS and Android:
string fileName = ""; #if UNITY_IPHONE  string fileNameBase = Application.dataPath.Substring(0, Application.dataPath.LastIndexOf('/')); fileName = fileNameBase.Substring(0, fileNameBase.LastIndexOf('/')) + "/Documents/" + FILE_NAME; #elif UNITY_ANDROID fileName = Application.persistentDataPath + "/" + FILE_NAME ; #else fileName = Application.dataPath + "/" + FILE_NAME; #endif  fileWriter = File.CreateText(fileName); fileWriter.WriteLine("Hello world"); fileWriter.Close(); 
[edit]
Since Unity 3.3, it is no longer necessary to use platform-specific code for simple file I/O. Use Application.persistentDataPath to do the trick.
This code would replace the code above:
string fileName = Application.persistentDataPath + "/" + FILE_NAME; fileWriter = File.CreateText(fileName); fileWriter.WriteLine("Hello world"); fileWriter.Close(); 
[/edit]
source:previewlabs




COMMENTS

FREE$type=three$author=hide$comment=hide$readmore=hide

$type=carousel$cols=3$count=9

Name

2014 2016 2d concave Collider 3d 3D Interactive Sandbox 3d scanning activations Adcolony admob Alternative app stores alternatives Amazon AMD analytics android angrybirds APK App App Review apple as ASO Assets augmented reality AVPro QuickTime beginner behind the scene BigMiniGolf Bravo Storm Beta bugfix Buy c# camera Cardboard CGTrader China chrome chromebook clash of clans Collaboration collider colors converter companies contest Cpi CrossyRoad DEPENDENCY INJECTION Downloads drawcalls dropbox EA error Error building Player facebookdevelopers facebookUnitySDK Failed flapflap Flappybird flapybird Fog free free post future game Game Companies game design document template Games gamestory GIMP git github GLOBAL GAME JAM 2015 Google Google Daydream Google play store googledevelopers graphics Guides Hacknslash Headless Mode Health Heroku How to Code HowTo Income India indie Indie teams infographics information Intel iOS iPhone Issues javascript jdk installation keyboardshortcuts Language learn Level Eleven license error Linux List madebyunity madewithunity mo mobile mobogenie monetize mouse tricks Must news to know NullReferenceException Object oculus Official open beta open source optimization Paint.net performance permission PKBhaag plugins Pokemon Go polijoy production Profitable programmer Promote Your App psd Publish realsense reddit release render settings reskin Resources Russia scripts SDK SHADERS Similar skybox Slender soomla Source Codes SourceCodes sponsored post Sprites Staff Pick strategies textures Tilt Brush tools tricks Tutorial Unable to find unite 2013 unity Unity 2d Pathfinding unity 2d water Unity AdMob Plugin Unity Forum unity timer unity web player Unity Windows 10 Crash Unity2d unity4.6 unity5 useful apps Version virtal reality Virtual Reality Visual Studio vouchers voxel VR webplyer win windows wordpress
false
ltr
item
Unity 3d Tutorials: Adcolony Clear Cache Solution
Adcolony Clear Cache Solution
Adcolony Clear Cache Solution...AdColony does cache our assets to the device - both for quality (instant loading advertisements) as well as reusability.
https://4.bp.blogspot.com/-NnOvOxVN1bI/V4E44vKq5aI/AAAAAAAACO4/dKB1c5jNh5sTR_1HzRy1TXFx_9N-ae60QCK4B/s1600/Screenshot_19.png
https://4.bp.blogspot.com/-NnOvOxVN1bI/V4E44vKq5aI/AAAAAAAACO4/dKB1c5jNh5sTR_1HzRy1TXFx_9N-ae60QCK4B/s72-c/Screenshot_19.png
Unity 3d Tutorials
http://unity3diy.blogspot.com/2016/07/adcolony-clear-cache-solution.html
http://unity3diy.blogspot.com/
http://unity3diy.blogspot.com/
http://unity3diy.blogspot.com/2016/07/adcolony-clear-cache-solution.html
true
8957287156628097350
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy