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

Xamarin SQL Lite issue

$
0
0

Hi

I'm new to Xamarin forms and as a start I have been trying to replicate the todo lost same project. I seem to be getting an error when I get to the 'database.CreateTableAsync().Wait();'

System.AggregateException: One or more errors occurred. ---> System.NotSupportedException: Don't know about Xamarin.Forms.View
at SQLite.Orm.SqlType (SQLite.TableMapping+Column p, System.Boolean storeDateTimeAsTicks) [0x0019c] in :0
at SQLite.Orm.SqlDecl (SQLite.TableMapping+Column p, System.Boolean storeDateTimeAsTicks) [0x00016] in :0
at SQLite.SQLiteConnection.b__55_0 (SQLite.TableMapping+Column p) [0x00007] in :0
at System.Linq.Enumerable+SelectArrayIterator2[TSource,TResult].ToArray () [0x00012] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.14/src/Xamarin.iOS/external/corefx/src/System.Linq/src/System/Linq/Select.cs:240 at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.14.0.14/src/

The code is almost identical to the todo list sample with the following code in the App.xaml.cs file
static ToDoItemDatabase database;

public static ToDoItemDatabase Database
{
get
{
if (database == null)
{
database = new ToDoItemDatabase(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "ToDoSQLite.db3"));
}
return database;
}
}

I also have a ToDoItemDatabase file with the following code

readonly SQLiteAsyncConnection database;

    public ToDoItemDatabase(string dbPath)
    {
        database = new SQLiteAsyncConnection(dbPath); Debug.WriteLine("database Initialised!");
        database.CreateTableAsync<ToDoSQL>().Wait();
        Debug.WriteLine("Table created!");
    }

I've tried wiping the iOS simulator and cleaning my build but I am no closer to a resolution.
Any help would be beneficial. I also have the sqlite-net-pcl package installed in my cross platform and iOS projects

Abu


No redemption code for Xamarin Univ, no response from support

$
0
0

Hi,
Sorry about submitting this question in this forum but tool would not allow me pick univ forum.

Two days ago I subscribed to Xamarin U. I received three emails. One order confirmation, the others about azure. Order confirmation email said I would receive a separate email with Univ redemption code. I've send emails to the training email account with no response.

Any Ideas? Maybe xamarin u is dead?

Thanx

John A

[Xamarin][Android] I can no longer deploy any application on any Android device

$
0
0

Hello xamarin community,

I have a serious problem that took my day and patience !

I cannot deploy any application (even a hello world app) from Visual Studio 2015 on any device, i get always th error "ValueFactory returned null" (see attached file).
The solution builds without any error, but on deploy it fail :'(

I tried to update the registry, like on this decision (link), but it doesn't work

Please help me !

VS 2017 Xamarin app compilation hangs after debugging on device

$
0
0

Every time I debug my Xamarin forms app on my Android phone, press "Stop Debugging" (red button on the toolbar) and then try to build the app again the compiler just hangs. There is nothing displayed in the Output window of VS. I have to cancel the build and press build a second time.

Any suggestions?

StackTrace when debugging shows Unknown identifier: Instance

$
0
0

When I try to look at the stack trace in Visual Studio while debugging, I cannot see the full thing. It shows trimmed version in the window, and when I click on the item in Locals window, it changes the text to "Unknown identifier: Instance". When I add it to watch, it does the same thing. This happens for me in both iOS and Android debugging. The full stack trace shows up in Insights, so what am I doing wrong?

check if native SDK allows to read the latest version published in both stores

$
0
0

hi,

please any information about how checking if native SDK allows to read the latest version published in both stores (play and appstore)

Visual Studio 2017 Catastrophic failure error

$
0
0

I recently updated VS 2017 to v15.8.4 and in the beginning everything seemed to work fine (except that 50% of the times the debugger gets stuck when i launch my app, but if it kill it and relaunch it, it works).

Now, out of the blue, whenever i try to open a XAML file, i get a "catastrophic failure" error message:

It works only if i right click the file in the solution explorer and choose "Open with..."

Any ideas? It's annoying to do that every time i need to open a xaml file.

Mac Mini late 2012 for Xamarin development

$
0
0

Hello,

Need a bit of guidance here.
I've been thinking about buying a custom Mac Mini with ssd and i7 (the custom ones, from 2012)

Apparently they're going to work with Mojave.
http://osxdaily.com/2018/06/05/macos-mojave-compatible-macs-list/

From your experience, were there any issues with these kind of modded mac mini's ? Should I better head to a 2014+ model ?

Thanks,


Tk custom maps longPress stange error

$
0
0

Hi, I am using Tk custom maps and am experiencing a strange error. When in debug, I can press on the map and get correct co-ordinates. but when running as a release version, when I press on the map, the returned coordinates have the latitude as its longitude and its latitude as ~0.
An example of this is in debug I get lat: -27.58648 long: 152.9886
But the release version will get lat: -7.123891269E-044 long: -27.58648
Does anyone have a clue what is going on?
Thanks for the help.

ListView population using a list of strings

$
0
0

I've got some code which is creating a list of .zip file names that are being found an FTP area, which is below.

                lstFiles = new List<string>();

                string remoteFTPPath = ftpLocation + "/";
                var request = (FtpWebRequest)WebRequest.Create(remoteFTPPath);

                request.Credentials = new NetworkCredential(ftpUsername, ftpPassword);
                request.KeepAlive = false;
                request.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
                request.UseBinary = true;

                using (var ftpResponse = (FtpWebResponse)request.GetResponse())
                using (var responseStream = ftpResponse.GetResponseStream())
                using (var reader = new StreamReader(responseStream))
                {
                    while (!reader.EndOfStream)
                    {
                        var line = reader.ReadLine();
                        if (line.EndsWith(".zip"))
                        {
                            lstFiles.Add(line);
                        }
                    }                   
                }

What I need to do next is use the list to populate the items in a ListView control on the page.

    ListView filesView;
    filesView = new ListView { BackgroundColor = Color.White };
    filesView.ItemsSource = new string[]
    {

    };

How can I get the items in the list of strings to be the items in the ListView? All of the examples I've seen online seem to use binding or hardcode the strings, rather than retrieve the items from a list.

Is Possible to have Xamarin app as Rest API ?

$
0
0

I need to create a Xamarin app that will process some information coming from a third party backend, then the Xamarin app should return needed info in JSON format as a Rest API Service does. Is this possible, my Xamarin app act as a bridge?

Is there any update on if/when UITest will support testing UWP apps built using Xamarin.Forms?

$
0
0

Is there any update on if/when Xamarin.UITest will support testing of UWP apps built using Xamarin.Forms?

With the Microsoft purchase of Xamarin, surely the Coded UI team and UITest team must be working on common tooling? I still rule out using UITest if I have to develop one set of automated tests for UWP and another set for Android/iOS.

Socket sample showing error in New project

App Center with Xamarin: How to Insert App Secret to Code

$
0
0

Visual Studio App Center is a new tool released by Microsoft a few months ago. A tool that can help mobile app developers greatly for its features such as Crashes and Analytics. Setting it up is pretty straightforward but the code sample shown in the app dashboard is writing the app secret directly into the MainActivity.cs file(in android apps) but it is said that it's recommended to inject the secret maybe at build especially if working with an open source app. Any tips or guides to help me achieve this?

Deleting data from webservice xamarin

$
0
0

I have been trying to delete a data using "DeleteAsync" and unfortunately it doesn't show any error neither anything, when i hit delete buttom nothing happens.
and don't no where i miss!

and this the code.
private async void Button_Clicked(object sender, EventArgs e) { var uri = new Uri(string.Format(weburl, txtID.Text)); HttpClient client = new HttpClient(); var result = await client.DeleteAsync(uri); if (result.IsSuccessStatusCode) { await DisplayAlert("Successfully", "you data have been Deleted", "OK"); } }


Is there any way to implement the combobox available in WPF .

$
0
0

I need an entry dynamically binded with the picker , depends on what i type the results of the picker should change . I have the code , I just need a control in which i can implement this

Configuration Scheme not able to pick up correct AndroidManifest.xml file

$
0
0

I have created configuration for my Xamarin Forms project naming them Debug, Release, Production and created different info.plist and AndroidManifest.xml file for each configuration. Now in my .csproj file of iOS and Android, i have assigned these files based on configuration. Now in iOS everything is working fine. But in Android when i Archive using the Visual Studio "Archive For Publishing" it is always taking the same AndroidManifest.xml in-spite of different configuration selected.

Am i missing anything?

What is the best way to list scan and list available Bluetooth LE devices?

$
0
0

I am new to Xamarin but have been using c# for some time. I started attempting to create a list of all nearby Bluetooth devices but am not sure if there are plugins required or if there is a simple way to do this. All I need to receive is the Bluetooth identity.

Thanks in advance

Xamarin.UITest - Open controle panel

$
0
0

Hi,

Is it possible to open the control panel on Android with Xamarin.UItest ?

Anthony

Unable to open Specflow feature file in VS2017 7.6 (for MAC)

$
0
0

Hi, I just downloaded the latest version of VS for MAC (7.6).
I have a UITest project and use SpecFlow features to design these test.
Since the new update, I can no longer open these .feature files. A blank file is displayed. And a blank error message is displayed.
My project still builds and runs.
I use specflow 1.9.1 / xamarin uitest 2.2.4.dev?? / and nunit 2.6.4.
Any ideas what the problem could be? OR how I can find out exactly where the problem comes from?

Viewing all 5066 articles
Browse latest View live