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

Network Adapter Interference (VS Emulator)

$
0
0

Since installing Visual Studio Emulator (Windows) I notice that two extra (logical) network adapters are shown in my network settings window.

On seems to be in series with the hardware one as an "input" and the other appears to be an output.

Every now and again, a couple of times a day, the adapters disconnect leaving me without any internet or VPN access. The only resort is a reboot - which is very disruptive.

  • Has anyone else seen this?

  • Is there a work around ?

Thanks


ListView delete item and refresh, similar to notifyDataSetChanged() in Android?

$
0
0

Hi,

How to refresh ListView after removing some items from it? I am having below code.

              _noteViewModelList.RemoveAt(id);
                _listView.ItemsSource = _noteViewModelList;

In above code, i am removing item from List and assigning it to ListView's ItemsSource, but how to update the ListView, to reflect its change in UI?

For anyone that has used Duolingo or built an app like it...

$
0
0

Hey guys I'm sort of new to programming but I was wondering if someone could give me a helping hand when it comes to creating an educational app like Duolingo, Rosetta Stone, busuu, etc (Not necessarily going to be teaching language, I just like the format of these apps). Questions are:
-How could I create the app in a way that different content contributors could edit their stuff into the app without being in the same room. I was thinking of creating an online database and linking it to the app so they could just login and make changes to content from there.

-Are pages created for every instance of an activity(such as word matching games, pictures and words, voice pronunciation and words) in the app or is one page created and then set to generate random values from an array.

Any good answers and advice to point me in the right direction would be much appreciated.

Load images from disk in a listView

$
0
0

Hi, I have a collection of items with a property called path where I save the path of an image, for example:

path = /Users/luis/Library/Developer/CoreSimulator/Devices/66E5440A-FAE2-4C8E-806A-04BABC18B09D/data/Containers/Data/Application/ADE7D808-E1DE-4C0D-ADC8-D7246D4334AF/Documents/test.jpg

so I want to load this items in a listview and show the images, I'm using this:

<--ViewCell.View>
<-- StackLayout Orientation="Horizontal">
<--Label Text="{Binding name}" />
<--Label Text="{Binding path}" />
<--Image Source="{Binding path}">
<--/Image>
<--/StackLayout>
<--/ViewCell.View>

I can see the other properties but no the image, what I'm doing wrong?

Error:java.lang.UnsupportedClassVersionError:com/android/dx/command/Main : CreateDatabaseWithAdoNet

$
0
0

I downloaded xamarin CreateDatabaseWithAdoNet code and also CreateDatabaseWithSqlite.
I got Error java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0 CreateDatabaseWithAdoNet

No one downloaded code work. Please help.

Error while distributing to Google Play

$
0
0

Hello,

I have a strange error while distributing my archived project to Google Play.
It says: "Signing packages failed. Could not read as a zip file".

Any ideas how to solve it?

Thanks in advance.

Why does the value of an NSIndexPath change

$
0
0

I have seen this problem multiple times so I created a simple app to demonstrate. Here it is:
using System;
using Foundation;
using UIKit;

namespace nsindexpathbug.iOS
{
public partial class ViewController : UIViewController
{
public ViewController(IntPtr handle) : base(handle)
{
}

    public override void ViewWillAppear(bool animated)
    {
        base.ViewWillAppear(animated);

        var indexPath1 = NSIndexPath.FromRowSection(1, 1);
        var indexPath = NSIndexPath.FromRowSection(1, 1);

        BeforeLabel.Text = $"section = {indexPath.Section} row = {indexPath.Row}";
        indexPath1.Dispose();
        AfterLabel.Text = $"section = {indexPath.Section} row = {indexPath.Row}";
    }

    public override void DidReceiveMemoryWarning()
    {
        base.DidReceiveMemoryWarning();
        // Release any cached data, images, etc that aren't in use.
    }
}

}

and here is the results:

Why the Mac OS X system proxy settings are not used by HttpClientHandler()

$
0
0

The default constructor of System.Net.Http.HttpClientHandler doesn't use the system default proxy settings and therefore all the requests fail.
What is the appropriate way to read the defaults and set them to System.Net.Http.HttpClientHandler ?

This is a Cocoa App running from Xamarin Studio


Feb 14: Sydney Mobile .Net (Xamarin) Developers Group

$
0
0

Date: 14th of Feb (yes - Valentine's day! Sorry.)
Venue: Readify Offices, 1 Castlereagh Street, Sydney CBD

This month we have another quality presentation from Matthew Robbins, newly awarded Xamarin MVP and author of the popular MFractor plugin for Xamarin Studio.

(Shout out to Geoff Huntley as well who organises the venue for us - another newly awarded Xamarin MVP!)

BottomNavigationBar Cannot set background colour AND show Text

$
0
0

Probably more general that Xamarin, but I thought I would start here.

The source of this component is :
https://github.com/pocheshire/BottomNavigationBar

I have a bottom navigation bar with 4 tabs on.
I want to set the background colour to be the same regardless of selected tab
I want to show icon + text for all tab buttons regardless of whether they are selected or not.

The background colour defaults to White. The only way I can find to change it is to call SetActiveTabColor() for each Tab. This works but seems like overkill I should only need to set it in one place.

However I cannot show the text for all icons unless I call UseFixedMode();

However once UseFixedMode() is called, SetActiveTabColor no longer works and the I cannot then set the background colour - it defaults to white.

I have also tried SetBackgroundColor(), to no effect

What am I missing ?

Right aligned image in ListView

$
0
0

Hi,

I have just started learning Xamarin and I am having difficulties in accomplishing right aligned image in list view. What do I want to achieve?

I want to have an item in list view that has larger text(name), smaller text(description) that wraps and goes to next line and possibly an image. I say possibly because only one item can have image(activeitem). If the image is present on the right it should 'push' name and description to the left. If image isn't visible than name and description should take all the space.

Without image:

With image:

Thanks

Property Icon in MenuItem not work on iOS

$
0
0

Hi!
I need set Icon in ContextActions ViewCell, but it not work...
A lot of debate on this issue - a simple solution and no ...
You create some improvement, and the simple things that need to be can not bring to mind ... (Xamarin appeal to developers).

Prompt me please how to implement it or the how can you can use SWTableViewCell (if only iOS). I would be grateful for any help !!

Thank you, the only hope for you ....

Xamarin Studio on Mac vs Visual Studio for Mac

$
0
0

Now, that Microsoft is releasing Visual Studio for Mac, is there a reason to continue using Xamarin Studio on Mac?

Java.IO.IOException: Prepare failed.: status=0x1 can't fix it

$
0
0

Helloo
when i click on a button to play a media file
it gives me "Java.IO.IOException: Prepare failed.: status=0x1"
and it was working before but not it doesn't work
how to fix it ?
thanks in advance ^^

my code
`MediaPlayer media;

        media = new MediaPlayer();


        btnPlaySound.Click += delegate
        {
            pos = Watch_Listen.viewPager.CurrentItem;
            media.Reset();
            media.SetDataSource(SuraNames.SuraLinks[pos+1]);
            media.Prepare();
            media.Start();
            t.Start();
        };`

GCM Push notifications no longer working since updating Google SDK libraries and Xamarin/Google pkgs

$
0
0

Since doing an update of Google and Xamarin libraries and packages, push notifications no longer work via GCM.

We are running into the same issue that is identified here:

https://bugzilla.xamarin.com/show_bug.cgi?id=46273

var instanceId = InstanceID.GetInstance(Application.Context);

throws the exception:

Exception: "The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)
The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)"

Has anybody else run into this and fixed this issue or come across a workaround? This is a critical issue for us, as our current production release is broken, since this issue was not detected until after the release.

thanks,
Dennis


How to update Xamarin?

$
0
0

I am experiencing the problem described by a closed thread.
The icon shows updates are available, but clicking it does not do anything.

Is it possible to create a fully-programmatic custom UITableViewCell without having to use .xib?

$
0
0

Programming natively with Swift, I can create a custom table view cell by inheriting UITableViewCell and overriding methods such as init() - But I'm in a world of pain trying to replicate this in Xamarin.

I don't want to have to rely on a xib to create the cell, I'd much rather be able to subclass it in the same way that I can subclass a UIView and override the draw() etc.

Can anyone point me in the direction of examples? Or does almost everyone subscribe to the WYSIWYG way of doing things?

Profiler stops recording after +-8 seconds (windows)

$
0
0

Running 1.1.7.4, the profiler seems to stop working after a certain amount of time.
Did try to run several solutions, and facing the same issue (did try to run a couple of times)

Consumir Web Service (Rest API)

$
0
0

Hola a todos, me podrian apoyar explicando como consumir un Rest Service hecho en php?. Claro consumirlo con XAMARIN.

Bottom Tabs for Xamarin.Android (in Xamarin.forms app)

$
0
0

I'm making app with using Xamarin.forms.

You all know regular tabs for Android from Xamarin.forms' TabbedPage is at top. Because it should be there if it's Native Android app that respect Android UX.

But things are changed now. Even Google announced new bottom tab bar called "bottom Navigation".
https://github.com/roughike/BottomBar
And many major apps are using bottom tab bar.

But I can't use new Bottom Navigation. Because my app is base on Xamarin.forms and uses TabbedPage from forms. It's going to be more complicated if I try to use bottom Navigation.

(I'm making iOS app from forms too)

So Best approach would be moving native Tabs to bottom.

So I found this. (maybe old)
http://envyandroid.com/align-tabhost-at-bottom/

But don't know how to use in Xamarin.Android. Could you help me?

Viewing all 204402 articles
Browse latest View live


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