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

Beta Channel: Cycle 9 Feature Release

$
0
0

Please see https://releases.xamarin.com/release-candidate-cycle-9-rc6-refresh/ for the details about this release, including the steps to update or downgrade as needed.

This version contains a number of known issues that are under investigation. Additional bug reports are welcome!

Bug reports wanted!

  • Please file a quick bug report using the "Cycle 9 Preview" new bug form if you see any suspicious behavior in these versions that you wish to report.

    • If you get any errors when using the form to submit, please select the All Products option and choose the desired product.
  • Comment in this forum thread if your question is not related to a suspicious behavior after download, but instead one of the following:

    • You notice an error in the Release Blog post.
    • You have trouble downloading one of the installer packages.

EDIT Jan 18: Update link to Release Blog post for new versions.
EDIT Jan 24: Update link to Release Blog post for new versions.
EDIT Jan 31: Update link to Release Blog post for new versions.
EDIT Feb 07: Update link to Release Blog post for new versions.
EDIT Feb 14: Update link to Release Blog post for new versions, and change "after installation" to "after download".


How to retrieve raw pixel data from an SKImage

$
0
0

Hey everyone,

I would like to know if this is possible to retrieve the raw pixel data of an SKSurface.
I managed to get a snapshot of the surface using surface.Snapshot() method, but was only able to get encoded data from there ( using image.Encode methods )

What I would like is some kind of contiguous non encoded pixel data as a byte array. Is that possible ?

Thanks

"Quick Fix..." does not work! :(

$
0
0

On Xamarin Studio 6.1.5, the context menu item "Quick Fix..." does not work for me. It doesn't do anything.
Is really annoying and productive working without being able to include usings and other quick fixes.

Anyone know a way to fix this?

Thanks

Is it possible to inject other dlls

$
0
0

Hello
I was wondering if it's possible to add/inject other dlls. Lets say I would like to do a "workbook" on 3rd party dll

Android.Views.InflateException: Binary XML file line #2: Binary XML file line #2:

$
0
0

Android.Views.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class android.widget.EditText

.... I'm getting this problem whenever i tried to run my loginApp. How to solve this problem. :neutral:

Async call through SOAP returning error TargetInvocationException in Xamarin

$
0
0

I have added web service reference to consume the service using WSDL. I am making Async method call to get the response but getting error.

Generated Code

public partial class SoapClient : System.ServiceModel.ClientBase<App1.Data.Soap>, App1.Listing.Soap {
...
}

Client Invocation

SoapClient s = new SoapClient();
s.GetListingsReportCompleted += resultReceived;
s.GetListingsReportAsync(10);

...

public static void resultReceived(Object sender,
                       GetListingsReportCompletedEventArgs e)
{
     e.result --> System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.
     ...
    ** OR**

    GetListingsReportCompletedEventArgs e : Unknown identifier: GetListingsReportCompletedEventArgs

}

I am getting this in Error : System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.
Sometime I also get Unknown identifier: GetListingsReportCompletedEventArgs.

I am trying to deploy this on Android and iOS.(I am not worried about it working in windows phone or not)

Need Release Singed Build for Debug

$
0
0

I am working on in app billing. I need to debug my app to trouble shoot some workflow. To do this, you need a Release build, on a real device and signed. I am finally able to debug my release build by setting some build settings. But now the issue is the signing of the android package. When you debug in Visual Studio, it seems to automatically pick a "debug.keystore".

3>C:\Program Files (x86)\Java\jdk1.8.0_121\\bin\keytool.exe -list -alias androiddebugkey -storepass android -keypass android -keystore "C:\Users\rk\AppData\Local\Xamarin\Mono for Android\debug.keystore"
3

I cant find a way to specify my own keystore. I could replace the debug keystore with mine, but it will fail because of the password. Ideas how I can make this work? Thanks!

How do I delete a subview from a UiView using UITapGestureRecognizer?

$
0
0

I am going to have up to 6 subviews in this view. But I have no idea how to register the subview that is tapped in order to have that one deleted? So when a subview is tapped and it goes into my method that handles the tap gesture what method is there to grab the item that was selected?


can't Register a Mac to a Azure Notification Hub

$
0
0

Hi,

i have an Application for Android, iOS, Win8.1 and Win10. They register all to the same Azure Notification Hub with localized Templates.

Now on Mac I couldn't find a working way to register my Xamarin.Mac Version of this APP to the Notification Hub.

I added the Microsoft.Azure.NotificationHubs package to the Project. But Im getting an exception while trying to Register.

NotificationHubClient Hub = NotificationHubClient.CreateClientFromConnectionString(HubConstants.ConnectionString, HubConstants.NotificationHubPath);

Im getting this exception:
The type initializer for 'TimerManager' threw an exception.

Is this even the right way to register an Mac to the Hub?

Publish to Google Play not Incrementing Version Code

$
0
0

See Screenshot

Xamarin Studio for Mac (6.5.1 build 0)

Can't publish to Google Play. Build version is clearly "10", but whatever signifies the version code in the actual build itself is saying "9" as version code. Tried restarting, cleaning, rebuilding... all the standard stuff. Never gotten it to work.

AndroidManifest.xml clearly has:

android:versionCode="10"
android:versionName="1.0.10"

Am I the only one experiencing this? Any ideas?

Xamarin.iOS Designer(Storyboard) is broken

$
0
0

Hello to everyone.
I'm doing step by step actions of Xamarin University(Xamarin.iOS - "Getting started with the ios designer") and i can't understand why that happens, but constraints on AutoLayout won't work, seems that this "+" button(Add recommended constraints) on Designer works incorrect. As i understood correctly , it should add four constraints(fully-constrained-view),but it add only couples(sometimes 2-3).
Can someone explain why this happens and how to use Xamarin.iOS Designer properly...?

PS XS 6.1.5 and xCode 8.2, in nutshell i have installed lastest stable SDK/IDE stuff.

The application could not be started

$
0
0

Hi everyones i got a anoying problem:

The application could not be started. Ensure that the application has been installed to the target device and has a launchable activity (MainLauncher = true).

Things i do:

  • adb uninstall ; nothing happends

    • try to uninstal app from device: the app dont apeard, even like a fake app whith 0kb
    • Uninstall Mono Shared Runtine and Api from app
    • Check in another device

Nothing solve my problem and i dont know who i must do.

Darken Image Overlay

$
0
0

Hi,
I'm trying to acheive the following look: https://gyazo.com/754f02a5ef964e56e2a39b9410eac0c3
I have a circle image with the camera icon and text overlaid. However, I can't figure out how to darken the image. Any suggestions? (I found some swift/objective c ideas but have no clue how to translate them over to C#) Thanks!

Build Shared Forms Project for Android with XBUILD

$
0
0

I have seen a bunch of topics on this, but based on what I read they all seem the same.

I am trying to build my Android project / upload it to TestFairy using a shell script.

My build command looks like this:
$ xbuild "./Droid/App.Forms.Droid.csproj" /t:PackageForAndroid /p:Configuration="Debug" /p:Platform="AnyCPU"

It seems to sort of work but I get a bunch of errors like this:

"Replacing FeedbackPopup.InitializeComponent ()... failed."

".../FeedbackPopup.xaml: error : Failed to resolve assembly: '{AssemblyName}, Culture=neutral, PublicKeyToken=null'"

I can get some results using "MDTOOL" to the extent that it creates a bin folder / dlls and assets. But it does not create the APK. The command I used for that is this:

$ mdtool build -p:"App.Forms.Droid" -t:Build -c:"Debug" "App.sln"

I don't care if I use XBUILD or MDTOOL. I just want an APK to result from one of these.

The project is in Xamarin.Forms where the shared XAML is included as a "Shared Project" rather than a PCL.

Why use the same namespace in projects Xamarin.Forms?

$
0
0

Hi,
I am creating an application in xamarin.forms but when I seek information many from demos on your project use the same namespace, this is a standard for building applications xamarin.forms, or only that at the end of copilar the project will create a single dll file.


ViewController.h disappeared

$
0
0

I was following the Hello Mac tutorial, and it all went well. A couple of hiccups as it's expected from someone that has never worked with Xamarin before.

I kept on reading about Mac APIs, common patterns and so on. A few days later a came back to continue on my fake app, and I needed to add some UI elements. Now, the first thing I noticed is that now, double-clicking the storyboard file in Xamarin did not call Xcode anymore. Now I have to right click the file -> Open with -> Xcode. Weird enough but ok.

But then in Xcode, I couldn't find, in the Assistant, the .h file to add my elements. I went to Finder, and indeed, ViewController.h file wasn't there anymore. As a dummy app, I never used git, so I don't know what happened, when, why...

I'd like to know:
1. What happened?
2.How can I generate a ViewController.h from the apparently healthy storyboard, ViewController.cs etc.

any Xamarin Chat SDK that you recommend?

$
0
0

Hello,

we would like to implement a one-to-one and group chat feature, do you know any Xamarin SDK that you recommend?

Thanks,
Charbel

How do you make an .ipa? (February 2017)

$
0
0

I have looked at other forum posts and I have read the documentation but nothing works. I just get different errors every time I change the project configuration. I have downloaded all of the necessary certificates and provisioning profiles but nothing works. The project builds fine for the iPhoneSimulator. This is my latest error:

Severity Code Description Project File Line Suppression State
Error Project bundle identifier 'com.companyname.anesthesiaconsiderations_iOS' does not match specified provisioning profile '[code]' anesthesiaconsiderations-iOS

I'm doing this for TestFlight.

https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/app_distribution/app-store-distribution/publishing_to_the_app_store/

https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/app_distribution/app-store-distribution/

https://forums.xamarin.com/discussion/10746/how-to-build-an-adhoc-ipa-file-for-an-ios-app-in-visual-studio-2012-asked-and-answered

What is wrong, Could not connect to the debugger.

$
0
0

Hi,

I'm having alot of troubles getting started developing with xamarin forms. So far it feels like it's more or less a lottery if you get anything working at all. I tried running on VS 2017 RC but after alot of issues I have now set up a new machine from scratch running win 10, VS 2015 proffessional with the following.

When creating a new solution from the Blank Xaml App template and trying to debug the android project I get the following error.

Android application is debugging.
02-16 21:51:43.266 I/art ( 2634): Late-enabling -Xcheck:jni
02-16 21:51:43.617 W/monodroid( 2634): Using override path: /data/user/0/XamarinFormsApp.Droid/files/.override
02-16 21:51:43.618 W/monodroid( 2634): Using override path: /storage/emulated/0/Android/data/XamarinFormsApp.Droid/files/.override
02-16 21:51:43.618 W/monodroid( 2634): Trying to load sgen from: /data/user/0/XamarinFormsApp.Droid/files/.override/libmonosgen-2.0.so
02-16 21:51:43.618 W/monodroid( 2634): Trying to load sgen from: /storage/emulated/0/Android/data/XamarinFormsApp.Droid/files/.override/libmonosgen-2.0.so
02-16 21:51:43.618 W/monodroid( 2634): Trying to load sgen from: /data/app/XamarinFormsApp.Droid-1/lib/x86/libmonosgen-2.0.so
02-16 21:51:43.618 W/monodroid( 2634): Trying to load sgen from: /data/user/0/XamarinFormsApp.Droid/files/.override/links/libmonosgen-2.0.so
02-16 21:51:43.620 W/monodroid-debug( 2634): Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8821,server=y,embedding=1
02-16 21:51:43.672 W/monodroid-debug( 2634): Accepted stdout connection: 20
02-16 21:51:44.460 D/Mono ( 2634): Image addref mscorlib[0xae513020] -> mscorlib.dll[0xad1eb500]: 1
02-16 21:51:44.460 D/Mono ( 2634): AOT module 'mscorlib.dll.so' not found: dlopen failed: library "/data/app/XamarinFormsApp.Droid-1/lib/x86/libaot-mscorlib.dll.so" not found
02-16 21:51:44.461 D/Mono ( 2634): AOT module '/Users/builder/data/lanes/3511/501e63ce/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/mscorlib.dll.so' not found: dlopen failed: library "/data/app/XamarinFormsApp.Droid-1/lib/x86/libaot-mscorlib.dll.so" not found
02-16 21:51:44.481 D/Mono ( 2634): Config attempting to parse: 'mscorlib.dll.config'.
02-16 21:51:44.481 D/Mono ( 2634): Config attempting to parse: '/Users/builder/data/lanes/3511/501e63ce/source/monodroid/builds/install/mono-x86/etc/mono/assemblies/mscorlib/mscorlib.config'.
02-16 21:51:44.622 D/Mono ( 2634): Assembly mscorlib[0xae513020] added to domain RootDomain, ref_count=1
Could not connect to the debugger.

Would really appreciate some help with this.

Issues with PKPass instantiation?

$
0
0

An existing project has been successfully using the iOS PassKit library to store some passes in the iOS passbook/wallet. After upgrading to Xamarin.iOS 10, we have lost this functionality.

We retrieve the pass as a byte array from our service, and then wrap that byte array into an NSData object which is used in the instantiation of the PKPass. We have a native team using the same service we are retrieving from, and using the same instantiation pattern, with no issues. However, since the upgrade, the PKPass will return nil when we attempt to instantiate, and Mono throws an OnInitFailure exception.

try{
                byte[] passByte = await new PassbookService().GetPassbookData (PassengerDocument);
                //Verify passByte is not null / Pass was succesfully retrieved.
                if (passByte != null) {
                    //Verify Passbook is Available
                    if (PKPassLibrary.IsAvailable) {
                         NSError result;
                        //Create Pass and Add
                        var data = NSData.FromArray(passByte);
                        PKPass pass = new PKPass(data, out result);
                        var pkapvc = new PKAddPassesViewController(pass);
                        ProgressDialog.dismissProgressDialog (loadingOverlay);
                        ShowViewController(pkapvc, this);
                    }
            }
            catch(Exception E){
                UIAlertView alert = new UIAlertView ("Error", "Unable to retrieve pass.", null, "Ok");
                ProgressDialog.dismissProgressDialog (loadingOverlay);
                alert.Show ();
            }

Error: "Could not initialize an instance of the type 'PassKit.PKPass': the native 'initWithData: error:' method returned nil.
It is possible to ignore this condition by setting MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure to false."

It does not appear this is a known or existing issue - any help would be appreciated. Thanks!

Viewing all 204402 articles
Browse latest View live


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