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

Missing Asset Catalog - Your app is missing the asset catalog file in

$
0
0

I am using visual studio 2017 on windows and updated all related tools. I am getting the above error using the Application Loader in Xcode. I have the Asset Catalogs folder in the root of my IOS project. It has Assets and Media objects. There is nothing showing in Assets. Media has AppIcons and LaunchImages. I filled in all the AppIcons. We use a story board for the launch screen with a logo so I don't have images which will the device, therefore, the LaunchImages object is empty. Does anyone have any insight into why I am my asset catalog is missing or steps I can do to ensure it is included? Also, are the launch images optional?

thanks


Android and PIC USB app. How to...

$
0
0

To hom it may concern

I'm developing a packeting automatic machine based on pic 18F4550 because it has USB support and I wanted to have an interface in a PC to communicate human with machine while the basic control work be done by the PIC. I know nothing about Xamarin exept that it exists and what I have rode in abut .75 hour in your page.

The solution I know some code in the PIC part made with PicBasicPro to solve this and some Visual Basic code on the PC. I have not implemented yet but I have some tested example code that makes me think it works without problem. Proton has the EasyHID utility that can make the code por PBP.

But, I would love to replace the PC for an Android Tablet, for several reasons: light and little space, touchscreen, elegant solution.

Since the PIC has USB support, I discard FTDI, but the Tablet would have to work as host.

So, supossing the code I have works fine with the PC, I ask you (I hope this question reach the right person) specifically if we could migrate this Visual Basic code with someone of your products and make it work as the human interface I need, as Android native, sending and receiving data to the PIC through an USB cable. If the migration is not possible, maybe you have a solved example of Android - Pic 18F4550 communication trough USB in the language you have it or whatever, so I could modify just for the variables in the PIC and in the interface part.

If it works certainly I would like to buy your licence for using with several projects.

Thank you in advance for your time

Luis Jiménez I.

iTunes Connect Change Device Family for MyApp?

$
0
0

Greetings,

I have create an app in iTunes Connect, uploaded IPA file, screenshots and submit binary file. Currently, the app in iTunes Connect is set to Universal in device family type. Thus I have to set device family to Universal when compiling the IPA file, before submitting the binary file.

I have made mistake, the app supposed to support iPhone only, not Universal. So how to change the device family type for my app in iTunes Connect? Actually I want to delete the bundle, but didn't find the option for deleting apps in iTunes Connect. Am I missing something?

Access to html content from view that requires authentication on web from mobile app

$
0
0

I need to access a web view that requires authentication. I do not want to simply add 'AllowAnonymous' access on the view. I would like to instead add my login token as 'Authorization' key the same as I would on any of my other Rest API calls. Currently without the AllowAnonymous tag loading the request sends me to the login page of the web site.

Here is code snippet of what I have now:

var request = new NSMutableRequest(NSUrl.FromString(UrlToLoad));
var keys = new object[ ] {"Authorization"};
var objects = new object[ ] {LoginManager.LoginToken };
var dict = NSDictionary.FromObjectsAndKeys(objects, keys);
req.HttpMethod = "POST";
req.Headers = dict;
webView.LoadRequest(req);

which ports are needed for Live Player?

$
0
0

I've been able to get Live Player to work with the Color Control demo program on two phones inside my network by opening up port 8090 tcp outbound. It connects to 52.225.130.190:8090 which is obviously outside my internal 172.16.0.x network.

  1. Are any other ports needed?

  2. Would it be possible to have VS 2017 look for a phone Outside my network? I'd love to be able to have a client run a quick test on his phone!!! I haven't been able to get that to work. As VS 2017 is talking to an ip outside on the internet during normal use of Live Player (even when VS 2017 and the iPhone are both on an internal network), hopefully this is possible?

  3. Is there a way to remove the name of the iPhone's setup from the VS 2017 Live Player devices? I've changed my test phone names to match the color of their cases to make them easier to identify.

ResolveLibraryProjectImports" task failed unexpectedly in Xamarin forms

$
0
0

While I am building my Xamain Project (Android project using Xamarin Forms ) I am encountering below error

Severity Code Description Project Path File Line Suppression State
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'MYPROJECT, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'MYPROJECT.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.GetAssembly(String fileName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection1 jars, ICollection1 resolvedResourceDirectories, ICollection1 resolvedAssetDirectories, ICollection1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() MYPROJECT.Android

The solution is located on my D drive -The file path is not too longer .I have removed the Nuget Package References and added the same by using Restore Nuget Package option .Still the issue persist ?

Can anybody provide a working solution for me ?

Any suggestion is helpful .
Thanks In Advance !!

This project type requires Xamarin.Android to be installed help!

$
0
0

After updating, this error appeared

This project type requires Xamarin.Android to be installed help!

Back Button Destroys MainActivity

$
0
0

I noticed in Xamarin Forms that hitting the Back button on Android destroys the MainActivity. Is that the expected behavior? If so, is there a reason to do that each time? It seems to me it'd be better to simply resume it.


Change text size in toast

$
0
0

Hello,

After much googling, I remained stumped on how to change the default text size of a toast. I found the following code:
ViewGroup group = (ViewGroup) toast.getView(); TextView messageTextView = (TextView) group.getChildAt(0); messageTextView.setTextSize(25);

Apparently this is all I need to do. However, in Xamarin when I type this code, I immediately get an error that says "the name 'toast' does not exist in the current context".

I imagine what I am trying to do is relatively simple, but I am (pathetically) quite stuck!

Any help would be greatly appreciated!

Dustin

[Xamarin.InAppPurchase] Auto-Renewing Subscriptions, how to?

$
0
0

Hey everyone

I've been attempting to get the Xamarin.InAppPurchase working with Auto-Renewing subscriptions for almost a week now, and unsuccessful in everything I try.
I can purchase the Auto-Renewing subscription just fine, however I have no way to ask the server if the subscription is still active, and the remaining duration. I've read somewhere that I'm supposed to send a JSON request with the receipt and Shared Secret Key as part of the content. However nowhere did it specify if that was necessary in Xamarin as well, and I'm guessing it's not, since there's the FinishTransaction method being called.
Is this correct, or how is it done? I've tried the following this:

  • Checking the Purchased property on InAppProduct's. Always false except in the ProductPurchased event.
  • Checking the ExpirationDate on InAppProduct. Always shows the exact same time as I sent the request.
  • Checking the Valid property. Always true.

Except for these, I haven't tried much else.

Also, is there a way to prematurely stop a subscription, or do I HAVE to wait the 30 minutes (6 * 5 minutes, because it's a monthly subscription, and auto-renewing subscriptions expires after 6 renewals), every time I purchase the subscription? I tried entering the "Administer Subscription" in the prompt when I attempt to buy it again when I already own it. However after logging in, Safari simply redirects me back to iTunesConnect's homepage, not logged in or anything.

Thanks

Master-Detail Hamburger iOS vs. Android

$
0
0

I have built a Master/Detail page with a menu. It works beautifully in Android, giving me an animated hamburger. But in iOS the hamburger becomes the word menu and only appears on one screen. Have you run into this? Is this a known and/or fixable problem?

I have followed the approach shown here.

Thanks

Code runs even though swiggles present after VS15.5 update, Why?

$
0
0

I see swiggles on the code with "Name ... does not exist in present context" error. But the app runs...Why?

Not built in active configuration

$
0
0

in XS, what does "not built in active configuration" mean? It just started being displayed this afternoon. Is there some way to work around this? Seems strange.

Has anyone connected Note 8 to VS and run apps?

$
0
0

I have enabled Developer mode on my Note 8 but still it was not recognized by VS on Wind10

Now I tried LivePlayer after updating to VS15.5. Scanned the QR Code with my Note8. Then the Note8 name appears in device list. If I select it, even if the phone is connected through wire, the LivePlayer version starts.

Of course it is a different story that Live Player is not working with Note 8...That is a different story...

Now though I have very advanced Android device, I can't load my apps to it. What to do? Or what to Undo?

TK.CustomMap - switch map source and offline map

$
0
0

We're looking at using TK.CustomMap in our Forms app, and I have the following questions.

  • Can we switch map sources between Google/Apple/OSM? We want the user to be able to switch sources. I assume that we can do this using TilesCustomOptions
  • Is it possible to have a default fallback map on the device (and the CustomMap use it)? Specifically we want to just display a simple coastal outline

Adding rows to a grid using MVVM

$
0
0

On a page where I am displaying a receipt to a user, I have a section which lists the subtotal, any taxes, and the total. Since the taxes applicable vary by region and based on the products being sold, the number of rows in this section will vary. For example, here are 3 separate orders, one with GST and PST, one with just GST, and one with neither:



I've accomplished this by putting just the SubTotal in the grid in XAML, and adding the rest in the code-behind in a method I call from the ViewModel. However, I'd really like to avoid doing it this way, so I'm wondering if there is an approach to accomplishing this which doesn't require having a bunch of code in the View's code-behind. I'd like to do this while keeping the columns nicely aligned as if they were in a single grid, and without adding any weird spacing between the rows.

Need to get message back to Forms PCL from Android Prj

$
0
0

I have a RadiusNetworks IBeaconAndroid running in my main android project, works great.
But when I need to send an event back to the UI when a beacon comes in range.
I tried to use MessagingCenter to send a message from Androd prj to the Forms PCL prj but it would cause a recursive

How can I do this?
I don't think I need a custom render since I just want to use normal forms label.

Ed,

ERROR WITH LATEST NUGET v2.5.0.77 "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded

$
0
0

I just got latest stable 2.5.0.77107 and I can't compile anymore

[myUser]\packages\xamarin.forms\2.5.0.77107\build\netstandard1.0\Xamarin.Forms.targets(55,3): error MSB4062: The "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded from the assembly [myUser]\.nuget\packages\xamarin.forms\2.5.0.77107\build\netstandard1.0\Xamarin.Forms.Build.Tasks.dll.  Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

I replaced my user path with [myUser]

it looks like this bug exists since October in the pre-release:

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

Is it possible to use QLThumbnailImage.Create method?

App builds on VS for windows but VS for mac has build errors

$
0
0

I can build and run the app on my android phone from VS on windows, but when i pull the exact codebase down onto my mac i am getting an issue that says "Acr.UserDialogs" namespace not found.

I have tried deleting the nuget package and reinstalling, this will take away the red underline from the using statements. However, they get re-added and the error shows up when i go to build.

The app however is fully functional when built from a windows machine. Problem being I can no longer deploy to the App store.

This started after I updated all my xamarin.forms packages and the acr.userdialogs package.

Viewing all 204402 articles
Browse latest View live


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