xamarin.android

how to create android widget using C# android in visual studio [closed]

泪湿孤枕 提交于 2020-05-26 10:14:59
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 10 months ago . I am trying to create widget for android devices. Searched a lot. But could not get a single sample or write up on how to create this in visual studio using C# android blank applications. My question is are widgets can only be created in Android Studio and not with visual studio

how to create android widget using C# android in visual studio [closed]

ぃ、小莉子 提交于 2020-05-26 10:14:29
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 10 months ago . I am trying to create widget for android devices. Searched a lot. But could not get a single sample or write up on how to create this in visual studio using C# android blank applications. My question is are widgets can only be created in Android Studio and not with visual studio

Error in Xamarin Android with a progress dialog “Only the original thread that created a view hierarchy can touch its views”

耗尽温柔 提交于 2020-05-24 04:16:25
问题 I'm trying to use a progress dialog, while filling a datagrid, but I get the following error: "Only the original thread that created a view hierarchy can touch its views", this is my code, i hope they can help me public async void RelacionClientesREST() { try { var dlg = ProgressDialog.Show(this, "Loading", "Cargando relación de usuarios"); ThreadPool.QueueUserWorkItem(d => { RestClient client = new RestClient("http://portalclientewa.azurewebsites.net/api/RelacionClientes/"); var request =

Drag and Drop labels in Xamarin Forms App

こ雲淡風輕ζ 提交于 2020-05-24 04:03:00
问题 I have to develop a cross platform app in Xamarin forms and its one of the requirements is to be able to drag and drop dynamically generated labels between different views on same UI (i.e. check the image).. I have generated the dynamic labels but I am not sure how to implement drag and drop functionality. Can anyone guide me regarding the best choice of controls here like the containers containing the labels? Also do I need to write separate code for implementing the drag and drop on Android

Drag and Drop labels in Xamarin Forms App

北慕城南 提交于 2020-05-24 04:02:26
问题 I have to develop a cross platform app in Xamarin forms and its one of the requirements is to be able to drag and drop dynamically generated labels between different views on same UI (i.e. check the image).. I have generated the dynamic labels but I am not sure how to implement drag and drop functionality. Can anyone guide me regarding the best choice of controls here like the containers containing the labels? Also do I need to write separate code for implementing the drag and drop on Android

How to Implement Deeplink(Universal Linking) In Xamarin forms Both Android and iOS?

☆樱花仙子☆ 提交于 2020-05-23 10:54:52
问题 Guys, I need to implement Applink (Universal Link) step by step both android and iOS, please any to help achieve this. I tried the following code in my android project I followed this URL to write this https://devblogs.microsoft.com/xamarin/connect-with-your-users-with-google-search-and-app-indexing/ Note I no need to indexing concept just want to open the app from Clicking of any URL First I Installed Xamarin.Forms.AppLinks NuGet Below code MainActivity [IntentFilter(new[] { Android.Content

How to Implement Deeplink(Universal Linking) In Xamarin forms Both Android and iOS?

南笙酒味 提交于 2020-05-23 10:54:07
问题 Guys, I need to implement Applink (Universal Link) step by step both android and iOS, please any to help achieve this. I tried the following code in my android project I followed this URL to write this https://devblogs.microsoft.com/xamarin/connect-with-your-users-with-google-search-and-app-indexing/ Note I no need to indexing concept just want to open the app from Clicking of any URL First I Installed Xamarin.Forms.AppLinks NuGet Below code MainActivity [IntentFilter(new[] { Android.Content

Error:Xamarin.Forms targets have been imported multiple times

坚强是说给别人听的谎言 提交于 2020-05-15 19:44:46
问题 a few hours ago, my solution just builds success, but after that it has error "Xamarin.Forms targets have been imported multiple times." I have struggled with that a whole week. my project here: file my project I didn't see any multiple xamarin.forms at all. 回答1: This solution might help, we encountered same issue in recent past. Remove and add packages back will help you. Steps: Keep back up of your packages.config file. Remove all packages from packages.config file. Close project and open

Error:Xamarin.Forms targets have been imported multiple times

自闭症网瘾萝莉.ら 提交于 2020-05-15 19:44:10
问题 a few hours ago, my solution just builds success, but after that it has error "Xamarin.Forms targets have been imported multiple times." I have struggled with that a whole week. my project here: file my project I didn't see any multiple xamarin.forms at all. 回答1: This solution might help, we encountered same issue in recent past. Remove and add packages back will help you. Steps: Keep back up of your packages.config file. Remove all packages from packages.config file. Close project and open

Bad notification for startForeground in Android app

六眼飞鱼酱① 提交于 2020-05-15 06:48:06
问题 I am developing a service using Xamarin Android 3.5. Our app targets Android 8.1 (API 27 - Oreo). I want the service to run as a foreground service. However I am getting the following error when I run the service. Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=1 contentView=null vibrate=null sound=null defaults=0x0 flags=0x42 color=0x00000000 vis=PRIVATE) Here is the code for the service. public