Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all 204402 articles
Browse latest View live

Launch screen not working


How can I record the screen of my device ?

$
0
0

I was testing MediaRecorder but after the start () method when seeing the generated video, the whole black screen is shown as if nothing was recorded. I use xamarin native for android

Crashlog

$
0
0

Hello Everyone!

I am getting a crash on iOS and am having trouble finding out the source of the crash. Since I am not that used to reading crashlogs I thought I would ask here :)

The crash occurs only on iOS and happens the second time that you put the app to sleep.

Can anyone make help me to make sense of the crashlog?

How to Create Master Detail Page in Xamarin Android.

$
0
0

Hi

i need to create master/detail page for the following scenario from xamarin android.

any idea really appreciate.

Is it possible re-open app?

$
0
0
Hello guys, I’m developing app now, so user press button and then user’s geolocation pass to the server every set time, so I did it in background through Matcha.BackgroundService library, but I have a problem - when user cross country border there is small offline time and my app stop working maybe cuz of no network connection or waiting for roaming, so how I can re-launch it in iOS and android, I think in android I should use to broadcast service but I don’t know. Maybe it’s not needed to relaunch only keep it in background when no network and when it reveal, continue to pass geolocation
Sorry for my English:)
Thanks all

Can't find my device on the devices list

$
0
0

I have connected my phone to computer and enable use debug mode, I can use "adb -devices" find my device, but in vistual studio, it's always blank in devices list. And I have check the xamarin diagnostic output, always show thses message again and again, start with "adb server started" then "connection refused", like a loop:

[W:]: Adb connection refused

Can someone give some advice about how to fix that, thanks!

View gets unresponsive on loading data from multiple API calls

$
0
0

We adopted Xamarin for our company but we are badly stuck. It's been one week we are trying different things to resolve the issue. Basically the issue is our view calls multiple Restful req to API to generate the user form. Every time we go to the view it takes 4 to 5 seconds.
We tried everything such as opening separate thread, async methods but all in vain.
I don't understand why there is not a method that can be called when the view is completely displayed so that we can send API requests.
Please, someone, suggest something?

Xamarin.Forms How to check if View that in Grid that in ScrollView is visible

$
0
0

I have the issue with Grid that is in ScrollView
Some View-s in Grid is out of screen, but when I try get IsVisible for each view inside of Grid it return true ...
But really this View is out of screen ... How to get from code that this View is not visible due to ScrollView ?


Updated to latest Xamarin Forms and now I am getting strange build errors

$
0
0

:XamlC error XFC0000: Cannot resolve type "Shell"
:XamlC error XFC0000: Cannot resolve type "ContentPage"

what the heck is going on????

Cannot archive project with Notification Service Extension

$
0
0

Further to this question https://forums.xamarin.com/discussion/comment/412962 still failing to archive my solution to get an IPA, getting a funny "ditto exited code 1", looking into logs shows

Could not find a part of the path "/Users/Username/Library/Caches/Xamarin/mtbs/builds/BlaBla.iOS/c53f41a2a149592e299c552833a05746/F:/BlaBla/Src/BlaBla.OneSignalNotificationServiceExtension/bin/iPhone/Release/OneSignalNotificationServiceExtension.appex/Info.plist".

Obviously this is a release version, compiled ok, but not archiving. What i don't get how come the archiver wants to access path "..5746/F:/Bl.." with a semicolon character what is not allowed. I indeed has a path on mac disk with "..5746/F//Bl.." without semicolon that was replaced by "/". Xamarin bug? Visual studio bug? Already cleaned caches, binobjs and stuff, restarted everything tons of times.. Thoughts?

Edit: Created another project from scratch from xamarin templates, gives same error.

I updated to 4.6 and now iOS does not apply styles, colors and fonts to labels.

$
0
0

After updating to 4.6 my labels don't work properly in iOS.

If I have a label with Style="{StaticResource Blue1_Font16_Book}" and Text="{helpers:StringResource lblTimeCardSummaryGuideHint}" the style is not applied. It also does not work if the text is hardcoded. (StringResource is a markup extension that returns the value for the key passed to it.)

However, if the label is changed as follows: Style="{StaticResource Blue1_Font16_Book}" Text="{Binding lblTimeCardSummaryGuideHint}" />" the style is applied.

Xamarin.Essentials Web Authenticator

$
0
0

Why i get exception "You must subclass the WebAuthenticatorCallbackActivity and create an IntentFilter for it which matches your callbackUrl." when set urn:ietf:wg:oauth:2.0:oob in DataScheme?

My redirectUrl = "urn:ietf:wg:oauth:2.0:oob://" and i try set just "urn:ietf:wg:oauth:2.0:oob" and again get this exception.

Govo Travel - Mobile Xamarin Forms Travel App (Android & iOS)

CarouselView does not show images

$
0
0

Hi
I have two Models and a ViewModels for articles and posts from DB . One of them like this

and i use BackgroundImage in CarouselView like this

And there is no problem with CarouselView and it shows images . But with another Model that likes this

and use like this

CarouselView does not show anythings . What's the problem ?

Mapped file has no Team ID and is not a platform binary ERROR IOS

$
0
0

Hello I am getting this error now please help xamarin after update have a lots of bugs

Launched application 'com.companyname.ooo' on '??? iPhone ?????????? ????ALOOOSH' with pid 643
dyld: Library not loaded: @rpath/FirebaseMessaging.framework/FirebaseMessaging
  Referenced from: /var/containers/Bundle/Application/Herer_was_long_Num/ooo.iOS.app/ooo.iOS
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/Herer_was_long_Num/ooo.iOS.app/Frameworks/FirebaseMessaging.framework/FirebaseMessaging: code signature in (/private/var/containers/Bundle/Application/Herer_was_long_Num/ooo.iOS.app/Frameworks/FirebaseMessaging.framework/FirebaseMessaging) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
Xamarin.Hosting: Process '643' exited.
Application 'com.companyname.ooo' terminated.

Can I use SQLite Database created in System.Data.SQLite with password in Xamarin.

$
0
0

Hi, I am new to mobile development, I used to develop Desktop in VS 2015, I installed VS 2019 recently, I want to do can use SQLite Database created in System.Data.SQLite with password in Xamarin Forms for mobile Development, and I want to use the existing SQLite Databases and how to attach them in Xamarin Forms Project.

Thanks.

CollectionView: SelectedItems not changing

$
0
0

my XAML:

<CollectionView ItemsSource="{Binding Items}" SelectedItems="{Binding ItemsSelected, Mode=TwoWay}"  SelectionMode="Multiple"
    ItemTemplate="{StaticResource ItemTemplateSelector}">
    <CollectionView.ItemsLayout>
        <GridItemsLayout Orientation="Vertical"
            Span="2" />
    </CollectionView.ItemsLayout>

</CollectionView>

my Code in my ViewModel

private ObservableCollection<Test> itemsSelected = new ObservableCollection<Test>();
public ObservableCollection<Test> ItemsSelected
{
    get
    {
        return itemsSelected;
    }
    set
    {
        if (itemsSelected != value)
        {
            itemsSelected = value;
        }
    }
}

I would expect that my ItemsSelected-Collection would contain all my Selected Items but it is always empty. When i fill it upfront with some Items, the behavior is as expected and the Items are preselected. I use the "TwoWay"-Binding but it only works "OneWay". I changed the ObservableCollection<> also to List<> but without any success.

What do I wrong ?

Visual Studio for Mac doesn't show simulators

$
0
0

cross posted from stack overflow: (can't post a link but here is the title: "Visual studio mac, xamarin, no simulators shown")

Just installed vs.net 2019 with Xamarin, and I got the error 'xcode 11.3.1 is currently selected...' with a button to install 11.5. Clicked that button, took me to a page to download xcode 12 beta, then I reluctantly upgraded to Catalina so I could install that. So once done, I switched Visual Studio preferences to point to that new XCode version. But I only have the option of selecting the generic build simulator. I updated deployment targets to 8.0 but it didn't help. When I launch xcode 12 beta, 'devices and simulators' shows a large list of them available. What else should I do?

how make app resposive design ios

$
0
0

I have an issue in header and footer in ios app
how to make design support different device iPhones like iPhone 11 or iPhone 5 or tablet
best regards

Custom List from other list

$
0
0

Hi friends, how are things going there?

I'm new in XF and I'm facing a issue that I'm not able to solve alone.

I need to create a custom List from other to use in picker.itemsource. When I use the original List it brings all columns (Name, Address, Phone etc.) from that list, but I need just the Names, do you know?

I want to use this value as parameters to a complex search screen (see attached image). I'm using just an entry field but I want to avoid the user commit some mistake while using the search, does it make sense?

Any help will be appreciated.

Thanks and best regards.

Viewing all 204402 articles
Browse latest View live


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