Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Rakesh R Nair
    @rkshnair
    Screenshot 2020-07-29 at 21.03.41.png
    how i can use grep in Visual Studio for MAC. I am sorry I never tried this
    Jonathan Pryor
    @jonpryor
    i think you can grep -r Xamarin.Android.Support.CustomTabs .
    open thee Terminal.app, learn thee they Unix commands, and, uh… yeah.
    *thy
    Rakesh R Nair
    @rkshnair
    okay let me try
    Thanks
    Jonathan Peppers
    @jonathanpeppers
    @rkshnair I would try just installing a newer version of this package:
    https://www.nuget.org/packages/Xamarin.Android.Support.CustomTabs/28.0.0.3
    If a @(PackageReference) like this not listed in your project, this should force it to use a newer one
    If there is a problem, NuGet will probably tell you which library it was -- or it will "just work" because you have a newer one
    IceTheProm
    @IceTheProm
    heyy
    Jonathan Pryor
    @jonpryor
    IceTheProm: hello!
    Please note that this channel is migrating to Discord: https://aka.ms/dotnet-discord on the <#C03CEGRUW|android> channel
    Jonathan Peppers
    @jonathanpeppers
    Are there any other links to gitter like the one on the README?
    https://github.com/xamarin/xamarin-android/blob/master/README.md#feedback
    Jonathan Peppers
    @jonathanpeppers
    I sent this in for now: xamarin/xamarin-android#4974
    Jonathan Pryor
    @jonpryor
    @grendello: call is over. have a good week!
    Marek Habersack
    @grendello
    @jonpryor thanks, you too!
    zubair1995
    @zubair1995
    hello friend
    how can i call the activity function from the class
    CreateAccountActivity.MyMethod(); Its not working
    anyone help me
    IoTFier
    @IoTFier
    @jonathanpeppers , @jonpryor - are we still going to continue on Gitter or on Discord ?
    I posted one error there. Your help will be appreciated. Thanks.
    Jonathan Pryor
    @jonpryor
    @IoTFier: Please migrate to Discord.
    IoTFier
    @IoTFier

    @IoTFier: Please migrate to Discord.

    :) @jonpryor - I am already on Discord. That's what I stated earlier. Thank you for your help.

    lats1973
    @lats1973
    hi everybody
    good mournigs
    i have a trouble
    cant use a demo made in xamarine for android
    i personally never used xamarne but that trying
    its about rfid
    anybody know about rfid in xamarine?
    Jose
    @pepone
    is .NET 5 for Xamarin available with Visual Studio 2019 preview?
    Timothy
    @timothyparez
    great.... another group moved to discord :(
    huyphanvan
    @huyphanvan
    hi bros
    could I develop an app based on Xamarin that can run on android, ios and chromeOS as cross-platform terms?
    used Xamarin for android is OK, but ChromeOS and iOS unexperienced with Xamarin
    jrockhub
    @jrockhub
    Hi Everyone.
    public async Task UploadImageAsync(Stream image, string fileName)
    {
    string url = "http://localhost/api/ImagesUpload";
    HttpContent fileStreamContent = new StreamContent(image);
    fileStreamContent.Headers.ContentDisposition = new System.Net.Http.Headers.ContentDispositionHeaderValue("form-data") { Name = "file", FileName = fileName };
    fileStreamContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream");
    using (var client = new HttpClient())
    using (var formData = new MultipartFormDataContent())
    {
    formData.Add(fileStreamContent);
    var response = await client.PostAsync(url, formData);
    var HtmlResult = await response.Content.ReadAsStringAsync();
    var result = JsonConvert.DeserializeObject<string>(HtmlResult);
    }
    }
    API is working fine but when upload from xamarin app then its not uploaded.
    From postman its working fine.
    Anyone help me out.
    image.png
    Denis
    @redradist
    Hi all
    I got by some reason on Android Mobile Phone PairingVariantConsent that is available only for Android.Things library
    Does anybody faced with the same issue ?
    Ahmed Aderopo Alejo
    @ahmedalejo

    public async Task UploadImageAsync(Stream image, string fileName)
    {
    string url = "http://localhost/api/ImagesUpload";
    HttpContent fileStreamContent = new StreamContent(image);
    fileStreamContent.Headers.ContentDisposition = new System.Net.Http.Headers.ContentDispositionHeaderValue("form-data") { Name = "file", FileName = fileName };
    fileStreamContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream");
    using (var client = new HttpClient())
    using (var formData = new MultipartFormDataContent())
    {
    formData.Add(fileStreamContent);
    var response = await client.PostAsync(url, formData);
    var HtmlResult = await response.Content.ReadAsStringAsync();
    var result = JsonConvert.DeserializeObject<string>(HtmlResult);
    }
    }

    Hope you got over that issue.

    It would have been informative to include any exceptions to clarify what then its not uploaded implies.

    Make sure the stream image is not closed and image.Position == 0.
    If the stream was written to, it´s most likely that the position is pointing to the end. When you attempt to upload it would already be at the end of the stream.

    NOTE: you might have gotten answers on StackOverflow as well

    Ahmed Aderopo Alejo
    @ahmedalejo

    @redradist

    Does anybody faced with the same issue?

    Don´t quite get the question. But, it might help to know that Google I sunsetting Android Things
    https://developer.android.com/things/faq

    Khabubu Phathutshedzo
    @khabubu
    Good day everyone I am unable to find the new project item to create a Xamarin.Android Wear project in Visual Studio 2019. Is this deliberate and if so how do I create one if such a project item does not exist?
    pm64
    @pm64
    Same question here, but for JAVA APK Binding project. What happened to our project templates?
    Khabubu Phathutshedzo
    @khabubu
    Same question here, but for JAVA APK Binding project. What happened to our project templates?
    I will continue to see if there are any possible work arounds.
    pm64
    @pm64

    I'm new to native Android development in Xamarin. I have added a layout file "SamplePresentation.axml" to my project's Resources\layout folder. Inside a class in one of my project's .cs files, I then expect to be able to do this:

     private SamplePresentation _samplePresenation;

    But this results in a compiler error ("The type or namespace name 'SamplePresentation' could not be found")

    Is there something else I need to do to be able to work with my layout from C#?

    Logesh Palani
    @logeshpalani98
    @pm64 you can't access the files like that, just too can set the layout like SetContentView(Resource.Layout.SamplePresentation); then the activity will set the to as your created view