Skip to content

Instantly share code, notes, and snippets.

View topgenorth's full-sized avatar

Tom Opgenorth topgenorth

  • Sherwood Park, AB, Canada
View GitHub Profile
#Error:
/Users/tom/work/xamarin/code/monodroid-samples/MapsAndLocationDemo_v2/GooglePlayServices/obj/Debug/generated/src/Com.Google.Android.Gms.Drive.Metadata.CollectionMetadataField.cs(104,104): Error CS0426: The nested type `MetadataField' does not exist in the type `Com.Google.Android.Gms.Drive.Metadata' (CS0426) (GooglePlayServices)
# Build log (diagnostic output):
Building: GooglePlayServices (Debug)
Build started 21/01/2014 3:32:24 PM.
__________________________________________________
@topgenorth
topgenorth / gist:8011720
Created December 17, 2013 20:08
Compile error when trying to compile a Xamarin.Android project that targets API 8 (Android 2.2).
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Tool exited with code: 1. Output: /Users/tom/Desktop/TabbedUI/Tabbed UI Walkthrough/code/TabbedUI/Components/xamandroidsupportv7appcompat-7.18.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.
/Users/tom/Desktop/TabbedUI/Tabbed UI Walkthrough/code/TabbedUI/Components/xamandroidsupportv7appcompat-7.18.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar'.
/Users/tom/Desktop/TabbedUI/Tabbed UI Walkthrough/code/TabbedUI/Components/xamandroidsupportv7appcompat-7.18.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:32: error: Error retrieving parent for item: No resource found that matc
@topgenorth
topgenorth / gist:7014544
Created October 16, 2013 20:45
Create the APK test server
jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore /Users/tom/work/keystores/opgenorth-release-key.keystore -storepass **** -signedjar /Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/bin/Release/CalabashExamples.Droid-signed-notaligned.apk /Users/tom/.jenkins/jobs/CalabashExamples/workspace/CalabashExamples/CalabashExamples.Droid/bin/Release/CalabashExamples.Droid.apk mytrips
adding: META-INF/MANIFEST.MF
adding: META-INF/MYTRIPS.SF
adding: META-INF/MYTRIPS.RSA
signing: res/drawable/icon.png
signing: res/drawable/invalid_edittext.xml
signing: res/layout/activity_creditcardvalidation.xml
signing: res/layout/activity_creditcardvalidation_success.xml
signing: res/layout/activity_location.xml
signing: res/layout/activity_login.xml
5:10 ~/work/xamarin/code/components/GooglePlayServices (googleplayservices-review)
$ mono ~/bin/xamarin-component.exe package
INFO (package): Found Makefile, will run make…
Running make "-C" "/Users/tom/work/xamarin/code/components/GooglePlayServices"...
Running /Applications/Xamarin Studio.app/Contents/MacOS/mdtool "build" "-c:Release" "/Users/tom/work/xamarin/code/components/GooglePlayServices/source/samples/GooglePlayServicesApp/GooglePlayServicesApp.sln"...
Running /Applications/Xamarin Studio.app/Contents/MacOS/mdtool "build" "-c:Release" "/Users/tom/work/xamarin/code/components/GooglePlayServices/source/samples/MapsAndLocationDemo_v2/MapsAndLocationDemo.sln"...
Running /Applications/Xamarin Studio.app/Contents/MacOS/mdtool "build" "-c:Release" "/Users/tom/work/xamarin/code/components/GooglePlayServices/source/samples/MapsAndLocationDemo_v2/MapsAndLocationDemo.sln"...
Running /Applications/Xamarin Studio.app/Contents/MacOS/mdtool "build" "-c:Release" "/Users/tom/work/xamarin/code/components/GooglePlaySer
@topgenorth
topgenorth / gist:6072607
Created July 24, 2013 17:23
Sample ActionBar code
private void InitializeActionBar()
{
ActionBar.NavigationMode = ActionBarNavigationMode.Tabs;
var firstTab = SetupGraffitiGridTab();
SetupGraffitiMapTab();
ActionBar.SelectTab(firstTab);
}
@topgenorth
topgenorth / gist:5917919
Created July 3, 2013 13:39
Generated C# code for InfColorPickerControllerDelegate
[BaseType(typeof(NSObject))]
[Model]
public partial interface InfColorPickerControllerDelegate {
[Export ("colorPickerControllerDidFinish:")]
void (InfColorPickerController controller);
[Export ("colorPickerControllerDidChangeColor:")]
void (InfColorPickerController controller);
}
@topgenorth
topgenorth / gist:5917872
Created July 3, 2013 13:32
Objective Sharpie generated InfColorPickerController
[BaseType (typeof (UIViewController))]
public partial interface InfColorPickerController {
[Static, Export ("colorPickerViewController"), Verify ("ObjC method massaged into getter property", "/Users/tom/Desktop/InfColorPickerWalkthrough/InfColorPicker/InfColorPicker/InfColorPickerController.h", Line = 32)]
InfColorPickerController Instance { get; }
[Static, Export ("idealSizeForViewInPopover"), Verify ("ObjC method massaged into getter property", "/Users/tom/Desktop/InfColorPickerWalkthrough/InfColorPicker/InfColorPicker/InfColorPickerController.h", Line = 33)]
SizeF IdealSizeForViewInPopover { get; }
[Export ("presentModallyOverViewController:")]
using System;
using System.Drawing;
using MonoTouch.ObjCRuntime;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace InfColorPicker
{
[BaseType(typeof(UIView))]
public partial interface InfColorBarView
@topgenorth
topgenorth / gist:5797569
Created June 17, 2013 15:04
Running the PortableLibraryDownloard.exe on Windows 8....
C:\temp>PortableLibraryDownloader.exe
Creating temp directory
Extracting archive tools
Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at PortableLibraryDownloader.RunTool(String exe, String workingDirectory, String[] args)
at PortableLibraryDownloader.Main()
@topgenorth
topgenorth / Google Play Services client library Terms And Conditions
Last active December 16, 2015 15:29
Package Description Google Play services, revision 4 By Google Inc. Google Play Services client library and sample code Install path: extras/google/google_play_services
Package Description
Google Play services, revision 4
By Google Inc.
Google Play Services client library and sample code
Install path: extras/google/google_play_services