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

Shell Hamburger Icon

$
0
0

On one of the pages in my Xamarin.Forms Shell app, I need to put more into the NavigationBar than you can do with ToolbarItem. So, I am hiding the Navigation Bar and using a ControlTemplate. Everything looks and works fine. Except I need an icon or png for the hamburger menu on both iOS and Android. I want them to match what Xamarin.Forms Shell uses because my other pages don't hide the Navigation Bar.

I've looked through the Xamarin.Forms source and can't find them. Can anyone tell me where they are?


What would be the problems if any of resetting the Application.Current.MainPage to navigate the app?

$
0
0

Does anyone know if it is a bad practice or the wrong approach to reset the Application.Current.MainPage every time I want to transition to a new page in my app?

For example, let's assume my app begins with a login page, you enter your email and password and you tap on a login button. The app will authenticate your credentials and log you in. Inside the event handler function for the login button instead of writing Navigation.PushAsync(new NextPage());, I wrote Application.Current.MainPage = new NextPage(); Thanks in advance!

Write file to public directory (Android)

$
0
0

Good afternoon people.

I am trying to save files to a public directory but so far without success. I already saved and recovered internally in the app without any problems, but I wanted to save it in a public directory.

I use Xamarin Forms, I am developing an app for Android and iOS similar to WhatsApp. I wanted to save in a public directory for two reasons.

1- To be like WhatsApp that creates a directory at the root with all media files, it is easy for the user to access that directory, backup, clean and etc.

2- I am using Xam.Plugin.SimpleAudioPlayer (https://github.com/adrianstevens/Xamarin-Plugins/issues/75) to play the audio files, it works very well, but on devices with Android 10 it is not playing, error (Prepare failed .: status = 0x1) when trying to play the file. I imagine it is because of the new permissions on Android 10. If the file were in a public directory it would probably work.

Anyway, I've tried everything to save a file in a public directory and so far I haven't been able to. Does anyone know how to do this?

Below are some of the tests I've done via DependencyService:

Media Element crash when navigating away from page on Ios

$
0
0

I am getting Media Element disposing exception when I navigate back to a previous page from a page where I have my Media Element.

The managed Managed Stacktrace:

          at <unknown> <0xffffffff>
          at ObjCRuntime.Messaging:void_objc_msgSend_IntPtr <0x00007>
          at AVFoundation.AVPlayer:ReplaceCurrentItemWithPlayerItem <0x0005b>
          at Xamarin.Forms.Platform.iOS.MediaElementRenderer:Dispose <0x002b7>
          at Foundation.NSObject:Dispose <0x00023>

My steps to reproduce were:
Push new page with MediaElement. Click play on video.
Click back to pop page.
Page does pop but UI becomes unresponsive.

my code is:

public partial class SermonsMediaPlayer : ContentPage
            {
                private Sermon Sermon;

                public SermonsMediaPlayer(Sermon selectedSermon)
                {
                    InitializeComponent();

                    if (selectedSermon is null)
                    {
                        Sermon = new Sermon();
                    }

                    Sermon = selectedSermon;
                    BindingContext = Sermon;

                }

                async void Back_Clicked(object sender, EventArgs args)
                {
                    // release media resources
                    if (mediaPlayer.CurrentState == MediaElementState.Playing)
                    {

                        mediaPlayer.Stop();
                        await Navigation.PopModalAsync();
                    }

                    await Navigation.PopModalAsync();
                }

                protected override void OnDisappearing()
                {
                    base.OnDisappearing();
                }
            }


        <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="xxxViews.SermonsMediaPlayer">
            <ContentPage.ToolbarItems>
                <ToolbarItem Text="Back" Clicked="Back_Clicked" />
            </ContentPage.ToolbarItems>
            <ContentPage.Content>
                <Grid>
                    <MediaElement x:Name="mediaPlayer" Source="{Binding Url}" AutoPlay="False"
                      ShowsPlaybackControls="True" KeepScreenOn="False" />
                </Grid>
            </ContentPage.Content>
        </ContentPage>

List View : How to find selected item when there are duplicates

$
0
0

Hello,

I'm new to Xamarin and mobile app development.
I've always used lstItems.SelectedIndex to find the selected item when there are duplicate items in a list. But with Xamarin.forms, this doesn't seem to be an option. I am very new (as of this morning..) to using view models and binding. I think I get the basic idea, but I'm very stuck and need some guidance.

Lets assume the list is named lstItems. There may be multiple of the same items on the list. How can I tell which item has been selected?

Thank you in advance.

PlaceHolder Event Change

$
0
0

Hi Techie,
I need to change the placeholder text after i clicked the Entry ? How i will achieve this ?

Thanks,
Vasanth

How can I push notification by using firebase xamarin project?

$
0
0

I want to push noti by using firebase.

IOS App Icon

$
0
0

Hello and hope doing well, can i set only one image for my application icon in ios? Just like android?


Callkit incoming call handling

$
0
0

I have a Forms and iOS project in the same solution.

Forms contains the majority of my code and iOS contains only a single service specific to iOS (Droid will be done later).

I have to use CallKit and have seen and read through the MonkeyCall app at https://docs.microsoft.com/en-us/xamarin/ios/platform/callkit?tabs=windows but how would I go about registering the incoming call handler? Would it be another service?

In the example the only way I can get it to work is through a ViewController within the iOS project but I only have views in the shared Forms project.

TIA

Callkit + pushkit + twilio + xamarin.forms

ListView Cell Arrow (Disclosure Indicator)

$
0
0

Hi,

Is it possible to show the "Disclosure Indicator" in a ListView cell (Normally I would set UITableViewCellAccessoryType to UITableViewCellAccessoryDisclosureIndicator)? Basically I want the little arrow to be shown on a cell.

Thanks!

Xamarin Forms : Handle SSO in WebView with application's MSAL authentication token

$
0
0

Hi all,
I have implemented the MSAL authentication using Xamarin forms and need to load another Url on Webview with already authenticated user during App Login with MSAL, Android working fine but iOS webview is again asking the user credentials to authenticate new URl on webview.
Could some one suggest how to achieve this if already implemented this, thanks in advance.

When deploying a Xamarin.Forms project on android it shows the never ending build process.

$
0
0

I checked-out the the existing code to my new mac machine using svn. Now when I try to deploy it on an android simulator/device it stays in the never ending build process after selecting the start execution button. Otherwise it shows updating resources that too forever. Kindly help. I am not able to check it on Android.

Xamarin.Forms with Shell: is there a way to specify a icon's color for active tab only?

$
0
0

I'm working on a Xamarin.Forms app based on Shell, and I'm using font icons as icons for the TabBar:

<TabBar>
    <ShellContent Title="Home" Route="HomePage" ContentTemplate="{DataTemplate local:HomePage}">
        <ShellContent.Icon>
            <FontImageSource Glyph="{StaticResource FasIconHome}" FontFamily="FontAwesomeSolid" />
        </ShellContent.Icon>
    </ShellContent>
</TabBar>

I would like to specify a color only for the active tab, but only for the icon, not for the text, as we can see on Airbnb:
Airbnb screenshot

I didn't found any option in the Shell settings:

<Setter Property="Shell.BackgroundColor" Value="White" />
<Setter Property="Shell.ForegroundColor" Value="Black" />
<Setter Property="Shell.TitleColor" Value="Black" />
<Setter Property="Shell.DisabledColor" Value="{StaticResource Gray-300}" />
<Setter Property="Shell.UnselectedColor" Value="{StaticResource Gray-300}" />
<Setter Property="Shell.TabBarBackgroundColor" Value="White" />
<Setter Property="Shell.TabBarForegroundColor" Value="{StaticResource Gray-300}"/>
<Setter Property="Shell.TabBarUnselectedColor" Value="#95000000" />
<Setter Property="Shell.TabBarTitleColor" Value="Black" />

Is it possible?

BindableProperty on init

$
0
0

I've a custom control that should change the background color of an entry when it's focused or unfocused. This works like a charm but I would like to have the colors that I've set in the xaml on the initial load and not only after trigger focus/unfocus. How do I do that or what is a good aproach?

Thanks in advance!

Here is my class:

[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class SingleDigitEntry
{
    public SingleDigitEntry()
    {
        InitializeComponent();
    }

    private static readonly BindableProperty BorderColorActiveProperty =
        BindableProperty.Create(
            nameof(BorderColorActive),
            typeof(Color),
            typeof(SingleDigitEntry), 
            Color.Blue);

    public Color BorderColorActive
    {
        get => (Color)GetValue(BorderColorActiveProperty); 
        set => SetValue(BorderColorActiveProperty, value);
    }

    private static readonly BindableProperty BorderColorInActiveProperty =
        BindableProperty.Create(
            nameof(BorderColorInactive),
            typeof(Color),
            typeof(SingleDigitEntry),
            Color.DarkBlue);
    public Color BorderColorInactive
    {
        get => (Color)GetValue(BorderColorInActiveProperty); 
        set => SetValue(BorderColorInActiveProperty, value);
    }

    private static readonly BindableProperty BackgroundColorActiveProperty =
        BindableProperty.Create(
            nameof(BackgroundColorActive),
            typeof(Color),
            typeof(SingleDigitEntry), 
            Color.Blue);

    public Color BackgroundColorActive
    {
        get => (Color)GetValue(BackgroundColorActiveProperty); 
        set => SetValue(BackgroundColorActiveProperty, value);
    }

    private static readonly BindableProperty BackgroundColorInactiveProperty =
        BindableProperty.Create(
            nameof(BackgroundColorInactive),
            typeof(Color),
            typeof(SingleDigitEntry), 
            Color.DarkBlue);

    public Color BackgroundColorInactive
    {
        get => (Color)GetValue(BackgroundColorInactiveProperty); 
        set => SetValue(BackgroundColorInactiveProperty, value);
    }

    private static readonly BindableProperty BorderWithProperty =
        BindableProperty.Create(
            nameof(BorderWith),
            typeof(int),
            typeof(SingleDigitEntry), 
            0);


    public int BorderWith
    {
        get => (int)GetValue(BorderWithProperty); 
        set => SetValue(BorderWithProperty, value);
    }

    private static readonly BindableProperty PreviousEntryProperty =
        BindableProperty.Create(
            nameof(PreviousEntry),
            typeof(ExtendedEntry),
            typeof(SingleDigitEntry), 
            null);

    public ExtendedEntry PreviousEntry
    {
        get => (ExtendedEntry)GetValue(PreviousEntryProperty); 
        set => SetValue(PreviousEntryProperty, value);
    }

    private static readonly BindableProperty NextEntryProperty =
        BindableProperty.Create(
            nameof(NextEntry),
            typeof(ExtendedEntry),
            typeof(SingleDigitEntry), 
            null);

    public ExtendedEntry NextEntry
    {
        get => (ExtendedEntry)GetValue(NextEntryProperty); 
        set => SetValue(NextEntryProperty, value);
    }

    private static readonly BindableProperty CornerRadiusProperty =
        BindableProperty.Create(
            nameof(CornerRadius),
            typeof(float),
            typeof(SingleDigitEntry), 
            null);

    public float CornerRadius
    {
        get => (float)GetValue(CornerRadiusProperty); 
        set => SetValue(CornerRadiusProperty, value);
    }

    private Color _currentBorderColor;
    public Color CurrentBorderColor
    {
        get => _currentBorderColor;
        set
        {
            _currentBorderColor = value;
            OnPropertyChanged(nameof(CurrentBorderColor));
        }
    }

    private Color _currentBackgroundColor;
    public Color CurrentBackgroundColor
    {
        get => _currentBackgroundColor;
        set
        {
            _currentBackgroundColor = value;
            OnPropertyChanged(nameof(CurrentBackgroundColor));
        }
    }

    private void OnFocused(object sender, FocusEventArgs e)
    {
        CurrentBackgroundColor = BackgroundColorActive;
        CurrentBorderColor = BorderColorActive;
    }

    private void OnUnfocused(object sender, FocusEventArgs e)
    {
        CurrentBackgroundColor = BackgroundColorInactive;
        CurrentBorderColor = BorderColorInactive;
    }
}

This is my xaml:

<ContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:renderers="clr-namespace:Test.Renderers;assembly=Test.Renderers" x:Class="Test.Controls.SingleDigitEntry" x:Name="this">
<Frame IsClippedToBounds="True" BackgroundColor="{Binding CurrentBorderColor, Source={x:Reference this}}" Padding="1, 1, 1, 1" CornerRadius="5" HasShadow="False" HorizontalOptions="FillAndExpand" ><Frame BackgroundColor="{Binding CurrentBackgroundColor, Source={x:Reference this}}" Padding="0" CornerRadius="5" HorizontalOptions="FillAndExpand" HasShadow="False">
<renderers:ExtendedEntry Style="{StaticResource OneDigitEntry}" CornerRadius="5" Focused="OnFocused" Unfocused="OnUnfocused" />
        </Frame>
    </Frame>
</ContentView>

And last but not least, the usage in my content page:

<controls:SingleDigitEntry BackgroundColorActive="YellowGreen" BorderColorActive="YellowGreen" BorderColorInactive="Red" BackgroundColorInactive="Red" />


How to restrict to enter Minus in numeric keyboard?

$
0
0

Hi All,

I want to enter only 0-9 values in entry. Using numeric keyboard i am able to enter minus(-) and dot(.). can i know how to restrict minus in the xamarin.android keyboard?

Thanks!

When deploying a Xamarin.Forms project on android it shows the never ending build process.

$
0
0

I checked-out the the existing code to my new mac machine using svn. Now when I try to deploy it on an android simulator/device it stays in the never ending build process after selecting the start execution button. Otherwise it shows updating resources that too forever. Kindly help. I am not able to check it on Android.

Xamarin.Forms with Shell: is there a way to specify a icon's color for active tab only?

$
0
0

I'm working on a Xamarin.Forms app based on Shell, and I'm using font icons as icons for the TabBar:

<TabBar>
    <ShellContent Title="Home" Route="HomePage" ContentTemplate="{DataTemplate local:HomePage}">
        <ShellContent.Icon>
            <FontImageSource Glyph="{StaticResource FasIconHome}" FontFamily="FontAwesomeSolid" />
        </ShellContent.Icon>
    </ShellContent>
</TabBar>

I would like to specify a color only for the active tab, but only for the icon, not for the text, as we can see on Airbnb:
Airbnb screenshot

I didn't found any option in the Shell settings:

<Setter Property="Shell.BackgroundColor" Value="White" />
<Setter Property="Shell.ForegroundColor" Value="Black" />
<Setter Property="Shell.TitleColor" Value="Black" />
<Setter Property="Shell.DisabledColor" Value="{StaticResource Gray-300}" />
<Setter Property="Shell.UnselectedColor" Value="{StaticResource Gray-300}" />
<Setter Property="Shell.TabBarBackgroundColor" Value="White" />
<Setter Property="Shell.TabBarForegroundColor" Value="{StaticResource Gray-300}"/>
<Setter Property="Shell.TabBarUnselectedColor" Value="#95000000" />
<Setter Property="Shell.TabBarTitleColor" Value="Black" />

Is it possible?

Failed to launch DeviceAgent exitcode 65 in xamarin UI test iOS

$
0
0

Hi

I am doing UI test for my app. It is working fine for android. I am facing issue (Failed to launch DeviceAgent and some times i am getting unable to contact deviceagent) while running UI test in iOS simulator. Please help me to fix this issue.
Below are the exception i am getting

Failed to launch DeviceAgent

ExitCode: 65

/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test-without-building -xctestrun /var/folders/yf/m_bm8rwx5rsfm37612r7nq4h0000gp/T/xdb/logs/2020.09.30.194127/DeviceAgent-simulator.xctestrun -destination id=D36A378B-0422-4AB8-993F-CCA5A1906BA2 -derivedDataPath /var/folders/yf/m_bm8rwx5rsfm37612r7nq4h0000gp/T/xdb/logs/2020.09.30.194127/DerivedData
};
IDEDerivedDataPathOverride = /var/folders/yf/m_bm8rwx5rsfm37612r7nq4h0000gp/T/xdb/logs/2020.09.30.194127/DerivedData
IDETestRunSpecificationPath = /var/folders/yf/m_bm8rwx5rsfm37612r7nq4h0000gp/T/xdb/logs/2020.09.30.194127/DeviceAgent-simulator.xctestrun
XCSuiteRecordsKey =     {
                     emitOSLogs:YES
                     testsToRun:(null)
                    testsToSkip:(null)
                  testBundleURL:file:///private/var/containers/Bundle/Application/21A83AF9-FACE-FACE-FACE-00605F990879/UITest-Runner.app/PlugIns/UITest.xctest
                baselineFileURL:(null)
               reportActivities:YES
               testsDrivenByIDE:no
              productModuleName:UITest
              sessionIdentifier:(null)
             reportResultsToIDE:no
          targetApplicationPath:/Users/calabash/Library/Developer/Xcode/DerivedData/CBXDriver-thankyouforusingcalabash/Build/Products/Debug-iphoneos/TestApp.app
          testExecutionOrdering:lexical
         initializeForUITesting:YES
         testBundleRelativePath:(null)
         userAttachmentLifetime:0
        automationFrameworkPath:(null)
       baselineFileRelativePath:(null)
       systemAttachmentLifetime:0
       testsMustRunOnMainThread:YES
      disablePerformanceMetrics:no
      targetApplicationBundleID:sh.calaba.TestApp
     targetApplicationArguments:(null)
    randomExecutionOrderingSeed:(null)
   gatherLocalizableStringsData:no
   targetApplicationEnvironment:(null)
 aggregateStatisticsBeforeCrash:
 bridgedAutomationFrameworkPath:(null)
 testApplicationDependencies:(null)
 testApplicationUserOverrides:(null)
    DeviceAgent-Runner.app (37099) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying Error: Crash: DeviceAgent-Runner (37099): <external symbol>. If you believe this error represents a bug, please attach the result bundle at /var/folders/yf/m_bm8rwx5rsfm37612r7nq4h0000gp/T/xdb/logs/2020.09.30.194127/DerivedData/Logs/Test/Test-Transient Testing-2020.09.30_19-41-29-+0530.xcresult))
    SimDevice: iPhone SE (2nd generation) (D36A378B-0422-4AB8-993F-CCA5A1906BA2, iOS 14.0, Booted)
/var/folders/yf/m_bm8rwx5rsfm37612r7nq4h0000gp/T/xdb/logs/2020.09.30.194127/DerivedData/Logs/Test/Test-Transient Testing-2020.09.30_19-41-29-+0530.xcresult
0   CoreFoundation                      0x0000000106088126 __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x0000000105f18f78 objc_exception_throw + 48
10  CoreFoundation                      0x0000000105fefb9e CFRunLoopRunSpecific + 567
11  GraphicsServices                    0x0000000111d55db3 GSEventRunModal + 139
12  UIKitCore                           0x00000001075dcaf3 -[UIApplication _run] + 912
13  UIKitCore                           0x00000001075e1a04 UIApplicationMain + 101
14  DeviceAgent-Runner                  0x00000001056f91f5 main + 183
15  libdyld.dylib                       0x000000010c430415 start + 1
16  ???                                 0x0000000000000005 0x0 + 5
2   CoreFoundation                      0x0000000106087f4f +[NSException raise:format:] + 0
3   Foundation                          0x00000001059cf293 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166
4   XCTest                              0x000000010586e700 _XCTestMain + 761
5   DeviceAgent-Runner                  0x00000001056f902d -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
6   DeviceAgent-Runner                  0x00000001056f8f2b _XCTRunnerRunTests + 0
7   CoreFoundation                      0x0000000105ff65db __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
8   CoreFoundation                      0x0000000105ff59ef __CFRunLoopDoBlocks + 434
9   CoreFoundation                      0x0000000105ff040c __CFRunLoopRun + 899
TestTargetName:
treatMissingBaselinesAsFailures:no

(
)
** TEST EXECUTE FAILED **
*** First throw call stack:
/var/folders/yf/m_bm8rwx5rsfm37612r7nq4h0000gp/T/xdb/logs/2020.09.30.194127/DerivedData/Logs/Test/Test-Transient Testing-2020.09.30_19-41-29-+0530.xcresult/Staging/1_Test/Diagnostics/DeviceAgent-7C38B979-D2D1-40E1-8629-EEFDECAA24A9/DeviceAgent-89BECBA0-F7CF-4637-9A6F-18C1EA47861A/Session-DeviceAgent-2020-09-30_194129-KIfdF6.log
{
}
} (14.0 (18A372))
2020-09-30 19:41:29.314 xcodebuild[37097:3022949] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
2020-09-30 19:41:29.315 xcodebuild[37097:3022893] [MT] IDETestOperationsObserverDebug: (20DD078D-6391-47B5-8F5E-048224F6B02C) Beginning test session DeviceAgent-20DD078D-6391-47B5-8F5E-048224F6B02C at 2020-09-30 19:41:29.315 with Xcode 12A7300 on target {
2020-09-30 19:41:29.397 xcodebuild[37097:3022893] [MT] IDETestOperationsObserverDebug: (20DD078D-6391-47B5-8F5E-048224F6B02C) Finished requesting crash reports. Continuing with testing.
2020-09-30 19:41:33.677 DeviceAgent-Runner[37099:3023194] Running tests...
2020-09-30 19:41:33.680 DeviceAgent-Runner[37099:3023194] Unable to load configuration data from specified path ; error: The file name is invalid.
2020-09-30 19:41:33.680 DeviceAgent-Runner[37099:3023194] Unable to load configuration data from specified path ; error: The file name is invalid.
2020-09-30 19:41:33.681 DeviceAgent-Runner[37099:3023194] Found most recent test bundle at NSBundle </Users/amose/Library/Developer/CoreSimulator/Devices/D36A378B-0422-4AB8-993F-CCA5A1906BA2/data/Containers/Bundle/Application/F3B74DC1-E18C-4F90-B118-946C91BAFB61/DeviceAgent-Runner.app/PlugIns/DeviceAgent.xctest> (not yet loaded)
2020-09-30 19:41:33.682 DeviceAgent-Runner[37099:3023194] Found most recent test configuration in bundle: /Users/amose/Library/Developer/CoreSimulator/Devices/D36A378B-0422-4AB8-993F-CCA5A1906BA2/data/Containers/Bundle/Application/F3B74DC1-E18C-4F90-B118-946C91BAFB61/DeviceAgent-Runner.app/PlugIns/DeviceAgent.xctest/CBX.xctestconfiguration
2020-09-30 19:41:33.684 DeviceAgent-Runner[37099:3023194] clearing out IDE related attributes
2020-09-30 19:41:33.685 DeviceAgent-Runner[37099:3023194] Running with configuration
2020-09-30 19:41:33.689 DeviceAgent-Runner[37099:3023194] *** Assertion failure in void _XCTestMain(XCTestConfiguration *__strong _Nonnull)(), /Library/Caches/com.apple.xbs/Sources/XCTest_Sim/XCTest-14460.20/Sources/XCTestFramework/Harness/XCTestMain.m:213
2020-09-30 19:41:33.693 DeviceAgent-Runner[37099:3023194] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No test bundle found at file:///private/var/containers/Bundle/Application/21A83AF9-FACE-FACE-FACE-00605F990879/UITest-Runner.app/PlugIns/UITest.xctest'
2020-09-30 19:41:46.443 xcodebuild[37097:3022893] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2020-09-30 19:41:46.443 xcodebuild[37097:3022893] [MT] IDETestOperationsObserverDebug: 17.146 elapsed -- Testing started completed.
2020-09-30 19:41:46.443 xcodebuild[37097:3022893] [MT] IDETestOperationsObserverDebug: 17.146 sec, +17.146 sec -- end
2020-09-30 19:41:50.483 xcodebuild[37097:3022893] [MT] IDEResultKit: Warning: While writing a result bundle to /var/folders/yf/m_bm8rwx5rsfm37612r7nq4h0000gp/T/xdb/logs/2020.09.30.194127/DerivedData/Logs/Test/Test-Transient Testing-2020.09.30_19-41-29-+0530.xcresult, not all contents have been imported, as the Staging directory still contains the following files/directories: ["1_Test"]
Command line invocation:
libc++abi.dylib: terminating with uncaught exception of type NSException
Test session results, code coverage, and logs:
Testing failed:
Testing started
User defaults from command line:

How to place a file from visual studio solution explorer to "/data/user/0/com.companyname/files/"

$
0
0

I am developing an android application using Xamarin forms.
I have a file with extension ".gbl" which I need to use the file after installing the application.
How can I load this file in APK? After installation, application will use this file for some purposes.
Once the application is installed, it demands to find this file from /data/user/0/com.companyname/files/" folder. So I need to pack this file with APK and once the user installed it on his device, I would like to find the file from /data/user/0/com.companyname/files/" this path.

Viewing all 91519 articles
Browse latest View live


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