diff --git a/.gitignore b/.gitignore index d59562a..b167e9d 100644 --- a/.gitignore +++ b/.gitignore @@ -106,4 +106,5 @@ Generated_Code #added for RIA/Silverlight projects _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML -Tickets.userprefs \ No newline at end of file +Tickets.userprefs +*.userprefs diff --git a/Social/IOs/MainController.cs b/Social/IOs/MainController.cs index e0fe866..59f3932 100644 --- a/Social/IOs/MainController.cs +++ b/Social/IOs/MainController.cs @@ -49,7 +49,7 @@ namespace Social if (FBDialogs.CanPresentShareDialog (shareParams)) PresentFacebookShareDialog (shareParams); else - throw new Exception("Can't present share dialog"); + throw new Exception("Can't present share dialog"); // possibly there are no accounts } private void PresentFacebookShareDialog(FBShareDialogParams shareParams) diff --git a/Social/Share_Android/Assets/AboutAssets.txt b/Social/Share_Android/Assets/AboutAssets.txt new file mode 100644 index 0000000..a9b0638 --- /dev/null +++ b/Social/Share_Android/Assets/AboutAssets.txt @@ -0,0 +1,19 @@ +Any raw assets you want to be deployed with your application can be placed in +this directory (and child directories) and given a Build Action of "AndroidAsset". + +These files will be deployed with your package and will be accessible using Android's +AssetManager, like this: + +public class ReadAsset : Activity +{ + protected override void OnCreate (Bundle bundle) + { + base.OnCreate (bundle); + + InputStream input = Assets.Open ("my_asset.txt"); + } +} + +Additionally, some Android functions will automatically load asset files: + +Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); diff --git a/Social/Share_Android/MainActivity.cs b/Social/Share_Android/MainActivity.cs new file mode 100644 index 0000000..2be47bb --- /dev/null +++ b/Social/Share_Android/MainActivity.cs @@ -0,0 +1,40 @@ +using System; +using Android.App; +using Android.Content; +using Android.Runtime; +using Android.Views; +using Android.Widget; +using Android.OS; + +namespace Share_Android +{ + [Activity(Label = "Share_Android", MainLauncher = true)] + public class MainActivity : Activity + { + protected override void OnCreate(Bundle bundle) + { + base.OnCreate(bundle); + SetContentView(Resource.Layout.Main); + + Button button = FindViewById