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

Is it possible to restart my app?

$
0
0

I am wondering if it is possible to reset my app from within the app itself (assuming this is not "not recommended").

I am simply wanting to be able to change the language from within the app. Right now the app's language is determined by the system language, but I also want to include the option to change the language that the app uses from within the app. I've managed to do so, but when I updated the CultureInfo, any page that has already rendered still displays the old language. So I am wanting to restart the app after selecting the new language, in order to make sure it is using the correct localized strings for every page.

Otherwise, I will just have to display a message telling the user they will need to manually restart the app to see the changes.


美国毕,业证学位文,凭薇信596,403,686#办理美国UNICAMP假毕,业证〖怎样办理维诺纳州立大学毕,业证】哪里可以买美国大学毕,业证|办理 UNICAMP成绩单

$
0
0

美国毕,业证学位文,凭薇信596,403,686#办理美国UNICAMP假毕,业证〖怎样办理维诺纳州立大学毕,业证】哪里可以买美国大学毕,业证|办理
UNICAMP成绩单

Using Xamarin.Auth with Xamarin.Forms

$
0
0

How you can use Xamarin.Auth when you're using Xamarin.Forms?

I have this:

async public System.Threading.Tasks.Task<bool> LoginWithFacebook (object dialog, string FacebookAppID)
        {
            var user = new ParseUser ();
            var auth = new OAuth2Authenticator (
                           clientId: FacebookAppID,
                           scope: "",
                           authorizeUrl: new Uri ("https://m.facebook.com/dialog/oauth/"),
                           redirectUrl: new Uri ("http://www.facebook.com/connect/login_success.html"));
            auth.AllowCancel = true;
            // If authorization succeeds or is canceled, .Completed will be fired.
            auth.Completed += async (object sender, AuthenticatorCompletedEventArgs ee) => {

                // Now that we're logged in, make a OAuth2 request to get the user's info.
                var accessToken = ee.Account.Properties ["access_token"].ToString ();
                var expiresIn = Convert.ToDouble (ee.Account.Properties ["expires_in"]);
                var expiryDate = DateTime.Now + TimeSpan.FromSeconds (expiresIn);

                // Now that we're logged in, make a OAuth2 request to get the user's id.
                var request = new OAuth2Request ("GET", new Uri ("https://graph.facebook.com/me"), null, ee.Account);
                var response = await request.GetResponseAsync ();
                var obj = JObject.Parse (response.GetResponseText ());
                var id = obj ["id"].ToString ().Replace ("\"", ""); // Id has extraneous quotation marks
                user = await ParseFacebookUtils.LogInAsync (id, accessToken, expiryDate);

            };
            var dvc = ((DialogViewController)dialog);
            dvc.PresentViewController (auth.GetUI (), true, null);
            return user.IsAuthenticated;
        }

But I can't cast ContentPage to DialogViewController or an Activity

Xamarin always installs "Mono Shared Runtime" even in release mode

$
0
0

Hi,

I understand that if I package an app as an APK it does special "linking" to only pull in parts from Mono runtime that app needs and includes them in the app.

Debug builds use the Mono Shared Runtime to speed things up.

However, I notice in either Xamarin Studio or Visual Studio, when you uncheck "Use Mono Shared Runtime" it still installs the shared runtime anyway. Why is this?

In Visual Studio for example I switch to release configuration. "Use Mono Shared Runtime" is NOT checked. I then do "Start without debugging" and it then installs the Shared Mono Runtime on the device.

Is there any way to actually have it never install the shared runtime? It doesn't seem like it's necessary for my release configuration, the app seems to work even if I uninstall the shared runtime.

美国毕,业证学位文,凭薇信596,403,686#办理美国MC假毕,业证〖怎样办理密西西比学院毕,业证】哪里可以买美国大学毕,业证|办理MC成绩单

$
0
0

美国毕,业证学位文,凭薇信596,403,686#办理美国MC假毕,业证〖怎样办理密西西比学院毕,业证】哪里可以买美国大学毕,业证|办理MC成绩单

How to set a button with an underscore?

$
0
0

I want to set a button with an underscore;I have created a button inheritance and ButtonRenderer on the iOS and Android projects, but I can't set the underscore. Can anyone tell me how to do this?Thank you very much!

ERROR ITMS-90534: "Invalid Toolchain. New apps and app updates must be built with the public (GM)

$
0
0

ERROR ITMS-90534: "Invalid Toolchain. New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, macOS, and iOS SDK or later. Don't submit apps built with beta software including beta macOS builds."

I face this issue as well while I upload my ipa to Apple Store using application loader

美国毕,业证学位文,凭薇信596,403,686#办理美国UNH假毕,业证〖怎样办理新罕布什尔大学毕,业证】哪里可以买美国大学毕,业证|办理UNH成绩单

$
0
0

美国毕,业证学位文,凭薇信596,403,686#办理美国UNH假毕,业证〖怎样办理新罕布什尔大学毕,业证】哪里可以买美国大学毕,业证|办理UNH成绩单


Timestamp in strings

$
0
0

Dears,

I have a Label inside listview-viewcell, to show time in UI. The date is received as a number like 1510822596449 (Java timestamp). I want to show the date in strings like "n days ago". How can I achieve this?

<StackLayout>
    <ListView>
        <ListView.ItemTemplate>
            <DataTemplate>
                <ViewCell>
                <StackLayout>
                    <Label Text="{Binding createdTime}"/>
                    </StackLayout>
                </ViewCell>
            </DataTemplate>
        </ListView.ItemTemplate>
      </ListView>
</StackLayout>

I try IValueConverter in the following link, but it is not working.
https://stackoverflow.com/questions/32814176/how-to-format-date-and-time-in-xaml-in-xamarin-application

Anybody, please suggest a solution with working code. Thanks in advance.

美国毕,业证学位文,凭薇信596,403,686#办理美国CUNY假毕,业证〖怎样办理纽约市立大学毕,业证】哪里可以买美国大学毕,业证|办理CUNY成绩单

$
0
0

美国毕,业证学位文,凭薇信596,403,686#办理美国CUNY假毕,业证〖怎样办理纽约市立大学毕,业证】哪里可以买美国大学毕,业证|办理CUNY成绩单

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?

毕业,证 @微927,0079阿德莱德大学毕业,证 @微927,0079毕业,证成绩单/留学认证,教育部公证

Layout not correctly displayed after orientation change

$
0
0

I have an Xamarin Forms app where all pages all locked to Portrait mode. Only two pages should be displayed in landscape mode.

My current approach is to set in Androids MainActivity.cs the RequestedOrientation

RequestedOrientation = ScreenOrientation.Portrait;

In the same class I have 2 subscribe methods of the MessagingCenter

        Xamarin.Forms.MessagingCenter.Subscribe<Views.LandscapePage>(this, "goLandscape", sender =>
        {
            RequestedOrientation = ScreenOrientation.Landscape;
        });

        Xamarin.Forms.MessagingCenter.Subscribe<Views.LandscapePage>(this, "removeLandscape", sender =>
         {
             RequestedOrientation = ScreenOrientation.Portrait;
         });

In the code behind of LandscapePage I call the "goLandscape" in the OnAppearing method and when I'm leaving the Page I'm using the "removeLandscape" in the OnDisappearing method.

My problem is that whenever I leave such a landscape page the Layout of the Page which follows after i left is completly wrong. Sometimes its stretched vertically and the bottom half is completly blank or the layout just shifts to one side.

Does someone know how I can fix this or is there a better option to set the orientation?

Thanks in advance

After update 15.5 Xamarin Studio telling me That Xamarin.Android not installed?

$
0
0

my problem is after update 15.5 xamarin.android. Xamarin Studio telling me xamarin.android not installed ? any idea?

毕业,证 @微927,0079澳洲国立大学毕业,证 @微927,0079毕业,证成绩单/留学认证,教育部公证


December 6, 2017 - Mobilise your Business - Xamarin & Microsoft & Sii Conference in Copenhagen

$
0
0

Creating outstanding mobile applications for every platform desired in a cost and work effective way? Sii and Microsoft team up to show how new technology makes it easier to design and develop cross-platform mobile applications. On December 6, 2017 Sii and Xamarin experts will talk about new opportunities during a conference at the Microsoft Development Center in Copenhagen.
During this event we aim to connect mobile technology with business. We will take a look at both Xamarin theory practical appliances. Focusing on enterprise-class solutions we will also bring Microsoft Azure closer with its Cognitive Services able to provide comprehensive solution for business’ needs.

Agenda

  • 08.30-09.00 Registration / coffee and Pastries
  • 09.00 Event welcome
  • 09.30 Introductory presentation
  • 10.00 How to bite 3 platforms with one bite – the theory
    Xamarin introduction
    Xamarin vs hybrid
    Architectural overview
    Building enterprise-class applications with Xamarin

  • 11.00 Coffee break

  • 11.30 How to bite 3 platforms with one bite – the practice
    Case study presentation introducing:
    Device Connectivity
    Back-end heavy apps
    Offline first

  • 13.00 Lunch

  • 14.00 Microsoft Azure Cognitive Services (Microsoft Presentation)
  • 15.00 Closing session – how to explore opportunities together
  • 15.30 Networking

Registration starts on November 6, 2017 and is free of charge.

PCL Storage append text to a file.

$
0
0

Hello,
I try to append some text to an existing file, but I don't know how?

The file.WriteAllTextAsync(TEXT) overwrittes all old text:

var folder = await this.rootFolder.GetFolderAsync(folderName).ConfigureAwait(false); var file = await folder.GetFileAsync(fileName).ConfigureAwait(false); await file.WriteAllTextAsync(text).ConfigureAwait(false);

I have also tried to use the stream to append text, but I can't find out, how I can do this. I've tried it with the following code, I think the offset is the problem, isn't it?

var folder = await this.rootFolder.GetFolderAsync(folderName).ConfigureAwait(false); var file = await folder.GetFileAsync(fileName).ConfigureAwait(false); var bufferArray = Encoding.UTF8.GetBytes(text); using (var streamToWrite = await file.OpenAsync(FileAccess.ReadAndWrite).ConfigureAwait(false)) { if (streamToWrite.CanWrite) { await streamToWrite.WriteAsync(bufferArray, 0, bufferArray.Length).ConfigureAwait(false); } }

Can someone help?

Export data from Sql Server to Sqlite.

$
0
0

My client has a Sql Server Database. I need to create an App that runs off line then i thought to use SqLite in App. But the principal database is Sql Server 2012. I need to retrieve data from Sql Server and store in my Sqlite or Store data in Sql Server with data from Sqlite. What kind problem would i have? Or not? I don't know if is or not a good pratice, but must be this way.

How to serialize/deserialize object to XML in PCL app?

$
0
0

Hello everyone! I am new in Xamarin and I have a problem for serialization object. Early I was using System.Xml.Serialization in my desktop WPF applications, but I cant't to use it in my Xamarin PCL application, because i get "SerializableAttribute could not be found" error when I try to mark class like "Serializable". Please, help me :(

Problems after installing 15.5 on Visual Studio 2015

$
0
0

Last night I saw the announcement of the release of 15.5, so I upgraded. Everything was working ok before the upgrade, but now that I've upgraded I am getting 3 different errors:

1) In Visual Studio 2015, the Updater still shows an available update:

However if I attempt to install, I get the Change/Remove/Repair dialog:

Selecting either Change or Repair succeeds, but then the next time I Check For Updates, the same update is still shown.

2) In Visual Studio 2015, as soon as I try to build a project, I am getting an Invalid License error.

If I select ‘Use Visual Studio Professtional’, I am able to build.

I tried the steps from here
https://developer.xamarin.com/guides/cross-platform/troubleshooting/legacy-licenses/resync-licenses/
(log out, delete the license files, log back in) but it didn’t help.

3) On iOS, When I start Visual Studio for Mac and Check for Updates, I see the Visual Studio Updater 1.7:

If I select Restart and Install Update, I get a message that no updates are found:

None of these errors happened before upgrading last night.

Any ideas?

Viewing all 204402 articles
Browse latest View live


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