Quantcast
Channel: General — Xamarin Community Forums
Viewing all 5066 articles
Browse latest View live

White noise generation

$
0
0

Hi,
Done a lot of searching for a simple starter for generating white noise, without using a sound file, but found nothing that works, or rather nothing _I _can adapt to work. Anybody out there can spend a few secs pointing me in the right direction please? I'd really appreciate it...


How do I see the questions I asked?

$
0
0

How do I see the questions I asked?

Android emulator starting problems

$
0
0

I have issues with android emulator. I have to factory reset ever time after i close it . Otherwise it is not starting at all. when i start debuging or when press to start on android device manager , window opens but device waiting with black screen only. Hyper-V is active. Also emulator freezing after i close and start it again. Its opening (with cold boot) but completly frozen status.
This is the error i take for debugging without factory reset :

1-)

Severity Code Description Project File Line Suppression State
Error ADB0010: Unexpected install output: cmd: Can't find service: package

at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in E:\A_work\275\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:line 345
at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.b__0(Task1 t) in E:\A\_work\275\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 753 at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute() 0

2-)

Severity Code Description Project File Line Suppression State
Error ADB0000: Deployment failed
Mono.AndroidTools.InstallFailedException: Unexpected install output: cmd: Can't find service: package

at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in E:\A_work\275\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:line 345
at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.b__0(Task1 t) in E:\A\_work\275\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 753 at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute() 0

NameResolutionFailure error fom Android project

$
0
0

I began getting this error a few days ago, and I don't know why.

Here's what I know:

  1. the problem is coming from code that accesses the internet (please note again, that this was working fine until a few days ago)
  2. I have a Windows Forms project in my Visual Studio solution that uses the exact same code (via another project that is used by both the Windows Forms project and the Android project. This project works fine, it accesses the Internet.
  3. The code calls a REST service. The URL for the service is http://andrewwerber.net/folderfilenames/GetRodneyPictureDirectoriesWithMetaData?folder=x. The service is working.
  4. My Android project was working fine a few days ago. When it was working, I did not have INTERNET checked in the manifest. I tried checking that, and it does not help.
  5. The app works fine when I build it and deploy to my phone.
  6. I've done some Google searching on this problem, and have not found a solution.

Any help would be appreciated.

NetSuite Web services hang / timeout from .NET 64 bit App

$
0
0

Hi all,

We have noticed that with the 2012 NetSuite Web services (and perhaps all other versions), when we make a call from a .NET 2.0 64-bit application, if the response does not come back quickly, then intermittently our application will hang however in the Oracle NetSuite Course application logs it appears the SOAP call was successful. The hang eventually times out (timeout) after 5 minutes (!) because NetSuite (or something) keeps the socket open, it just stops sending packets.

We ran a Network Trace and noticed packets coming out of order, being dropped, inexplicable duplicate acks - etc. Essentially, it "freaks out". Microsoft techs have never seen anything like it - least the ones I talked too.

We ran a simple test app that does nothing more than a passport in, then do a query for Accounting Periods. It's the search method that hangs as it's parsing the SOAP response - always gets about 10s in.

As soon as we target a 32-bit environment, everything works like a charm, even though the 32-bit binary is running on a 64 bit OS. Clearly, running as a 64-bit app sets some network protocol configuration that NetSuite really doesn't like.

We tested on Azure, Amazon and on a local (to our corporate network) Windows 2008 R2 SP1 64 bit servers - physical and VM's.

We don't have hard evidence of the "why" this is happening, but after a month of pulling our hair out (we're all bald now) we think we've stumbled upon an issue. This one is so weird, however, I'm not willing to go out and claim that it's still not something we're doing. So, if you don't believe:

Open Visual Studio 2010 and create a .NET 2.0 console application targeting "Any CPU".
Do an "Add Web Reference..." and add the NetSuite WSDL.
Create a simple passport login and do a search that returns something with some volume.
Run the EXE on a 64-bit OS, several times (this bug is intermittent), during peak working hours (i.e. appears around 7 am - 2 pm PST).

That's exactly what we did. If you go back and create a new x86 target and rebuild the project, it works fine.

Thanks and Regards

Android Xamarin.Forms freelance (or not) coder in Paris

$
0
0

Hello,

Is there any Xamarin.Forms freelance coder nearby Paris?
We could organize a meet up and share feedback about using VS and Xamarin.Forms for Android.
If any company coder is interested too, why not.

Je recherche des codeurs indé sur Xamarin.forms pour Android sur Paris.
Xamarin est une technologie assez récente. Je pense que nous gagnerions à échanger sur le sujet en comparant nos projets. Evidemment, je serais heureux de rencontrer des pro.

Il n'y a pas eu de meetup depuis 2017 sur https://www.meetup.com/fr-FR/xamarinfr/events/past/ ...

Add google name to a list in Xamarin forms

$
0
0

Hey, I’m making an app for school. I have figured out how to make a login screen with google sign in, but now I’m wondering how to use google sign-in information to display everyone that is logged into my app in a list.

UrhoSharp in xamarin forms

$
0
0

Basic CAD operations(Rotate,Zoom) for 3d Objects
using UrhoSharp


Xamarin VS Windows waiting screen for apple id

$
0
0

I try to login apple id but screen of Apple Developer Account alway waiting...

I con login yesterday but today login expired. try to remove then singin again but can't

I look like waiting for signin long long time...

How do I use a carouselview to display pictures where I have a list of URLs for the pictures?

$
0
0

I have a REST service on my web site that can supply a List of file names of pictures and I set up the URL. Currently, I do this to display the pictures:

        List<string> picFiles = calls.GetPictureFilesFromDirectory(actualDirectoryName);

        foreach (string fileName in picFiles)
        {
            string picFileWebAddress = calls.Domain + "Rodney/" + actualDirectoryName + "/" + fileName;
            var imgControl = new Image();
            imgControl.Source = picFileWebAddress;

            sl.Children.Add(imgControl); // sl is a StackLayout in a ScrollView
        }

How can I display the pictures in a CarouselView?

Thanks for any help

total value i want to in point plz help me i have tired

$
0
0

This Is My Code--
playerDetailsInfo.BattingAverage = playerDetailsInfo.TotalRun / playerDetailsInfo.TotalMatches;

i got total Run 26 and Total Matches 3 , ans will be 8.66 , but ans got 8
Batting Average i double data type and TotalRun and TotalMatches is int type

plzzzz help me any suggetion

Why is my app not found in the Play Store when I search for it

How to show badges count of toolbarItem icon in xamarin.forms

$
0
0

Hi developers

I need to show badge count of toolbarItem like cart icon,

i found a solution but it doesn't work with TabbedPage correctly.

When i switch other tab the badge counter is disappears so after using
this.CurrentPageChanged += (sender, e) =>{ //set badge counter DependencyService.Get<IToolbarItemBadgeService>().SetBadge(this,ToolbarItems.First(), "1", Color.Yellow, Color.Black); };
after implementing this code on IOS the app crashed in BarButtonItemExtensions.cs class.

if there someone have other solution or can fix this please help me and thanks for all

Moved: Why is my app not found in the Play Store when I search for it

Xamarin Form con Excel

$
0
0

Buenas perdon soy nuevo utilizando Xamarin, quisiera saber si hay alguna libreria en especial para poder leer un archivo Excel y seleccionar sus celdas.


Adding pinch gesture to several images and filling space in grid (2 questions in one)

$
0
0

First question: I found some code at https://docs.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/workingwithgestures-pinchgesture/ which adds a pinch gesture to one image. I modified the code a bit so that everything happens in the C# code. Now I'm trying to add the pinch gesture to several image controls. Here is the XAML for the content:

<ContentPage.Content>
    <Grid VerticalOptions="CenterAndExpand">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1.0*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Label x:Name="directoryNameDisplay" Text="Pictures from directory"
            VerticalOptions="CenterAndExpand" 
            HorizontalOptions="CenterAndExpand" />

        <ScrollView Grid.Row="1" Orientation="Horizontal">
            <StackLayout  x:Name="sl" Orientation="Horizontal">

            </StackLayout>

        </ScrollView>
    </Grid>
</ContentPage.Content>

The key part of the code creating the pinch gesture containers and adding the images is:

        foreach (string fileName in picFiles)
        {
            string picFileWebAddress = calls.Domain + "PictureFolder/" + actualDirectoryName + "/" + fileName;
            Image imgControl = new Image();
            imgControl.Source = picFileWebAddress;

            PinchToZoomContainer cont = new PinchToZoomContainer();

            cont.Content = imgControl;
            sl.Children.Add(cont);
        }

This code is just like what I used in the sample code that I downloaded. I added an issue about this to the GitHub project with this code, but no answer yet.

If anybody here has an idea to make the pinch gesture work, or can tell me that there's no way to get it work like I want, I would appreciate your help.

Second question: In the XAML above, I want the images in the Stack Layout to fill as much vertical space as possible below the label. I've tried a lot of different things, but no luck. Any help would be appreciated.

Thank you.

Saving the selected item in the collectionview to the sqlite

$
0
0

How can i remove the selected item in the collectionview then save to the sqlite?

Problem getting resources in Release.

$
0
0

I encountered an unknown problem while getting fonts from resources. In debug mode, the code works without problems, and in release mode, the code does not work. I tried to get an array of bytes from a MemoryStream using the ToArray method and assign it to a variable. Going through the debugging step by step, I found that by a quick check of the ToArray method I can see the array, but I can not see what lies in the variable. I would like to understand why and how to deal with it.

From xamarin forms to xamarin android in the same application

$
0
0

Hi,

Is it possible to use xamarin forms for some screens and xamarin android for others screens ? I have search on many sites and i don't find a sample or how do that. How configure the navigation between them?

Thanks

How do i connect from Xamarin.Forms Cross platform to SqlServer

$
0
0

How do i connect from Xamarin.Forms Cross Platform to SQL Server, It just hangs and does not even show the DisplayAlert()

My code looks something like this

[code]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;

namespace SqlConExample
{
// Learn more about making custom code visible in the Xamarin.Forms previewer
[DesignTimeVisible(false)]
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}

    private async void connectBtn_Clicked(object sender, EventArgs e)
    {
        string constring = @"Data Source=.\SQLExpress;Initial Catalog=people_Database;Integrated Security=True";
        using (SqlConnection con = new SqlConnection(constring)) 
        {
            try
            {
                con.Open();
                await DisplayAlert("OK", "OK i am Connected", "OK");
            }
            catch (Exception ex)
            {
               await DisplayAlert("Error", ex.ToString(), "OK");
            }
        }
    }
}

}

[/code]

Why does it hang?

Viewing all 5066 articles
Browse latest View live