Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 89864 articles
Browse latest View live

MasterDetailPage - how to Navige from other page to MasterDetailPage

$
0
0

I've used:
Application.Current.MainPage = new NavigationPage(new RootPage());
or
Application.Current.MainPage = new RootPage();
RootPage : MasterDetailPage

Before that the app works normally, but today I open the project to update it and it doesn't work
I don't know what error this is,


StackLayout child element goes beyond the screen - Xamarin

$
0
0

I have created Stacklayout with Orientation horizontal. I have created a custom control like displaying text. Button and Custom control added as the child element for the stacklayout.

Long text is set for the custom control, Issue is the text is not wrapped to the next line it goes beyond the screen. How to get the available width of the parent?

CollectionViews inside a tab switching component inside a ScrollView

$
0
0

I am trying to implement the following layout structure using Xamarin Forms components:

- ScrollView (which displays a sticky header when scrolling)
     - Title & body text
        - Tab Switching Component
            - Tab 1: CollectionView of items (load new items on ItemThresholdReached)
            - Tab 2: CollectionView of items (")

The desired behaviour is that when scrolling down either of the CollectionViews, the content above this (the text and tab switcher) should scroll out of view and be hidden by the sticky header. Upon scrolling back to the top of the collection view, it would scroll to the top of the page, revealing the content at the top and the sticky header would hide. Essentially, the Collection View and header content should scroll together as one scrolling view. With the above structure, the scroll isn't working because these CollectionViews are inside of an outer ScrollView.
I am using Collection View elements here because I am utilising the ItemThresholdReachedCommand to efficiently load more elements to the collection. The length of the collections will potentially be in the hundreds so performance is also important.

So far I have tried the following:

I set the header content as the header element of the Collection Views so that they would scroll as one. However this doesn't work because the header content is shared by both collection views, including the tab switcher component which wraps both Collection Views. Therefore this content cannot be placed into Collection View header elements.

I have also tried using a BindableLayout instead of CollectionView but this has none of the built-in events that Collection View has and I have read that Bindable Layout shouldn't be used for larger lists of items.

If anyone has any advice on the best way of trying to achieve this, it would be much much appreciated. At this point it feels impossible in Xamarin Forms!

MVVMCross with a modal popup

$
0
0

Hi guys,

I'm trying to present my login page as a modal page using Xamarin.Forms and MVVMCross.

My page flow is that I have a main screen, which has a property to check whether the user is logged in. If they are not, I want to present the login page as a modal over the top of the navigation stack the loading page is part of.

How do I present a page as modal on top of this navigation stack?

Regards,

Darbio

How to use TextView.SetAutoSizeTextTypeUniformWithConfiguration on Android 6.0.1?

$
0
0

In a custom renderer and in an effect, both on Android, I make use of TextView.SetAutoSizeTextTypeUniformWithConfiguration

On a Samsung Galaxy J5 running Android 6.0.1 this is resulting in a Java.Lang.NoSuchMethodError exception.

I believe that TextView.SetAutoSizeTextTypeUniformWithConfiguration was introduced in Oreo. However, according to https://android.jlelse.eu/auto-sizing-textviews-in-android-d615ee2dc794 , using the V26 (and I assume any later) support libraries should add support for TextView.SetAutoSizeTextTypeUniformWithConfiguration in Android 4.0 and later (I am interpreting the wording on that page, as the English is a little dodgy).

Exactly what is says is:

First, you have to add the support library v26 or more in your build.gradle file.
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
Although, it has been introduced in Android Oreo, but through using support library, this feature is backward compatible upto the Android 4.0 and later.

In my Xamarin.Forms app, I add the following NuGets:
Xamarin.Android.Support.Compat 28.0.0.3
Xamarin.Android.Support.Media.Compat 28.0.0.3
Xamarin.Android.Support.v7.AppCompat 28.0.0.3

but still it reports Java.Lang.NoSuchMethodError on Android 6.0.1.

What else do I need to do to get that method supported?

app.REPL() not working

$
0
0

Hi, I'm trying to use REPL in my local UI tests but whenever I insert it, likewise :

[Test]
public void Test5_SignInWithCorrectCredentials()
{
new LoginUITestPage(app)
.ClearCredentialsFields()
.EnterCredentials("amrou.mobile.ui.test@yopmail.com", "a")
.ClickOnLoginButton()
.WaitForElementByText("Menu");
app.Repl();
}

I get all of this :
Android SDK Path: C:\Program Files (x86)\Android\android-sdk
Skipping assembly: C:\Users\Amrou Bellalouna\Source\Repos\PepinoTechDEV2\Expensya\UITestNewUX\bin\Debug\e_sqlite3.dll - Scan failed with exception: System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders(UInt16& subsystem, UInt16& dll_characteristics)
at Mono.Cecil.PE.ImageReader.ReadImage()
at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream)
at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Xamarin.UITest.Repl.Program.LoadAssembliesAndAddUsingsForExtensionMethods(String assemblyPath, String uiTestPath, ReplFacade replFacade)
Skipping assembly: C:\Users\Amrou Bellalouna\Source\Repos\PepinoTechDEV2\Expensya\UITestNewUX\bin\Debug\libSkiaSharp.dll - Scan failed with exception: System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders(UInt16& subsystem, UInt16& dll_characteristics)
at Mono.Cecil.PE.ImageReader.ReadImage()
at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream)
at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Xamarin.UITest.Repl.Program.LoadAssembliesAndAddUsingsForExtensionMethods(String assemblyPath, String uiTestPath, ReplFacade replFacade)
WARNING: Detected System.Net.Http.dll in bin folder. This may be due to this known mono issue: https://bugzilla.xamarin.com/show_bug.cgi?id=60315#c2 - we recommend you delete this dll before running tests to avoid test failures.
Full log file: C:\Users\Amrou Bellalouna\AppData\Local\Temp\uitest\log-2020-11-25_14-15-21-214.txt
Execution failed with exception: System.Exception: Java Development Kit (JDK) not found. Please make sure that it is installed and if it's still not located, please set the JAVA_HOME environment variable to point to the directory.

Searched locations:Windows Registry
[ Source: JAVA_HOME ]
at Xamarin.UITest.Shared.Dependencies.JdkFinder..ctor()
at Xamarin.UITest.Shared.Android.DefaultAndroidFactory.BuildExecutor(IProcessRunner processRunner)
at Xamarin.UITest.Android.AndroidApp..ctor(IAndroidAppConfiguration appConfiguration, IExecutor executor)
at .Host(Object& $retval)
at Mono.CSharp.Evaluator.Evaluate(String input, Object& result, Boolean& result_set)
at Xamarin.UITest.Repl.Evaluation.MonoCSharpReplEngine.Evaluate(String line)
at Xamarin.UITest.Repl.Repl.ReplFacade.RunCode(String code)
at Xamarin.UITest.Repl.Program.Main(String[] args)

How can I solve this ?

AOT or Obfuscate XF android app?

$
0
0

Hello,

I'm going through the throws of obfuscating my XF app.
The actual Android project does not really need obfuscating but the Shared project does.

If I set "AotAssemblies>true</AotAssemblies" in the android .csproj, does this AOT the shared assembly too?
Can/Should I add "AotAssemblies>true</AotAssemblies" to the Shared .csproj file.

Lastly, in lieu of obfuscation, is AOT enough to protect code?

Excuse my ignorance on this, I seldom dive into editing .csproj files...

Thanks

white page before and after splashscreen

$
0
0

Hello,

I followed the following tutorial
https://docs.microsoft.com/en-us/xamarin/android/user-interface/splash-screen to display a splash screen.
my problem was the distortion of the image.

I got to fix this problem with the following code:
resources> layout> layout1.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <ImageView
        android:src="@drawable/splash_image"
        android:layout_width="fill_parent"
        android:layout_height="match_parent"
        android:scaleType="centerCrop"/>
</LinearLayout>

resources>values>styles.xml

  <style name="MainTheme.Splash" parent ="Theme.AppCompat.Light.NoActionBar">
    <!--<item name="android:windowBackground">@drawable/splash_screen</item>-->
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowActionBar">true</item>
  </style>

SplashActivity .cs

    [Activity(Theme = "@style/MainTheme.Splash", MainLauncher = true, NoHistory = true)]
    public class SplashActivity : AppCompatActivity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.layout1);
           /*
            Task.Run(async () => {
                await Task.Delay(3000); // Simulate a bit of startup work.
                StartActivity(new Intent(Application.Context, typeof(MainActivity)));
            });
           */
            Task.Run(() => {
                StartActivity(new Intent(Application.Context, typeof(MainActivity)));
            });
        }
    }

with "centercrop" i got the start screen undistorted but now i have a blank page before and after.

Do you have an idea of the problem ?

the image of the start screen is 1280x1920px 240dpi and 268Kb. There is no heavy processing at startup but 4 visuals which share the home page of the application (600x400px each 300Kb max for one of them).

thanks a lot for your help.


Open Tabbed Page from a shellcontent

$
0
0

Hi to all,
i have a form Shell that includes a FlyoutItem and some Tab with ShellContent and all works fine, but if a try to open through ContentTemplate a TabbedPage i have an error "Specified casi is not valid."
TargetSite: {Void OnElementChanged(Xamarin.Forms.Platform.Android.ElementChangedEventArgs`1[Xamarin.Forms.NavigationPage])} System.Reflection.RuntimeMethodInfo

If a Open a ContentePage all works fine... but i need to open also TabbedPage

I have the doubt that it is not possible to open a tabbedPage from a Shell but I see applications that do that, can you help me?

<Shell xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:unica"
             x:Class="unica.Views.KodiViews.KodiHome"
xmlns:local1="clr-namespace:unica.Views.KodiViews">
 <Shell.FlyoutHeader>
       <local1:HeaderContentView />
  </Shell.FlyoutHeader>
 <FlyoutItem Title="MyApp"
               Shell.TabBarIsVisible="false"
               FlyoutDisplayOptions="AsMultipleItems">

       <Tab Title="Home" Icon="ic_action_home.png" >
            <ShellContent   IsTabStop="True" ContentTemplate="{DataTemplate local1:MYTABBEDPAGEHERE}"/>
       </Tab> 
 </FlyoutItem>
</Shell>

Facebook Share

$
0
0

Hi,

I need to implement FB share in my app (Xamarin Forms PCL) and I tryed really a lot of plugin and working for many days with no success.
Can you please share your experience on which is the best plugin to reach the goal and how to use it?

I need to implement bot on Android and iOS

Thank you a lot for your help!

Using Ninject and Xamarin Forms with Tabbed page, dependency injection bypassed?

$
0
0

Hi all,

Noob/hobbyist here.
I'm currently using Ninject in Xamarin Forms to handle dependency injection, navigation etc.. I'm able to register view mappings, bind models and navigate successfully between pages (sometimes passing in models as parameters).

I added a Tabbed page which has 4 tabs, each to a navigation page. Now when I navigate between tabs to these pages it seems there's no bindings between the page and view models that I registered in Ninject because I'm not navigating using Ninject, the Tabbed page bypassed this.

Is there a way to overcome this? I've found some mention of custom renders although I'm not too familiar with how you would implement this for each platform or if it's even possible.
I'm looking into the TabbedPage_CurrentPageChanged event but I'm not sure if this would get really sloppy and lead me down another rabbit hole. Is there a way to override the Tabbed page navigation ?

Has anyone had a similar problem and know of the right path to go down?

Thanks in advance
Shaun

Note : Question has also been asked in the Microsoft Q&A forums

Entry drop action does not work in MacOs BigSur

$
0
0

Hello

Dragging files to my application has stopped working in the new version of the operating system.

Until now I could drag a file or folder to an entry control to copy the file/directory path of it.

I have implemented DropGestureRecognizer in the entry control, but event is not fired.

<Entry.GestureRecognizers>
                    <DropGestureRecognizer AllowDrop="True" Drop="DropGestureRecognizer_Drop" ></DropGestureRecognizer>
</Entry.GestureRecognizers>

any ideas?

I have tried the latest version 4.8 and the actual pre version of 5, both work in Catalina but not work in bigsur.

Thanks.

Access Views in the grid

$
0
0

Hello,
i have a grid which has 51 row and 8 columns. Each cell has one BoxView and one Label. Because the grid is quite large (408 cells in total) i have created the grid itself in the XAML file; rows, columns, BoxViews and Labels were added dynamically in the code (.cs file). The grid will always have the same structure - the same number of rows, columns, same elements in the grid.
Now i need to change Labels text and BoxViews background color in the grid to show some changing data to the user. For example i need to set BoxView's background color in row 1 and column 2 to black, i need to set Label's text in row 14 and column 20 to "ABC". These changes must be performed dynamically. But i have not found a way how to get control over Label or BoxView in the grid.
My primary thought was to assign different ClassID properties to each of these labels and boxviews. Then to loop through all childrens in the grid and get the required View using ClassID property and using foreach(var MyView in Grid){}. However i have not found how to do such looping without compiller errors and i don't now is it possible after all. Any suggestions?

How to display the image when the build action of the image file is the content

$
0
0

Currently, I am displaying an image using the build action of an image file as an embedded resource, but I do not know how to display the image when the build action is changed to content.

Someone please show me a sample

Editing an SVG image programmatically

$
0
0

So yeah, we added a handful of SVG images to a Forms App we are working on. That is all fine and dandy. The problem is that the images are going to change.

How? Well, let's say that as long as the app is running (which, given its functionality, is almost an entire day) is going to receive a certain amount of data the is going to change the appearance of said SVG images. The data in question is a number and a string containing a colour (in hex).

What do we want to do with this number and hex? Modify the SVG, change the usual black colour into the hex and write the number on top of the image. Sounds simple, yet it's proven to be quite impossible.

Normally, what we do is fill the resources with the same image (png, obviously) in different colours so that, when necessary, changing from one colour to another is as easy as changing the Image's source. BUT, since we do not know the colours beforehand (and also, they are subject to change), we have to manipulate the SVG as the app runs. The integer is no easy feat either.

If someone knows about how to do something like this, we'll be grateful to hear. Please, ask about any info about our project we might have overlooked (packages, frameworks, etc.).

Regards.

P.S.: In ordrer to load the SVG,s, we use SkiaSharp. Any alternative will be welcome. As long as it works in our framework.
Visual Studio for Mac (Community) V. 8.8 (build 2913)
Xamarin.Forms (4.8.0.1687)
.NET Standard 2.0


Xamarin Forms - CarouselView and pinchTozoom android slow

$
0
0

Hi!
My code with CarouselView and zoom image execute very well on IOS, but on android stay very slow when i execute zoom.

Could someone help me?

----------------------------XML----------------------------


<CarouselView.ItemTemplate>



<zoom:PinchToZoomContainer.Content >

</zoom:PinchToZoomContainer.Content>



</CarouselView.ItemTemplate>

---------------------------------------PinchToZoomContainer Class-------------------------------

public class PinchToZoomContainer : ContentView
{
double currentScale = 1;
double startScale = 1;
double xOffset = 0;
double yOffset = 0;
double lastScaleChange = 0;
double scaleChange = 0;

     public PinchToZoomContainer()
     {
         var pinchGesture = new PinchGestureRecognizer();
         pinchGesture.PinchUpdated += OnPinchUpdated;
         GestureRecognizers.Add(pinchGesture);
     }

     void OnPinchUpdated(object sender, PinchGestureUpdatedEventArgs e)
     {
         if (e.Status == GestureStatus.Started)
         {
             // Store the current scale factor applied to the wrapped user interface element,
             // and zero the components for the center point of the translate transform.
             startScale = Content.Scale;
             Content.AnchorX = 0;
             Content.AnchorY = 0;
         }
         if (e.Status == GestureStatus.Running)
         {
             // Calculate the scale factor to be applied.
             currentScale += (e.Scale - 1) * startScale;
             currentScale = Math.Max(1, currentScale);

             // The ScaleOrigin is in relative coordinates to the wrapped user interface element,
             // so get the X pixel coordinate.
             double renderedX = Content.X + xOffset;
             double deltaX = renderedX / Width;
             double deltaWidth = Width / (Content.Width * startScale);
             double originX = (e.ScaleOrigin.X - deltaX) * deltaWidth;

             // The ScaleOrigin is in relative coordinates to the wrapped user interface element,
             // so get the Y pixel coordinate.
             double renderedY = Content.Y + yOffset;
             double deltaY = renderedY / Height;
             double deltaHeight = Height / (Content.Height * startScale);
             double originY = (e.ScaleOrigin.Y - deltaY) * deltaHeight;

             // Calculate the transformed element pixel coordinates.
             double targetX = xOffset - (originX * Content.Width) * (currentScale - startScale);
             double targetY = yOffset - (originY * Content.Height) * (currentScale - startScale);

             // Apply translation based on the change in origin.
             Content.TranslationX = targetX.Clamp(-Content.Width * (currentScale - 1), 0);
             Content.TranslationY = targetY.Clamp(-Content.Height * (currentScale - 1), 0);

             // Apply scale factor
             Content.Scale = currentScale;
         }
         if (e.Status == GestureStatus.Completed)
         {
             // Store the translation delta's of the wrapped user interface element.
             xOffset = Content.TranslationX;
             yOffset = Content.TranslationY;
         }
     }
 }

error MSB4062: The "Xamarin.Build.Download.XamarinBuildiOSResourceRestore" task could not be loaded

$
0
0

Since updating VS for Mac to 8.8.2 (41) I started getting this weird build error:

error MSB4062: The "Xamarin.Build.Download.XamarinBuildiOSResourceRestore" task could not be loaded from the assembly /Users/cristianmerli/.nuget/packages/xamarin.build.download/0.4.7/build/Xamarin.Build.Download.dll. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

Did anyone experience this too? How did you solve it?

I don't have that package installed, and I didn't have it before and i was always able to build and publish...

Xamarin.Android.Crashlytics: Update to latest by Nov 15,2020.. Facing an issue while compiling

$
0
0

Hi,

I had to update my Crashlytics, as they stopped sending Crashlogs post Nov 15th 2020, in the process i'm getting the below error and unable to compile.

Error:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Legacy.targets(5,5): Error XALNK7000: Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'Firebase.Iid.Zzb' (defined in assembly 'Xamarin.Firebase.Messaging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') with scope 'Xamarin.Firebase.Iid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. When the scope is different from the defining assembly, it usually means that the type is forwarded. ---> Mono.Cecil.ResolutionException: Failed to resolve Firebase.Iid.Zzb
at Mono.Linker.Steps.MarkStep.HandleUnresolvedType (Mono.Cecil.TypeReference reference) [0x00013] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x0002c] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.MonoDroidMarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x00000] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x00060] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.MonoDroidMarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x00000] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x00060] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.MonoDroidMarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x00000] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x0006d] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.MonoDroidMarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x00000] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.MarkField (Mono.Cecil.FieldDefinition field) [0x00011] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.MarkEntireType (Mono.Cecil.TypeDefinition type) [0x000bd] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.MarkEntireType (Mono.Cecil.TypeDefinition type) [0x0001e] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.MarkEntireAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x0003a] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.InitializeAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x00045] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.Initialize () [0x00014] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x00007] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.MonoDroidMarkStep.Process (Mono.Linker.LinkContext context) [0x0000b] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Pipeline.ProcessStep (Mono.Linker.LinkContext context, Mono.Linker.Steps.IStep step) [0x0000d] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x0000f] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline, Mono.Linker.LinkContext context) [0x00000] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.Linker.Process (MonoDroid.Tuner.LinkerOptions options, Mono.Linker.ILogger logger, Mono.Linker.LinkContext& context) [0x00071] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Xamarin.Android.Tasks.LinkAssemblies.Execute (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver res) [0x001dd] in <3e53085892e04b628169d0ea2d9ff8b6>:0
--- End of inner exception stack trace ---
at Java.Interop.Tools.Diagnostics.Diagnostic.Error (System.Int32 code, System.Exception innerException, System.String message, System.Object[] args) [0x00000] in /Users/builder/azdo/_work/451/s/xamarin-android/external/Java.Interop/src/Java.Interop.Tools.Diagnostics/Java.Interop.Tools.Diagnostics/Diagnostic.cs:166
at Xamarin.Android.Tasks.LinkAssemblies.Execute (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver res) [0x00276] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Xamarin.Android.Tasks.LinkAssemblies.RunTask () [0x0001b] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Xamarin.Android.Tasks.AndroidTask.Execute () [0x00000] in <3e53085892e04b628169d0ea2d9ff8b6>:0 (XALNK7000) (EmployeeApp.Android)

Note : I'm on the latest of all the plugins and Visual Studio For Mac too.

Any workaround or suggestion is much appreciated.

Regards,
Raghavendra

how Shell.Current.GoToAsync back twice?

$
0
0

I opened page-1 then open page-2 then open page-3 then how to back to page-1 from page-3?

My app is opening inside the whatsapp when I click my app link in whatsapp

$
0
0

Hi, I have implemented the sharing feature with Whatsapp. Here we can share the forums through whatsapp. When I share a forum, I will include image and text along with my app url and send to end user.

Currently My app is running inside the whatsapp when the end user clicks on my shared link.
How can I open my app as a separate app instead of running in whatsapp?

Here is my code using in MainActivity.

[IntentFilter(new[] { Intent.ActionView },
Categories = new[]
{
Intent.ActionView,
Intent.CategoryDefault,
Intent.CategoryBrowsable
},
DataScheme = "https",
DataHost = "sampleapp.co.in",
DataPathPrefix = "/",
AutoVerify = true)
]

[IntentFilter(new[] { Intent.ActionView },
    Categories = new[]
    {
        Intent.ActionView,
        Intent.CategoryDefault,
        Intent.CategoryBrowsable
    },
    DataScheme = "http",
    DataHost = "sampleapp.co.in",
    DataPathPrefix = "/",
    AutoVerify = true)
      ]      

Thanks in advance.

Viewing all 89864 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>