Hi , I need to used Camera and Photos in my App . I am using Xamarin forms.
Camera and Photos Library Access working fine in Android App . But not in iOS App.
is There anyone know , how can i used Camera and Photos for iOS App?
Thanks !!
Hi , I need to used Camera and Photos in my App . I am using Xamarin forms.
Camera and Photos Library Access working fine in Android App . But not in iOS App.
is There anyone know , how can i used Camera and Photos for iOS App?
Thanks !!
I'm currently developing on UWP and I got a weird navigation behavior.
I navigate successfully to that page: MasterDetailView/NavigationPage/Dictionary/Entry, but when I press back I go back to Dictionary but I don't have my MasterDetailView and the navigation page.
This is how I navigate to EntryDetail
await _navigationService.NavigateAsync(new Uri("{The link}/MasterDetailView", UriKind.Absolute) + "/NavigationPage/Dictionary/EntryDetail", param);
And then I just click on the back button from the uwp interface.
What's wrong here ?
Hello everyone,
I'm developping an app for Android and iOS with Xamarin, in this app the users can choose a diameter (called "diametre"), to this diameter is associated one or many screw threads (called "pas"). These two, combined, return a drill ("Percage").
The user must first click on "Diametre". ("Choisir" means "Choose").
(1) (I've made screenshots with numbers they refer to in the .zip file, since i can't post links).
Many buttons appears and the user can choose his value.
(2)
Once he has chosen his value for the diameter, the "pas" button is now accessible.
(3)
Now, the user can choose the "pas" he wants by clicking on the corresponding button which is supposed to lead him to a list of button like for the diameter.
This is where the trouble starts:
On the release version of the app, the list is appearing normally like for the diameter one, but when i deploy the app on a real phone to test it, the list is not correctly visible:
(4)
What i don't understand is the fact that when i swipe my finger a little to the bottom of the list, some values are appearing
(5) & (6)
This list is supposed to be like the diameter one, values with white background.
I'm new to Xamarin, at this point i don't know if the issue is from my code or if it's a bug (since everything is working in Visual Studio Android Emulator).
If you have any suggestion i would be very grateful.
Thanks for reading
I'd like to use imagebuttons with click animation. So I would have to create a style for my imagebuttons in order to simplify the xaml code, i.e. make the background transparent and add visual states for click animation.
Can some guru please publish a code snippet that does exactly that, as the description at xamarin-forms/user-interface/visual-state-manager seems somewhat complicated .
Cheers..
Hello,
4 days ago i updated vs in the hope to solve a google play publishing issue, but even after repeated reinstalls, on 15.6.7 i can build no issues, on 15.9.5 i cannot build even the simpliest of the android projects.
Output window only reads:
1>------ Build started: Project: App2, Configuration: Debug Any CPU ------
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
**Xamarin Diagnostic Output reads : **
[I:]: Looking for Android SDK...
[D:]: ValidateAndroidSdkLocation: C:\Program Files (x86)\Android\android-sdk
, result=True
[D:]: ValidateAndroidSdkLocation: C:\Program Files (x86)\Android\android-sdk
, result=True
[D:]: TrackDeviceTask got: emulator-5554 offline
[I:]: Got new device list from adb with 1 devices
[D:]: TrackDeviceTask got:
[I:]: Got new device list from adb with 0 devices
[I:]: Tracking android devices stopped
[I:]: Tracking android devices started
[D:]: TrackDeviceTask got:
[I:]: Got new device list from adb with 0 devices
[D:]: Tracking avd started
[D:]: avd watcher *.ini path: 'C:\Users\heart.android\avd'
[D:]: avd watcher: got device list from avd with 2 devices
[E:]: an error occurred loading avd Android_Accelerated_x86_Nougat
, the system image does not exists
[E:]: an error occurred loading avd Android_Accelerated_x86_Oreo
, the system image does not exists
Visual studio Info as follows:
Microsoft Visual Studio Professional 2017
Version 15.9.5
VisualStudio.15.Release/15.9.5+28307.280
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Professional
Visual C++ 2017 00369-60000-00001-AA126
Microsoft Visual C++ 2017
ADL Tools Service Provider 1.0
This package contains services used by Data Lake tools
Application Insights Tools for Visual Studio Package 8.14.11009.1
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.9.04012.0
ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 15.8.31590
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.60913.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.9.03024.0
Azure App Service Tools v3.0.0
Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.3.6000.0
Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools 15.9.02046.0
Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio 2.3.6000.0
Microsoft Azure Stream Analytics Tools for Visual Studio
C# Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Extensibility Message Bus 1.1.49 (remotes/origin/d15-8@ee674f3)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Fabric.DiagnosticEvents 1.0
Fabric Diagnostic Events
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
JavaScript UWP Project System 2.0
JavaScript UWP Project System
Microsoft Azure HDInsight Azure Node 2.3.6000.0
HDInsight Node under Azure Node
Microsoft Azure Hive Query Language Service 2.3.6000.0
Language service for Hive query
Microsoft Azure Service Fabric Tools for Visual Studio 2.4
Microsoft Azure Service Fabric Tools for Visual Studio
Microsoft Azure Stream Analytics Language Service 2.3.6000.0
Language service for Azure Stream Analytics
Microsoft Azure Stream Analytics Node 1.0
Azure Stream Analytics Node under Azure Node
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10730.2
Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 1.0
Install client-side libraries easily to any web project
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
MLGen Package Extension 1.0
MLGen Package Visual Studio Extension Detailed Info
Mono Debugging for Visual Studio 4.13.12-pre (9bc9548)
Support for debugging Mono processes with Visual Studio.
NintendoSDK Visual Studio Extension 1.0
NintendoSDK Visual Studio Extension
NuGet Package Manager 4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Oasis for NX 7.2.8.26511
NX Visual Studio Integration
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info
ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info
SQL Server Data Tools 15.1.61901.03220
Microsoft SQL Server Data Tools
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
ToolWindowHostedEditor 1.0
Hosting json editor into a tool window
TypeScript Tools 15.9.20918.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual C++ for Linux Development 1.0.9.28218
Visual C++ for Linux Development
Visual F# Tools 10.2 for F# 4.5 15.8.0.0. Commit Hash: 6e26c5bacc8c4201e962f5bdde0a177f82f88691.
Microsoft Visual F# Tools 10.2 for F# 4.5
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers
Visual Studio Tools for Universal Windows Apps 15.0.28307.208
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Xamarin 4.12.3.78 (d15-9@a9bbf702f)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.16.13 (45a16efd4)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 1.1.128 (6f5ebb2)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 9.1.5.0 (HEAD/4b951a3e7)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 12.2.1.12 (65ec520)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Hello, I am unable to track this crash, it seems to happen on very specific devices but it's outside my code and I believe it's xamarin related.
The exception reported is
"System.IndexOutOfRangeException: Index was outside the bounds of the array." in the "AwaitTaskContinuation.RunOrScheduleAction" method.
I'm attaching my VS infos :
Microsoft Visual Studio Professional 2017
Version 15.9.5
VisualStudio.15.Release/15.9.5+28307.280
Microsoft .NET Framework
Version 4.7.03190
Installed Version: Professional
Visual C++ 2017 00369-60000-00001-AA126
Microsoft Visual C++ 2017
ADL Tools Service Provider 1.0
This package contains services used by Data Lake tools
Application Insights Tools for Visual Studio Package 8.14.11009.1
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.9.04012.0
ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 15.8.31590
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.60913.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.9.03024.0
Azure App Service Tools v3.0.0
Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.3.6000.0
Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools 15.9.02046.0
Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio 2.3.6000.0
Microsoft Azure Stream Analytics Tools for Visual Studio
C# Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Extensibility Message Bus 1.1.49 (remotes/origin/d15-8@ee674f3)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Fabric.DiagnosticEvents 1.0
Fabric Diagnostic Events
GnD Editor Extension 1.5.2.0
GnD Editor Extension
Copyright (c) 2018 Sony Interactive Entertainment Inc. All rights reserved.
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
JavaScript UWP Project System 2.0
JavaScript UWP Project System
Microsoft Azure HDInsight Azure Node 2.3.6000.0
HDInsight Node under Azure Node
Microsoft Azure Hive Query Language Service 2.3.6000.0
Language service for Hive query
Microsoft Azure Service Fabric Tools for Visual Studio 2.4
Microsoft Azure Service Fabric Tools for Visual Studio
Microsoft Azure Stream Analytics Language Service 2.3.6000.0
Language service for Azure Stream Analytics
Microsoft Azure Stream Analytics Node 1.0
Azure Stream Analytics Node under Azure Node
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10730.2
Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 1.0
Install client-side libraries easily to any web project
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
Microsoft XNA Game Studio 4.0
Microsoft XNA Game Studio 4.0
Build 4.0.30901.0
MLGen Package Extension 1.0
MLGen Package Visual Studio Extension Detailed Info
Mono Debugging for Visual Studio 4.13.12-pre (9bc9548)
Support for debugging Mono processes with Visual Studio.
NintendoSDK Visual Studio Extension 1.0
NintendoSDK Visual Studio Extension
NuGet Package Manager 4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Oasis for NX 7.2.8.26511
NX Visual Studio Integration
PlayStation® Debugger 1.0.154.0
Adds debugging support for PlayStation® platforms to Visual Studio.
PlayStation® Visual Studio Integration 2.5.1.4
PlayStation® Visual Studio Integration
Copyright © 2018 Sony Interactive Entertainment Inc. All rights reserved.
PlayStation®4 Debugger 1.0
Adds debugging support for PlayStation®4 to Visual Studio
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
Razor CPU 5.50.0.13
Razor Performance Analysis and Debug Tool
Copyright (C) 2018 Sony Interactive Entertainment Inc. All Rights Reserved.
ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info
ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info
SQL Server Data Tools 15.1.61901.03220
Microsoft SQL Server Data Tools
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
ToolWindowHostedEditor 1.0
Hosting json editor into a tool window
TypeScript Tools 15.9.20918.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual C++ for Linux Development 1.0.9.28218
Visual C++ for Linux Development
Visual F# Tools 10.2 for F# 4.5 15.8.0.0. Commit Hash: 6e26c5bacc8c4201e962f5bdde0a177f82f88691.
Microsoft Visual F# Tools 10.2 for F# 4.5
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers
Visual Studio Tools for Universal Windows Apps 15.0.28307.208
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Xamarin 4.12.3.78 (d15-9@a9bbf702f)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.16.13 (45a16efd4)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 1.1.128 (6f5ebb2)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 9.1.5.0 (HEAD/4b951a3e7)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 12.2.1.12 (65ec520)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
XNA Game Studio 4.0 1.0
and the complete AppCenter crash logs are attached. I put one of the raw here for helping search engines.
Package: hb.doom_and_destiny_advanced
Version Code: 18120
Version Name: 1.8.1.2
Android: 9
Android Build: PKQ1.180716.001
Manufacturer: OnePlus
Model: ONEPLUS A5000
CrashReporter Key: a14377cf-b89b-4ed7-9ead-e4413bc899aa
Date: undefined
Xamarin Exception Stack:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction (System.Action action, System.Boolean allowInlining, System.Threading.Tasks.Task& currentTask) [0x00020] in :0
at System.Threading.Tasks.Task.FinishContinuations () [0x00052] in :0
at System.Threading.Tasks.Task.FinishStageThree () [0x0003c] in :0
at System.Threading.Tasks.Task1[TResult].TrySetResult (TResult result) [0x0004f] in <ab32d96ffa5647a891c44620288a35cb>:0 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1[TResult].SetResult (TResult result) [0x0003d] in :0
at System.Net.WebCompletionSource`1+d__15[T].MoveNext () [0x000c5] in <8dd22d829ead48f79898d92306ca3be9>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext (System.Object stateMachine) [0x00000] in :0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in :0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in :0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00024] in :0
at System.Threading.Tasks.AwaitTaskContinuation.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in :0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in :0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in :0
Thread 2:
0 mono.java.lang.RunnableImplementor.n_run(RunnableImplementor.java:-2)
1 mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30)
2 android.os.Handler.handleCallback(Handler.java:873)
3 android.os.Handler.dispatchMessage(Handler.java:99)
4 android.os.Looper.loop(Looper.java:193)
5 android.app.ActivityThread.main(ActivityThread.java:6863)
6 java.lang.reflect.Method.invoke(Method.java:-2)
7 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
8 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Thread 9598:
0 java.lang.Object.wait(Object.java:-2)
1 java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:184)
2 java.lang.Daemons$Daemon.run(Daemons.java:109)
3 java.lang.Thread.run(Thread.java:764)
Thread 9599:
0 java.lang.Object.wait(Object.java:-2)
1 java.lang.Object.wait(Object.java:422)
2 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:188)
3 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:209)
4 java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:238)
5 java.lang.Daemons$Daemon.run(Daemons.java:109)
6 java.lang.Thread.run(Thread.java:764)
Thread 9600:
0 java.lang.Thread.sleep(Thread.java:-2)
1 java.lang.Thread.sleep(Thread.java:373)
2 java.lang.Thread.sleep(Thread.java:314)
3 java.lang.Daemons$FinalizerWatchdogDaemon.sleepFor(Daemons.java:353)
4 java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:394)
5 java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:287)
6 java.lang.Daemons$Daemon.run(Daemons.java:109)
7 java.lang.Thread.run(Thread.java:764)
Thread 9612:
0 java.lang.Object.wait(Object.java:-2)
1 java.lang.Thread.parkFor$(Thread.java:2137)
2 sun.misc.Unsafe.park(Unsafe.java:358)
3 java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
4 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2059)
5 java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
6 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1092)
7 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
8 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
9 com.google.android.gms.common.util.concurrent.zza.run
10 java.lang.Thread.run(Thread.java:764)
Thread 9615:
0 java.lang.Object.wait(Object.java:-2)
1 java.lang.Thread.parkFor$(Thread.java:2137)
2 sun.misc.Unsafe.park(Unsafe.java:358)
3 java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
4 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2059)
5 java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
6 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1092)
7 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
8 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
9 com.google.android.gms.common.util.concurrent.zza.run
10 java.lang.Thread.run(Thread.java:764)
Thread 9616:
0 android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1 android.os.MessageQueue.next(MessageQueue.java:326)
2 android.os.Looper.loop(Looper.java:160)
3 android.os.HandlerThread.run(HandlerThread.java:65)
Thread 9618:
0 android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1 android.os.MessageQueue.next(MessageQueue.java:326)
2 android.os.Looper.loop(Looper.java:160)
3 android.os.HandlerThread.run(HandlerThread.java:65)
Thread 9619:
0 android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1 android.os.MessageQueue.next(MessageQueue.java:326)
2 android.os.Looper.loop(Looper.java:160)
3 android.os.HandlerThread.run(HandlerThread.java:65)
Thread 9628:
0 android.net.LocalSocketImpl.readba_native(LocalSocketImpl.java:-2)
1 android.net.LocalSocketImpl.access$300(LocalSocketImpl.java:36)
2 android.net.LocalSocketImpl$SocketInputStream.read(LocalSocketImpl.java:110)
3 com.qti.tcmclient.DpmTcmClient$TcmReceiver.run(DpmTcmClient.java:144)
4 java.lang.Thread.run(Thread.java:764)
Thread 9632:
0 java.lang.Object.wait(Object.java:-2)
1 com.android.okhttp.ConnectionPool$1.run(ConnectionPool.java:103)
2 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
3 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
4 java.lang.Thread.run(Thread.java:764)
Thread 9633:
0 java.lang.Object.wait(Object.java:-2)
1 com.android.okhttp.okio.AsyncTimeout.awaitTimeout(AsyncTimeout.java:311)
2 com.android.okhttp.okio.AsyncTimeout.access$000(AsyncTimeout.java:40)
3 com.android.okhttp.okio.AsyncTimeout$Watchdog.run(AsyncTimeout.java:286)
Thread 9640:
0 dalvik.system.VMStack.getThreadStackTrace(VMStack.java:-2)
1 java.lang.Thread.getStackTrace(Thread.java:1538)
2 java.lang.Thread.getAllStackTraces(Thread.java:1588)
3 com.microsoft.appcenter.crashes.Crashes.saveUncaughtException(Crashes.java:943)
4 com.microsoft.appcenter.crashes.WrapperSdkExceptionManager.saveWrapperException(WrapperSdkExceptionManager.java:50)
Hey!
After upgrading to Xamarin Forms 2.5-stable, I now get the following error in my project.
Error NU1607 Version conflict detected for Xamarin.Android.Support.v4. Reference the package directly from the project to resolve this issue.
MyProject.Android (>= 1.0.0) -> MyProject (>= 1.0.0) -> Xamarin.Forms (>= 2.5.0.77107) -> Xamarin.Android.Support.v4 (>= 25.4.0.2)
MyProject.Android (>= 1.0.0) -> MyProject (>= 1.0.0) -> Xamarin.Auth (>= 1.5.0.3) -> Xamarin.Android.Support.CustomTabs (>= 23.3.0) -> Xamarin.Android.Support.v4 (>= 23.3.0).
I'm using netstandard 2.0 in my class library project.
What I've tried:
Tried to install Xamarin.Android.Support.v4 to my Android project, but the installation fails with the following message:
Version conflict detected for Xamarin.Android.Support.Core.UI. Reference the package directly from the project to resolve this issue.
Reinstalled Xamarin.Forms
Any ideas?
Hi,
I am facing an issue with iOS 9.3 simulator and not been able to run even a hello world app on it. When I run from VS Mac, the app installs but failed to launch. It works fine on iOS 10x but not working at all on 9.3.
Here is my environment:
Visual Studio Community 2017 for Mac
Version 7.6.9 (build 22)
Installation UUID: 2181ccdb-9c01-4c8c-9cac-3676850b9f7f
Runtime:
Mono 5.12.0.309 (2018-02/39d89a335c8) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 4.4.1.178 (master / eeaeb7e6)
Package version: 512000309
NuGet
Version: 4.3.1.4445
.NET Core
Runtime: /usr/local/share/dotnet/dotnet
Runtime Version: 2.1.2
SDK: /usr/local/share/dotnet/sdk/2.1.302/Sdks
SDK Version: 2.1.302
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Sdks
Xamarin.Profiler
Version: 1.6.3
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Apple Developer Tools
Xcode 10.0 (14320.25)
Build 10A255
Xamarin.Android
Version: 9.0.0.20 (Visual Studio Community)
Android SDK: /Users/sahmad/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
8.1 (API level 27)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 28.0.0
SDK Build Tools Version: 27.0.3
Java SDK: /usr
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
Xamarin Inspector
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1
Xamarin.Mac
Version: 5.0.0.0 (Visual Studio Community)
Hash: b40230c0
Branch:
Build date: 2018-09-27 11:41:37-0400
Xamarin.iOS
Version: 12.0.0.15 (Visual Studio Community)
Hash: 84552a46
Branch: xcode10
Build date: 2018-09-17 21:54:33-0400
Build Information
Release ID: 706090022
Git revision: 0a0ba3c4593e9adb1c6ff6324e641036146af376
Build date: 2018-10-05 16:38:51+00
Build branch: release-7.6
Xamarin extensions: f7856b13f2c03a58e08381d3a5970bba18f5c7d7
Operating System
Mac OS X 10.14.0
Darwin 18.0.0 Darwin Kernel Version 18.0.0
Wed Aug 22 20:13:40 PDT 2018
root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
Enabled user installed extensions
LiveXAML 1.3.31
Any help?
When sending test messages from the FCM Console, even if I enter a single device's token using 'Test Device', the message is going to all my devices with the app installed.
Is this a known bug?
I know this is not Xamarin-specific - but people here may have used FCM and have experienced this!
Hi,
I am building an android app to build a puzzle from some pre-loaded puzzles in a dictionary variable (of int, string). It has over 12,000 puzzles. When the user clicks new game, a random integer is generated and the corresponding puzzle is selected from dict and loaded.
When the dict had only 10 puzzles app was working fine, but the moment I added 10,000 puzzles it shows an error the method playgame():ctor (int) is too complicated.
So I guess it has something to do with the dictionary variable? Each item has atleast 2000 characters.
Can someone tell me why this is happening and how to avoid this? I don't want to use SQlite . Can i store these puzzles in application resources and then load them?
Regards,
I'm trying to add an observer to an HttpCookieStore connected to a WebsiteDataStore for a WKWebView. I can't figure out how to build an observer that i can pass to AddObserver on HttpCookieStore. I'm really just trying to have a class that will have the CookiesDidChangeInCookieStore called when cookies change so I can save them, but it looks like it is implemented as an extension method in the docs.
I tried to do this:
public class CookieObserver : IWKHttpCookieStoreObserver
{
}
public static class CookieObserverExtensions
{
public static async void CookiesDidChangeInCookieStore(this IWKHttpCookieStoreObserver This, WKHttpCookieStore cookieStore)
{
var cookies = await cookieStore.GetAllCookiesAsync();
Debug.WriteLine("Found " + cookies.Length + " cookies");
foreach (var cookie in cookies)
{
Debug.WriteLine(cookie.Domain + " - " + cookie.Name + ":" + cookie.Value);
}
}
}
But I get a the error "CookieObserver" does not implement interface member INativeObject.Handle.
What is the proper way to create and assign an observer for HttpCookieStore?
Hello, I am having an issue with ListView's scrollto method (to scroll to the bottom of the list). Essentially I have a 'chat room', so the user enters a message and it gets added to the observable collection that is bound to the listview. Without using the scrollto method, the new item in the collection appears just as it should. But when I use the scrollto method, everytime a new item gets added to the collection, the entire listview disappears briefly, then reappears with the newly added item. It is scrolling to the bottom of the list just fine, but I don't want it to disappear/reappear everytime a new item is added.
Heres the code I'm using, its placed in the Entry's "Completed" event handler (the entry allows the user to type the message that will get added to the listview)
var v = ListChatMessages.ItemsSource.Cast<ChatItemTemplate>().LastOrDefault();
ListChatMessages.ScrollTo(v, ScrollToPosition.End, false);
I've been trying to profile for memory leaks a few days now, and I finally got the symbols loaded correctly so that I can see meaningful line numbers. However, my app now locks up frequently in the middle of an Instruments run, so I have to stop everything and start over again.
This seems to happen around task-based operations. For example, I have a log-in screen that throws up an activity indicator while the server is authenticating the user. Outside of Instruments everything runs fine. Within Instruments the task never completes and the activity indicator hangs around forever.
Is this a common thing and is there anything I can do to fix it? Would boosting my RAM to 16 gigs (from 8) help out?
How to achieve the below design by using xaml code.
Hey developers,
I have so far tried to use a carousel view due to its ease of use and of course its performance. But I tried to show the tail of each UI elements (let's say we've a bunch of cards) whatever the position is as shown in the picture. I've googled a lot and posted another question in this forum but since then I changed the project UI a little bit so I ignored the given solution and now I am on my own again, I resolved it (show the next card's tail or/and the previous), I'll write down the structure I used in XAML but first let me highlight my requirements.
I want to reproduce the behaviour, animation/transition on swiping of the carousel view to my view, because I am actually using a horizontal scroll view with a Flex layout inside.
Here is the structure :
Now I've tried two options :
1- Use of Scrolled event in the scroll view but that hasn't been a great option because it fire the events (animation or transition) after the scroll is done, in my case it should fire the event since scrolling started.
2- Use of SwipeGestureRecognizer on Scrollview, FlexLayout and BoxView : couldn't get a stable behaviour on the 2 first attempts but when I used a BoxView I couldn't get each StackLayout (the StackLayout is my card) inside the BoxView (It wasn't built for that).
Here is my UI after I used a horizontal scroll view :
here is the behaviour I wanted to reproduce to my view :
https://media.giphy.com/media/l0NwH3XDSYhQ6l4TC/giphy.gif
Hello,
I'm having this error when trying to publish an iOS application:
"Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it."
We are using iOSCharts in our project.
I tried to use the ipa-packager from GitHub and also to create the "SwiftSupport" folder manually (I copied the *.dylib files from Xcode) but the best result for now is another error:
"Invalid Swift Support - The file arm64 doesn't have a signing ID. Sign the file, rebuild your app using the current public (GM) version of Xcode, and resubmit it."
What can I do to solve these errors? Thanks for any help/feedbacks
We're using Xamarin.Firebase.iOS.CloudMessaging to get Push Notifications.
It's working fine except for one quirk.
When the app is first installed, RegisteredForRemoteNotifications
is called, but Messaging.SharedInstance.Fcmtoken
is not set.
When the app subsequently runs, it is set.
We need the FCM token so that we can send it to our back-end server.
How can I get the FCM Token on first installation?
My code is:
public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
// NOTE that the token passed in here is the Apple APNS token.
// We need the Firebase FCM Token - this is what is used to manage token sending in Firebase.
Messaging.SharedInstance.ApnsToken = deviceToken;
// Why is this empty the first time the app runs?
var fcmToken = Messaging.SharedInstance.FcmToken;
Debug.WriteLine($"RegisteredForRemoteNotifications token:'{deviceToken}'");
// This method can be called with no FCM Token set - so only do something when we've got the token
if (!string.IsNullOrEmpty(fcmToken))
{
Debug.WriteLine($"RegisteredForRemoteNotifications fcmtoken:'{Messaging.SharedInstance.FcmToken}'");
// Subscribe to a 'news' topic so we can send to just those subscribed to this topic
Messaging.SharedInstance.Subscribe("news");
// TODO - we will need to send the fcmToken to the back-end server, with the user details, so that the back-end server
// can then manage notifications and send targetted Notifications to the specific user (e.g. a warning that their policy is expiring soon).
//SendPushNotificationTokenToTempcoverServer(fcmToken);
}
}
The iOS application errors when run on a physical iOS device, iPod Touch, in debug mode. The project runs fine in the simulator in both debug/release modes and also when the application is deployed to a physical iPod Touch. A provisioning profile has been created for the iOS application.
I am following the instructions, "Walkthrough: Binding an iOS Objective-C Library", on the Xamarin website https://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/walkthrough/. The project creates an objective-c binding library for InfColorPicker and uses the control in an iOS application.
The application errors when attempting to debug the application on the physical device from the IDE. The application launches then when the button is selected to open the InfColorPickerController the following error occurs
System.ExecutionEngineException has been thrown
Attempting to JIT compile method 'InfColorPicker.InfColorPickerController:set_WeakDelegate (Foundation.NSObject)' while running in aot-only mode. See https://developer.xamarin.com/guides/ios/advanced_topics/limitations/ for more information.
The error occurs after calling HandleTouchUpInsideWithStrongDelegate in the ViewController Class on the assignment "picker.Delegate = selector;". The exception is thrown when the InfColorPickerControllerDelegate is set in the InfColorPickerController class. Both of the classes are below.
namespace InfColorPickerSample
{
public partial class ViewController : UIViewController
{
ColorSelectedDelegate selector;
protected ViewController(IntPtr handle) : base(handle)
{
// Note: this .ctor should not contain any initialization logic.
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
// Perform any additional setup after loading the view, typically from a nib.
ChangeColorButton.TouchUpInside += HandleTouchUpInsideWithStrongDelegate;
selector = new ColorSelectedDelegate(this);
}
private void HandleTouchUpInsideWithStrongDelegate(object sender, EventArgs e)
{
InfColorPickerController picker = InfColorPickerController.ColorPickerViewController();
picker.Delegate = selector;
picker.PresentModallyOverViewController(this);
}
}
}
namespace InfColorPicker {
[Register("InfColorPickerController", true)]
public unsafe partial class InfColorPickerController : global::UIKit.UIViewController {
[CompilerGenerated]
public InfColorPickerControllerDelegate Delegate {
get {
return WeakDelegate as InfColorPickerControllerDelegate;
}
set {
WeakDelegate = value;
}
}
}
}
I've tried the following and still have the same problem
1. Built the binding and iOS project in Visual Studio 2015 Professional - PC
2. Built the binding and iOS project in Xamarin Studio Community 6.3.864 - MAC
3. Built the binding and iOS project in Visual Studio 2017 Community - MAC
4. Used the static library .a file, ApiDefinitions.cs, StructsAndEnums from the example project on https://developer.xamarin.com/samples/monotouch/InfColorPicker
5. Changed "Linker behavior" to "Don't Link"
The odd part is that when the example project from the xamarin webpage, https://developer.xamarin.com/samples/monotouch/InfColorPicker, it runs on the physical device without any problems.
The project runs and functions normally on a physical device even through the following files are replaced
1. static library .a file
2. ApiDefinitions.cs
3. StructsAndEnums.cs
How do I resolve this problem? I've been pulling out my hair for the past week trying to resolve this problem.
I have Visual Studio 2017. I used to be able to run the Android_Accelerated_x86_Oreo (Android 8.1 - API 27) just fine, but for some reason now I'm getting:
Emulator Android_Accelerated_x86_Oreo is running.
Waiting for emulator to be ready...
emulator: _hwFingerprint_connect: connect finger print listen is called
emulator: got message from guest system fingerprint HAL
[8700]:WARNING:android/android-emu/android/base/async/AsyncSocketServer.cpp:99:Error when accepting host connectionError message: Unknown error
[8700]:WARNING:android/android-emu/android/base/async/AsyncSocketServer.cpp:99:Error when accepting host connectionError message: Unknown error
[8700]:WARNING:android/android-emu/android/base/async/AsyncSocketServer.cpp:99:Error when accepting host connectionError message: Unknown error
Then I get: Deploy failed and the emulator just shows a black screen.
I've tried rebooting and rebuilding the solution, no effect. Any ideas? Thanks.