diff --git a/ZicMoove/ZicMoove.Droid/SendFileActivity.cs b/ZicMoove/ZicMoove.Droid/SendFileActivity.cs new file mode 100644 index 00000000..6dea2b30 --- /dev/null +++ b/ZicMoove/ZicMoove.Droid/SendFileActivity.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +using Android.App; +using Android.Content; +using Android.OS; +using Android.Runtime; +using Android.Views; +using Android.Widget; + +namespace ZicMoove.Droid +{ + [Activity(Label = "SendFileActivity")] + [MetaData("android.service.chooser.chooser_target_service", Value = Constants.ApplicationName + ".YavscChooserTargetService")] + [IntentFilter(new[] { "android.intent.action.SEND" }, + Categories = new[] { "android.intent.category.DEFAULT" }, + Icon = "@drawable/icon", + Label = Constants.SendToApp)] + public class SendFileActivity : Activity + { + protected override void OnCreate(Bundle savedInstanceState) + { + base.OnCreate(savedInstanceState); + + // Create your application here + } + } +} \ No newline at end of file diff --git a/ZicMoove/ZicMoove.Droid/Services/AccountChooserService.cs b/ZicMoove/ZicMoove.Droid/Services/AccountChooserService.cs index c096a67e..78375584 100644 --- a/ZicMoove/ZicMoove.Droid/Services/AccountChooserService.cs +++ b/ZicMoove/ZicMoove.Droid/Services/AccountChooserService.cs @@ -14,23 +14,20 @@ using ZicMoove.Droid.OAuth; namespace ZicMoove.Droid.Services { [Service( - Name = "fr.pschneider.bas.AccountChooserService", - Label = "Yavsc accounts service", + Name = Constants.ApplicationName + ".AccountChooserService", + Label = Constants.ApplicationLabel + " accounts service", Icon = "@drawable/icon", Exported = true, Enabled = true )] [IntentFilter(new String[] { "android.accounts.AccountAuthenticator" })] - + [MetaData("android.accounts.AccountAuthenticator",Resource = "@xml/authenticator")] class AccountChooserService : Service { public static YaOAuth2Authenticator authenticator; public override void OnCreate() { base.OnCreate(); - - - } public override IBinder OnBind(Intent intent) diff --git a/ZicMoove/ZicMoove.Droid/Services/GcmRegistrationIntentService.cs b/ZicMoove/ZicMoove.Droid/Services/GcmRegistrationIntentService.cs index 97626a0b..9a4a73b8 100644 --- a/ZicMoove/ZicMoove.Droid/Services/GcmRegistrationIntentService.cs +++ b/ZicMoove/ZicMoove.Droid/Services/GcmRegistrationIntentService.cs @@ -13,7 +13,7 @@ using ZicMoove.Settings; namespace ZicMoove.Droid { - [Service(Exported = false)] + [Service(Exported = false), IntentFilter(new[] { "com.google.android.c2dm.intent.REGISTRATION" })] class GcmRegistrationIntentService : IntentService { static object locker = new object(); diff --git a/ZicMoove/ZicMoove.Droid/Services/YavscChooserTargetService.cs b/ZicMoove/ZicMoove.Droid/Services/YavscChooserTargetService.cs index a9594868..a2251098 100644 --- a/ZicMoove/ZicMoove.Droid/Services/YavscChooserTargetService.cs +++ b/ZicMoove/ZicMoove.Droid/Services/YavscChooserTargetService.cs @@ -15,8 +15,8 @@ using static Android.Manifest; namespace ZicMoove.Droid { [Service( - Name = "fr.pschneider.bas.YavscChooserTargetService", - Label = "Yavsc share service", + Name = Constants.ApplicationName + ".YavscChooserTargetService", + Label = Constants.ApplicationLabel + " share service", Permission = Permission.BindChooserTargetService, Icon = "@drawable/icon", Exported = true, diff --git a/ZicMoove/ZicMoove.Droid/ZicMoove.Droid.csproj b/ZicMoove/ZicMoove.Droid/ZicMoove.Droid.csproj index 0562956e..98b8ccc7 100644 --- a/ZicMoove/ZicMoove.Droid/ZicMoove.Droid.csproj +++ b/ZicMoove/ZicMoove.Droid/ZicMoove.Droid.csproj @@ -465,6 +465,7 @@ + diff --git a/ZicMoove/ZicMoove/Constants.cs b/ZicMoove/ZicMoove/Constants.cs index 5e9d5ab5..22c62e47 100644 --- a/ZicMoove/ZicMoove/Constants.cs +++ b/ZicMoove/ZicMoove/Constants.cs @@ -12,6 +12,8 @@ namespace ZicMoove public static readonly string AuthorizeUrl = YavscHomeUrl + "/authorize"; public static readonly string AccessTokenUrl = YavscHomeUrl + "/token"; + public const string RedirectUrl = YavscHomeUrl + "/oauth/success"; + public static readonly string Scope = "profile"; public static readonly string YavscApiUrl = YavscHomeUrl + "/api"; public static readonly string MobileRegistrationUrl = YavscApiUrl + "/gcm/register"; @@ -23,5 +25,9 @@ namespace ZicMoove public static int AllowBeATarget = 1; public static int CloudTimeout = 400; + + public const string PermissionMapReceive = Constants.ApplicationName + ".permission.MAPS_RECEIVE"; + public const string PermissionC2DMessage = Constants.ApplicationName + ".permission.C2D_MESSAGE"; + } }