Uploaded December 2012 | Updated September 2026, 2 weeks ago
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By mzmuda@techytube, for more from this author visit:
techytube.com/author/mzmuda
Now that we've added our resource for the feed data, we need to override the OnLaunched method in App.xaml.
Since our application also needs to check for an internet connection, we will make use of the NetworkInformation class.
This class presents a standardized way to check for an active internet connection rather than an arbitrary DNS query, or other methods of checking for connection.
OnLaunched is called when the application is launched, and it is in this method that we'll perform our internet check, as well as start pulling down feeds.
In this video, I will show you how to override the OnLaunched method with application specific logic, and how to use the NetworkInformation class.
References
XAML Blog Reader - msdn.microsoft.com/en-us/library/windows/apps/br211380.aspx
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By mzmuda@techytube, for more from this author visit:
techytube.com/author/mzmuda
Now that we've added our resource for the feed data, we need to override the OnLaunched method in App.xaml.
Since our application also needs to check for an internet connection, we will make use of the NetworkInformation class.
This class presents a standardized way to check for an active internet connection rather than an arbitrary DNS query, or other methods of checking for connection.
OnLaunched is called when the application is launched, and it is in this method that we'll perform our internet check, as well as start pulling down feeds.
In this video, I will show you how to override the OnLaunched method with application specific logic, and how to use the NetworkInformation class.
References
XAML Blog Reader - msdn.microsoft.com/en-us/library/windows/apps/br211380.aspx
![Arrays in Objective-C
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
http://www.techytube.com/author/pavel
As Objective-C is a super-set of C, we can use the C-style of declaring and using arrays.
The syntax for declaring an using an array in this way is:
int firstArray[5] = { 1, 2, 3, 4, 5 };
NSLog(@The first element is: %d, firstArray[0]);
The Objective-C of declaring, initializing and using arrays is as follows:
NSArray *secondArray = [NSArray arrayWithObjects:
[NSNumber numberWithInt:1],
[NSNumber numberWithInt:2],
[NSNumber numberWithInt:3],
[NSNumber numberWithInt:4],
[NSNumber numberWithInt:5],
nil];
NSLog(@The first element is: %d, [secondArray[0] intValue]);
Arrays in Objective-C are zero-index based, that means the first element will have the index zero, but not one.
The last element in an array should always be nil.
In the example above weve made an immutable array. There is also the mutable version, which is represented by the NSMutableArray class.
Arrays in Objective-C may contain elements of different types, that means we can store a NSNumber object, and a NSString object in the same array, for example. Arrays in Objective-C](https://i.ytimg.com/vi/YoXmVg30A-U/mqdefault.jpg)


![Introduction to File Management in Objective-C
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
http://www.techytube.com/author/pavel
File Management refers to to terms of working with files, manipulating them, changing their names, locations etc. When creating iOS or MAC OS apps, we can use the C-style functions for working with files.
As Objective-C is an object oriented programming language, well use its way, and that will be the NSFileManager class, which has a bunch of utility methods.
[NSFileManager defaultManager] will return us a NSFileManager object that we can further use.
To check if a file exists at a specific path, we use the syntax:
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath])
To change the files location, we use:
[fileManager moveItemAtPath:currentPath toPath:newPath error:nil];
We can provide a NSError object as the last parameter to this function, and then use that to check if the operation involving files got successfully executed. Introduction to File Management in Objective-C](https://i.ytimg.com/vi/ZR5fATD2tG4/mqdefault.jpg)






![Windows 8 Development - Application Data
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By mzmuda@techytube, for more from this author visit:
http://www.techytube.com/author/mzmuda
Now that we have correctly configured our SuspensionManager helper class, we can start populating data into the Application Data container.
We first need to create a variable, and then feed the appropriate container (in this case roaming data) into that variable.
After that, we can start putting key and value pair information into that container, using standard notation:
Container[Key] = Value;
In this video, I will show you how to access and write to the RoamingData object.
References
XAML Application Lifecycle http://msdn.microsoft.com/en-us/library/windows/apps/hh986968.aspx Windows 8 Development - Application Data](https://i.ytimg.com/vi/_nPxPTcBrXo/mqdefault.jpg)