changement de candidat à l'investissement
This commit is contained in:
parent
8114c2409c
commit
be3087fff6
351 changed files with 359 additions and 497 deletions
|
|
@ -1,48 +0,0 @@
|
|||
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;
|
||||
using Android.Service.Chooser;
|
||||
using static Android.Manifest;
|
||||
|
||||
namespace BookAStar.Droid
|
||||
{
|
||||
[Service(
|
||||
Name = "fr.pschneider.bas.YavscChooserTargetService",
|
||||
Label = "Yavsc share service",
|
||||
Permission = Permission.BindChooserTargetService,
|
||||
Icon = "@drawable/icon",
|
||||
Exported = true,
|
||||
Enabled = true
|
||||
)]
|
||||
[IntentFilter(new String[] { "android.service.chooser.ChooserTargetService" })]
|
||||
class YavscChooserTargetService : ChooserTargetService
|
||||
{
|
||||
public override IList<ChooserTarget> OnGetChooserTargets(ComponentName targetActivityName, IntentFilter matchedFilter)
|
||||
{
|
||||
Android.Graphics.Drawables.Icon i =
|
||||
Android.Graphics.Drawables.Icon.CreateWithResource(this.BaseContext,
|
||||
Resource.Drawable.icon);
|
||||
ChooserTarget t = new ChooserTarget(
|
||||
new Java.Lang.String(
|
||||
Constants.ApplicationName), i,
|
||||
.5f, new ComponentName(this, "BookAStar.SendFilesActivity"),
|
||||
null);
|
||||
var res = new List<ChooserTarget>();
|
||||
res.Add(t);
|
||||
return res;
|
||||
}
|
||||
|
||||
public override IBinder OnBind(Intent intent)
|
||||
{
|
||||
return base.OnBind(intent);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue