Viewing Device Logs
Contents |
Viewing device logs for mobile applications
Below are instructions for finding device logs when registering test devices, completing testing, and troubleshooting integration.
iOS
To view logs for iOS, open XCode, build and run your application with the advertising SDK installed. In XCode 4:
View --> Debug Area --> Activate Console
In Xcode 3:
Run --> Console
Android
To view logs for Android, compile and run your application with the advertising SDK installed. In Eclipse:
Window --> Show View --> LogCat.
From the command line, (command prompt on a PC or Terminal on a Mac) enter the
adb logcat
command. You should see several events being logged from your device. See the Android Documentation for more information about the adb tool.
Windows Phone 7
Compile and run your application with the advertising SDK installed.
View the output log. In Visual Studio 2010:
Window --> Show Other Window --> Output
Millennial Media SDK log outputs
You should see several events being logged from your device, including system events and events from other running programs. Often helpful to providing fast support is viewing an ad call that you have made such as the one below. You should provide this with any technical support request so we can quickly determine the next steps.
http://ads.mp.mydas.mobi/getAd.php5?medialets=false&sdkapid=28911&auid=ABE7E7EB-E70D-51B9-BBFE-537958D5C0BC&mmisdk=4.2.5-11.5.16.i&ua=iPhone%20Simulator%204.0.2 &dv=4.0.2&dm=i386&adtype=MMBannerAdTop&hswd=320&hsht=53&accelerometer=false&zip=21224&age=35&gender=male&video=true&language=en&country=US&cachedvideo=true
Crash Reports and Stack Traces
If an application crashes you can see the methods executed just before the crash. This information is helpful in troubleshooting potential causes.
For iOS: Open XCode and select
Window --> Organizer
and select Crash Reports from the left hand menu for the device you experienced the issue on.
For Android: Follow the instructions above to get device logs, and find a set of outputs that looks like this below: