Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 89864 articles
Browse latest View live

Entry Behavior error: bindable not an instance of AssociatedType

$
0
0

Hi im following the tutorial which explains how to mask an entry in Xamarin Forms but when I follow the code and assign the behavior to an entry it comes up with this error:

bindable not an instance of AssociatedType

is this because its a InputKit Advanced Entry maybe? i am following this tutorial

https://xamarinhelp.com/masked-entry-in-xamarin-forms/


Firebase real time update

$
0
0
Hi all, as the title said I'm trying to implement an app that gets some data from firebase in real time and constantly gets updated. So my question is can I always update the app through firebase and also do this while the phone/tablet is with it's screen shut down? Or can I use the notification service to send a pop-up to the device? The ideea behind the app is that a customer places an order and in real time I want to illuminate a led using a Bluetooth signal.

Getting a NullReferenceException in Android when backing out of app

$
0
0

I'm using Xamarin Forms 4.2.0 and utilizing Xamarin.Forms Shell. Pressing the back button seems to work find when navigating through the various screens in my app, however, when I press back to exit the app when debugging I get a NullReferenceException:

09-30 14:49:52.866 D/Mono    ( 1085): Loading reference 10 of /storage/emulated/0/Android/data/com.companyname.agentconnectmobile/files/.__override__/Xamarin.Forms.Platform.Android.dll asmctx DEFAULT, looking for System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.866 D/Mono    ( 1085): Assembly Ref addref Xamarin.Forms.Platform.Android[0x799acc0e00] -> System.Runtime.Serialization[0x7935aa8d00]: 3
09-30 14:49:52.866 D/Mono    ( 1085): Loading reference 1 of System.Runtime.Serialization.dll asmctx DEFAULT, looking for System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.866 D/Mono    ( 1085): Assembly Ref addref System.Runtime.Serialization[0x7935aa8d00] -> System.Xml[0x799be73480]: 5
09-30 14:49:52.918 D/Mono    ( 1085): Loading reference 2 of System.Runtime.Serialization.dll asmctx DEFAULT, looking for System.ServiceModel.Internals, Version=0.0.0.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.920 D/Mono    ( 1085): Image addref System.ServiceModel.Internals[0x7937f9df00] (asmctx DEFAULT) -> System.ServiceModel.Internals.dll[0x7935889800]: 2
09-30 14:49:52.920 D/Mono    ( 1085): Prepared to set up assembly 'System.ServiceModel.Internals' (System.ServiceModel.Internals.dll)
09-30 14:49:52.920 D/Mono    ( 1085): Assembly System.ServiceModel.Internals[0x7937f9df00] added to domain RootDomain, ref_count=1
09-30 14:49:52.922 D/Mono    ( 1085): AOT: image 'System.ServiceModel.Internals.dll.so' not found: dlopen failed: library "System.ServiceModel.Internals.dll.so" not found
09-30 14:49:52.923 D/Mono    ( 1085): AOT: image '/Users/builder/jenkins/workspace/archive-mono/2019-06/android/release/sdks/out/android-arm64-v8a-release/lib/mono/aot-cache/arm64/System.ServiceModel.Internals.dll.so' not found: (null)
09-30 14:49:52.923 D/Mono    ( 1085): Config attempting to parse: 'System.ServiceModel.Internals.dll.config'.
09-30 14:49:52.923 D/Mono    ( 1085): Config attempting to parse: '/Users/builder/jenkins/workspace/archive-mono/2019-06/android/release/sdks/out/android-arm64-v8a-release/etc/mono/assemblies/System.ServiceModel.Internals/System.ServiceModel.Internals.config'.
09-30 14:49:52.923 D/Mono    ( 1085): Assembly Ref addref System.Runtime.Serialization[0x7935aa8d00] -> System.ServiceModel.Internals[0x7937f9df00]: 2
09-30 14:49:52.923 D/Mono    ( 1085): Loading reference 0 of System.ServiceModel.Internals.dll asmctx DEFAULT, looking for mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.923 D/Mono    ( 1085): Assembly Ref addref System.ServiceModel.Internals[0x7937f9df00] -> mscorlib[0x7a3039be80]: 64
09-30 14:49:52.923 D/Mono    ( 1085): Loading reference 2 of System.ServiceModel.Internals.dll asmctx DEFAULT, looking for System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.924 D/Mono    ( 1085): Assembly Ref addref System.ServiceModel.Internals[0x7937f9df00] -> System.Xml[0x799be73480]: 6
Loaded assembly: System.ServiceModel.Internals.dll [External]09-30 14:49:52.924 D/Mono    ( 1085): Loading reference 3 of System.Runtime.Serialization.dll asmctx DEFAULT, looking for System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123

09-30 14:49:52.924 D/Mono    ( 1085): Assembly Ref addref System.Runtime.Serialization[0x7935aa8d00] -> System[0x799acd1580]: 10
09-30 14:49:52.998 D/Mono    ( 1085): Loading reference 1 of System.Xml.dll asmctx DEFAULT, looking for System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:52.999 D/Mono    ( 1085): Assembly Ref addref System.Xml[0x799be73480] -> System[0x799acd1580]: 11
09-30 14:49:53.099 D/Mono    ( 1085): Loading reference 1 of System.ServiceModel.Internals.dll asmctx DEFAULT, looking for System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:53.100 D/Mono    ( 1085): Assembly Ref addref System.ServiceModel.Internals[0x7937f9df00] -> System[0x799acd1580]: 12
09-30 14:49:53.145 D/Mono    ( 1085): Loading reference 19 of /storage/emulated/0/Android/data/com.companyname.agentconnectmobile/files/.__override__/Xamarin.Forms.Platform.Android.dll asmctx DEFAULT, looking for System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=abc123
09-30 14:49:53.146 D/Mono    ( 1085): Assembly Ref addref Xamarin.Forms.Platform.Android[0x799acc0e00] -> System.Xml[0x799be73480]: 7
09-30 14:49:53.221 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.221 D/Mono    ( 1085): Searching for 'SystemNative_Unlink'.
09-30 14:49:53.221 D/Mono    ( 1085): Probing 'SystemNative_Unlink'.
09-30 14:49:53.222 D/Mono    ( 1085): Found as 'SystemNative_Unlink'.
09-30 14:49:53.279 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.279 D/Mono    ( 1085): Searching for 'SystemNative_LStat2'.
09-30 14:49:53.279 D/Mono    ( 1085): Probing 'SystemNative_LStat2'.
09-30 14:49:53.279 D/Mono    ( 1085): Found as 'SystemNative_LStat2'.
09-30 14:49:53.279 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.279 D/Mono    ( 1085): Searching for 'SystemNative_Rename'.
09-30 14:49:53.279 D/Mono    ( 1085): Probing 'SystemNative_Rename'.
09-30 14:49:53.280 D/Mono    ( 1085): Found as 'SystemNative_Rename'.
09-30 14:49:53.553 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.553 D/Mono    ( 1085): Searching for 'SystemNative_Link'.
09-30 14:49:53.553 D/Mono    ( 1085): Probing 'SystemNative_Link'.
09-30 14:49:53.553 D/Mono    ( 1085): Found as 'SystemNative_Link'.
09-30 14:49:53.563 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.563 D/Mono    ( 1085): Searching for 'SystemNative_Stat2'.
09-30 14:49:53.563 D/Mono    ( 1085): Probing 'SystemNative_Stat2'.
09-30 14:49:53.563 D/Mono    ( 1085): Found as 'SystemNative_Stat2'.
09-30 14:49:53.564 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.564 D/Mono    ( 1085): Searching for 'SystemNative_Symlink'.
09-30 14:49:53.564 D/Mono    ( 1085): Probing 'SystemNative_Symlink'.
09-30 14:49:53.564 D/Mono    ( 1085): Found as 'SystemNative_Symlink'.
09-30 14:49:53.588 W/com.companyname.agentconnectmobile( 1085): type=1400 audit(0.0:4414): avc: denied { link } for comm=54687265616420506F6F6C20576F72 name="PropertyStore.forms.tmp" dev="dm-6" ino=77573 scontext=u:r:untrusted_app_27:s0:c6,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c6,c257,c512,c768 tclass=file permissive=0
09-30 14:49:53.597 D/Mono    ( 1085): DllImport searching in: 'libmono-native.so' ('./libmono-native.so').
09-30 14:49:53.598 D/Mono    ( 1085): Searching for 'SystemNative_CopyFile'.
09-30 14:49:53.598 D/Mono    ( 1085): Probing 'SystemNative_CopyFile'.
09-30 14:49:53.598 D/Mono    ( 1085): Found as 'SystemNative_CopyFile'.
**System.NullReferenceException:** 'Object reference not set to an instance of an object.'

This is my first Xamarin application so I'm not sure if I am supposed to be handling exit on Android somehow? I haven't seen this issue on iOS.

UseWindowSoftInputModeAdjust doesn't work with ScrollView

$
0
0

I'm using Xamarin.Forms v. 4.2.0.815419
In MainActivity added
Xamarin.Forms.Application.Current.On<Xamarin.Forms.PlatformConfiguration.Android().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize);

And

WindowSoftInputMode = SoftInput.AdjustPan | SoftInput.AdjustResize

However this does not work

How trigger the DateSelected event of DatePicker only if the user tap on "Done" on iOS?

$
0
0

Hello,

How trigger the DateSelected event of DatePicker only if the user tap on "Done" on iOS?

Currently the event is triggered if you change the year, month or date

Best regards.

I can't figure out how to access SD Card

$
0
0

Hi folks, i'm a newbie developer in the .net ecosystem...
I've built a simple app to display text / html files as embedded resources.
Now i need to store them in the private app space of the sd card of the device.
I've followed a lot of post / how to but i can't figure out how to implement it.

With the following example code, i can read and write a file on internal filesystem...
but no success on sd card.

`string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);

        string filename = Path.Combine(path, "myfile.txt");

        using (var streamWriter = new StreamWriter(filename, true))
        {
            streamWriter.WriteLine(DateTime.UtcNow);
        }

        using (var streamReader = new StreamReader(filename))
        {
            string content = streamReader.ReadToEnd();
            System.Diagnostics.Debug.WriteLine(content);
        }` 

If you can give me some some advice, it will be appreciated.
Thank you in advance

Xamarin forms: Listview scrollbar showing on the left side

$
0
0

I have added the following codes for reversing the listview(first item on bottom).

In the ListView set following two properties:

FlowDirection=”RightToLeft”
Rotation=”180″

And in the view cells main layout:

FlowDirection=”LeftToRight”
Rotation=”180″

After that my scrollbar showing on the left side and mouse scrolling behaves opposite of the normal behavior(on UWP). Also, scrolling is not smooth. How can I fix these issues?

I got the above codes from this blog. Please see the Rotate the list section. In the blog itself, they are telling about the scroll bar on the left side issue and suggested to add FlowDirection property to solve this.

Complete Code:

 <ListView 
      FlowDirection="RightToLeft"
      Rotation="180"
      <ListView.ItemTemplate>
         <DataTemplate>
             <ViewCell>
               <ViewCell.View>
                  <StackLayout
                     FlowDirection="LeftToRight"
                     Rotation="180"> 
                     //Listview items
                  </StackLayout>
                </ViewCell.View>
             </ViewCell>
          </DataTemplate>
       </ListView.ItemTemplate>
   </ListView>

Shell application with flyout menu without showing the navigation in the flyout

$
0
0

I have a shell application that uses the flyout with tabs to navigate. Is it possible to JUST show the navigation as tabs and not have any navigation buttons in the flyout itself? I would like to use the flyout view for other things like user info.


Setting Cookies in a WebView

$
0
0

I received a request this morning to share how I set cookies in a webview so here it is, hope it's helpful. It's worked for me so far but feel free to comment on it if it can be improved.
First, you have to create a custom render for your webview in iOS and Android, there are many examples of how to do that so I won't go into that here.
In my shared code I have a UserInfo object that contains a CookieContainer:

    public class UserInfo
    {
        public static CookieContainer CookieContainer = new CookieContainer();
    }

In my (native) login page I have an event called OnLoginClickAsync which validates the login information. I create a HTTPClientHandler:

                var handler =  new HttpClientHandler {CookieContainer = UserInfo.CookieContainer};
                var httpClient = new HttpClient(handler);

Then save the resulting CookieContainer if the validation is successful:

                UserInfo.CookieContainer = handler.CookieContainer;

On the Android side in the OnElementChanged event for my web view renderer I use:

            var cookieManager = CookieManager.Instance;
            cookieManager.SetAcceptCookie(true);
            cookieManager.RemoveAllCookie();
            var cookies = UserInfo.CookieContainer.GetCookies(new System.Uri(AppInfo.URL_BASE));
            for (var i = 0; i < cookies.Count; i++)
            {
                string cookieValue = cookies[i].Value;
                string cookieDomain = cookies[i].Domain;
                string cookieName = cookies[i].Name;
                cookieManager.SetCookie(cookieDomain, cookieName + "=" + cookieValue);
            }

On the iOS side in the OnElementChanged event for my web view renderer I use:

            // Set cookies here
            var cookieUrl = new Uri(AppInfo.URL_BASE);
            var cookieJar = NSHttpCookieStorage.SharedStorage;
            cookieJar.AcceptPolicy = NSHttpCookieAcceptPolicy.Always;
            foreach (var aCookie in cookieJar.Cookies)
            {
                cookieJar.DeleteCookie(aCookie);
            }

            var jCookies = UserInfo.CookieContainer.GetCookies(cookieUrl);
            IList<NSHttpCookie> eCookies = 
                (from object jCookie in jCookies 
                 where jCookie != null 
                 select (Cookie) jCookie 
                 into netCookie select new NSHttpCookie(netCookie)).ToList();
            cookieJar.SetCookies(eCookies.ToArray(), cookieUrl, cookieUrl);

Also, if you want to use the cookie container in a straight call - not in a webview - just set it in the handler:

            var handler = new HttpClientHandler { CookieContainer = cookieContainer };
            var httpClient = new HttpClient(handler);

Your code signing/provisioning profiles are not correctly configured

$
0
0

Hello I have been developing an app, for the developer time I was able to deploy it into my IPhone, but when I activate the push Notification services en the Entitlements.plist, this error start appearing "Your code signing/provisioning profiles are not correctly configured. Probably you have an entitlement not supported by your current provisioning profile, or your device is not part of the current provisioning profile. Please check the iOS Device Log for details (error: 0xe8008016)."

After a few hours reading I noticed that the WildCard Identifier doesn't have the Push Notification enable (I can't modified it), so I created a new one and add it to my profile, I downloaded again my certificate and install it into my machine, but in the Bundle Signing doesn't show the new profile as show in the screen

I kind of lost here, how I made my app enable to use push notifications? Thx in advance

Cannot open iOS and Android projects after migrating to VS 2019

$
0
0

I tried to open my Xamarin.Forms solution, created with Visual Studio 2017, in Visual Studio 2019. The shared project, as well as UWP project, opened successfully, but iOS and Android projects are not open, and the message appears instead of their contents, "This project needs to be migrated". Please advise. The projects still open find in VS 2017.

XF 4: CollectionView GridItemsLayout with bindable Span property

Create a post, comment, and "like" system, like for example Facebook

$
0
0

I am thinking on implementing on my app a posting system, just as facebook for example; users can post anything with a picture(s), video(s), text, emojis, etc. I am stuck in how to start. Any ideas or guidance? I have been googling but google just relates "posting" as publishing my app... Also, is there a way to store all posts out of my database? I am using firebase, so I don't really want to generate a huge bill if users just post lots of things. I am also considering that posts are temporary available for free users and if premium it lasts longer, or at least if they pay the membership.

Getting error "java.exe exited with code 2"

$
0
0

2>Using "CompileToDalvik" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Build.Tasks.dll".
2>Task "CompileToDalvik" (TaskId:419)
2> Task Parameter:DxJarPath=C:\LinkToAndroidSDK\build-tools\25.0.2\lib\dx.jar (TaskId:419)
2> Task Parameter:JavaToolPath=C:\LinkToJava8\bin (TaskId:419)
2> Task Parameter:JavaMaximumHeapSize=1024m (TaskId:419)
2> Task Parameter:ClassesOutputDirectory=obj\Debug\android\bin\classes (TaskId:419)
2> Task Parameter:MultiDexEnabled=False (TaskId:419)
2> Task Parameter:MultiDexMainDexListFile=obj\Debug\multidex.keep (TaskId:419)
2> Task Parameter:
2> JavaLibrariesToCompile=
2> C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v7.1\mono.android.jar
2> obj\Debug__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar
2> obj\Debug__library_projects__\OkHttp\library_project_imports\okhttp-2.3.0-jar-with-dependencies.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Animated.Vector.Drawable\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Compat\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Core.UI\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Core.Utils\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.CustomTabs\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Design\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Fragment\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Media.Compat\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.v4\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.CardView\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Vector.Drawable\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Azure.NotificationHubs.Android\library_project_imports\bin\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads.Lite\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Base\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Basement\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Clearcut\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gass\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gcm\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Iid\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Tasks\9.6.1\embedded\classes.jar (TaskId:419)
2> Task Parameter:OptionalObfuscatedJarFile=obj\Debug\proguard__proguard_output__.jar (TaskId:419)
2> CompileToDalvik (TaskId:419)
2> JavaOptions: (TaskId:419)
2> JavaMaximumHeapSize: 1024m (TaskId:419)
2> ClassesOutputDirectory: obj\Debug\android\bin\classes (TaskId:419)
2> JavaToolPath: C:\LinkToJava8\bin (TaskId:419)
2> DxJarPath: C:\LinkToAndroidSDK\build-tools\25.0.2\lib\dx.jar (TaskId:419)
2> ToolExe: java.exe (TaskId:419)
2> ToolPath: (TaskId:419)
2> UseDx: False (TaskId:419)
2> MultiDexEnabled: False (TaskId:419)
2> MultiDexMainDexListFile: obj\Debug\multidex.keep (TaskId:419)
2> JavaLibrariesToCompile: (TaskId:419)
2> C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v7.1\mono.android.jar (TaskId:419)
2> obj\Debug__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar (TaskId:419)
2> obj\Debug__library_projects__\OkHttp\library_project_imports\okhttp-2.3.0-jar-with-dependencies.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Animated.Vector.Drawable\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Compat\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Core.UI\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Core.Utils\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.CustomTabs\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Design\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Fragment\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Media.Compat\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.v4\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.CardView\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Vector.Drawable\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Azure.NotificationHubs.Android\library_project_imports\bin\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads.Lite\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Base\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Basement\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Clearcut\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gass\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gcm\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Iid\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Tasks\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\LinkToJava8\bin\java.exe -Xmx1024m -jar C:\LinkToAndroidSDK\build-tools\25.0.2\lib\dx.jar --no-strict --dex --output=obj\Debug\android\bin obj\Debug\android\bin\classes "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v7.1\mono.android.jar" obj\Debug__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar obj\Debug__library_projects__\OkHttp\library_project_imports\okhttp-2.3.0-jar-with-dependencies.jar obj\Debug__library_projects__\Xamarin.Android.Support.Animated.Vector.Drawable\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Compat\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Core.UI\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Core.Utils\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.CustomTabs\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Design\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Fragment\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Media.Compat\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.v4\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.v7.CardView\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Vector.Drawable\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Azure.NotificationHubs.Android\library_project_imports\bin\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads.Lite\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Base\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Basement\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Clearcut\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gass\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gcm\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Iid\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Tasks\9.6.1\embedded\classes.jar (TaskId:419)
2> (TaskId:419)
2> trouble writing output: Too many field references: 72871; max is 65536. (TaskId:419)
2> You may try using --multi-dex option. (TaskId:419)
2> References by package: (TaskId:419)
2> 2305 android.support.v4 (TaskId:419)
2> 13 android.support.v4.accessibilityservice (TaskId:419)
2> 17 android.support.v4.animation (TaskId:419)
2> 885 android.support.v4.app (TaskId:419)
2> 114 android.support.v4.content (TaskId:419)
2> 1 android.support.v4.content.pm (TaskId:419)
2> 1 android.support.v4.content.res (TaskId:419)
2> 11 android.support.v4.graphics (TaskId:419)
2> 41 android.support.v4.graphics.drawable (TaskId:419)
2> 4 android.support.v4.hardware.display (TaskId:419)
2> 12 android.support.v4.hardware.fingerprint (TaskId:419)
2> 10 android.support.v4.internal.view (TaskId:419)
2> 388 android.support.v4.media (TaskId:419)
2> 379 android.support.v4.media.session (TaskId:419)
2> 10 android.support.v4.net (TaskId:419)
2> 19 android.support.v4.os (TaskId:419)
2> 63 android.support.v4.print (TaskId:419)
2> 10 android.support.v4.provider (TaskId:419)
2> 55 android.support.v4.text (TaskId:419)
2> 6 android.support.v4.text.util (TaskId:419)
2> 118 android.support.v4.util (TaskId:419)
2> 434 android.support.v4.view (TaskId:419)
2> 138 android.support.v4.view.accessibility (TaskId:419)
2> 8 android.support.v4.view.animation (TaskId:419)
2> 495 android.support.v4.widget (TaskId:419)
2> 605 android.support.v7.app (TaskId:419)
2> 2305 android.support.v7.appcompat (TaskId:419)
2> 2305 android.support.v7.cardview (TaskId:419)
2> 8 android.support.v7.content.res (TaskId:419)
2> 18 android.support.v7.graphics.drawable (TaskId:419)
2> 437 android.support.v7.media (TaskId:419)
2> 2305 android.support.v7.mediarouter (TaskId:419)
2> 2305 android.support.v7.recyclerview (TaskId:419)
2> 1 android.support.v7.text (TaskId:419)
2> 2 android.support.v7.transition (TaskId:419)
2> 124 android.support.v7.util (TaskId:419)
2> 77 android.support.v7.view (TaskId:419)
2> 249 android.support.v7.view.menu (TaskId:419)
2> 1483 android.support.v7.widget (TaskId:419)
2> 89 android.support.v7.widget.helper (TaskId:419)
2> 1 android.support.v7.widget.util (TaskId:419)
2> 5 android.text (TaskId:419)
2> 1 android.text.util (TaskId:419)
2> 12 android.util (TaskId:419)
2> 19 android.view (TaskId:419)
2> 8 android.view.accessibility (TaskId:419)
2> 1 android.view.inputmethod (TaskId:419)
2> 5 android.webkit (TaskId:419)
2> 15 android.widget (TaskId:419)
2> 2299 app2.droid (TaskId:419)
2> 25 com.google.ads (TaskId:419)
2> 22 com.google.ads.mediation (TaskId:419)
2> 11 com.google.ads.mediation.customevent (TaskId:419)
2> 2299 com.google.android.gms (TaskId:419)
2> 20 com.google.android.gms.actions (TaskId:419)
2> 2342 com.google.android.gms.ads (TaskId:419)
2> 12 com.google.android.gms.ads.doubleclick (TaskId:419)
2> 19 com.google.android.gms.ads.formats (TaskId:419)
2> 13 com.google.android.gms.ads.identifier (TaskId:419)
2> 2299 com.google.android.gms.ads.impl (TaskId:419)
2> 256 com.google.android.gms.ads.internal (TaskId:419)
2> 22 com.google.android.gms.ads.internal.cache (TaskId:419)
2> 222 com.google.android.gms.ads.internal.client (TaskId:419)
2> 100 com.google.android.gms.ads.internal.formats (TaskId:419)
2> 158 com.google.android.gms.ads.internal.overlay (TaskId:419)
2> 51 com.google.android.gms.ads.internal.purchase (TaskId:419)
2> 197 com.google.android.gms.ads.internal.request (TaskId:419)
2> 14 com.google.android.gms.ads.internal.reward.client (TaskId:419)
2> 6 com.google.android.gms.ads.internal.reward.mediation.client (TaskId:419)
2> 6 com.google.android.gms.ads.internal.safebrowsing (TaskId:419)
2> 17 com.google.android.gms.ads.internal.util.client (TaskId:419)
2> 22 com.google.android.gms.ads.mediation (TaskId:419)
2> 1 com.google.android.gms.ads.mediation.admob (TaskId:419)
2> 12 com.google.android.gms.ads.mediation.customevent (TaskId:419)
2> 7 com.google.android.gms.ads.purchase (TaskId:419)
2> 1 com.google.android.gms.ads.reward.mediation (TaskId:419)
2> 46 com.google.android.gms.ads.search (TaskId:419)
2> 36 com.google.android.gms.auth.api.signin (TaskId:419)
2> 6 com.google.android.gms.auth.api.signin.internal (TaskId:419)
2> 2299 com.google.android.gms.base (TaskId:419)
2> 2345 com.google.android.gms.clearcut (TaskId:419)
2> 98 com.google.android.gms.common (TaskId:419)
2> 2393 com.microsoft.windowsazure.messaging (TaskId:419)
2> 342 com.squareup.okhttp (TaskId:419)
2> 86 com.squareup.okhttp.internal (TaskId:419)
2> 126 com.squareup.okhttp.internal.http (TaskId:419)
2> 1 com.squareup.okhttp.internal.io (TaskId:419)
2> 243 com.squareup.okhttp.internal.spdy (TaskId:419)
2> 11 com.squareup.okhttp.internal.tls (TaskId:419)
2> 1 com.xamarin.forms.platform.android (TaskId:419)
2> 25 java.lang (TaskId:419)
2> 7 java.lang.annotation (TaskId:419)
2> 1 java.math (TaskId:419)
2> 6 java.net (TaskId:419)
2> 1 java.nio (TaskId:419)
2> 6 java.util (TaskId:419)
2> 4 java.util.concurrent (TaskId:419)
2> 3 java.util.logging (TaskId:419)
2> 4 javax.microedition.khronos.egl (TaskId:419)

2> 4 mono.com.google.ads.mediation (TaskId:419)
2> 2 mono.com.google.ads.mediation.customevent (TaskId:419)
2> 4 mono.com.google.android.gms.ads.doubleclick (TaskId:419)
2> 8 mono.com.google.android.gms.ads.formats (TaskId:419)
2> 8 mono.com.google.android.gms.ads.mediation (TaskId:419)
2> 2 mono.com.google.android.gms.ads.mediation.customevent (TaskId:419)
2> 4 mono.com.google.android.gms.ads.purchase (TaskId:419)
2> 2 mono.com.google.android.gms.ads.reward (TaskId:419)
2> 2 mono.com.google.android.gms.ads.reward.mediation (TaskId:419)
2> 2 mono.com.google.android.gms.common.api (TaskId:419)
2> 2 mono.com.google.android.gms.common.images (TaskId:419)
2> 2 mono.com.google.android.gms.security (TaskId:419)
2> 6 mono.com.google.android.gms.tasks (TaskId:419)
2> 4 mono.java.lang (TaskId:419)
2> 2 mono.java.util (TaskId:419)
2> 2 mono.javax.xml.transform (TaskId:419)
2> 81 okio (TaskId:419)
2> 2 opentk (TaskId:419)
2> 2 opentk.platform.android (TaskId:419)
2> 2 opentk_1_0 (TaskId:419)
2> 2 opentk_1_0.platform.android (TaskId:419)
2>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1965,3): error MSB6006: "java.exe" exited with code 2.
2> DexOutputs: (TaskId:419)
2>Done executing task "CompileToDalvik" -- FAILED. (TaskId:419)
2>Done building target "_CompileToDalvikWithDx" in project "App2.Droid.csproj" -- FAILED.: (TargetId:353)
2>
2>Project Performance Summary:
2> 42 ms \TF-RICHY\Aboo_share_win10\Backup\New app2 droid\App2 - Android\App2\App2\App2.csproj 3 calls
2> 34 ms GetTargetPath 1 calls
2> 1 ms GetNativeManifest 1 calls
2> 7 ms GetCopyToOutputDirectoryItems 1 calls
2> 189298 ms \TF-RICHY\Aboo_share_win10\Backup\New app2 droid\App2 - Android\App2\App2.Droid\App2.Droid.csproj 1 calls
2> 189298 ms Rebuild 1 calls
2>

2>
2>Build FAILED.
2>
2>Time Elapsed 00:03:09.29
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

Can I create and reuse components of interface?

$
0
0

Suppose I want to create these kind of tags for first time and then in future just use it, call it like another default component "button", "frame", etc...

that's posible??


Is there any way to pass objects between pages using the Shell Navigation?

$
0
0

All I can see is being able to pass string uri params using the Shell Navigation.

Thanks

Getting a Xam.Plugins.Messaging sent message finished result?

$
0
0

I have a Xamarin Forms project and am currently using Xam.Plugins.Messaging to send SMS and emails, but I don't see how to take an action depending on the finished result, whether they were sent, canceled, or failed. Is there a way to do this? If not, is there some other similar plugin I can use that does have this ability?

Change the text color for Xamarin.Forms.DatePicker

$
0
0

For Xamarin.Forms.DatePicker It is not obvious that the date field is "tapable" I want to change the text color of it to blue so the user will think it is clickable?

I see a background color property but not forecolor/text color?

Let me know how I can do that.

Xamarin.Forms android push notification

$
0
0

I want my app can pop notification when it runs on background.
The function like WeChat.

My app is a network client, but not have user account system.
If my app not run on foreground or background, the server message not need to pop notification.
So I don't need the cloud system to do this.

I only want two things:
1. My app can run network receive loop on android background.
2. My app can tell the android system pop notification with my text.

Shell QueryProperty issue

$
0
0

I just spent the whole morning debugging one issue. When I convert a binary property ToBase64 (Convert.ToBase64String) which ends with equal symbol "=" and used that as parameter in the await Shell.Current.GoToAsync($"keypage?key={key}"); then nothings get passed. Is this a known issue or how do I pass a binary variable ?

Viewing all 89864 articles
Browse latest View live


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