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

issue of FCM notification

$
0
0

hello i am trying first time for fcm notification
and when adding code to the top of the OnCreate method to verify that google-services.json

Log.Debug(TAG, "google app id: " + GetString(Resource.String.google_app_id);

i dont understand how to declare google_app_id
whether property or else
so please suggest me what to do


SkiaSharp in Xamarin.IOS

$
0
0

HI,

I want to use SkCanvasView inside Xamarin.IOS (not Xamarin.Forms!). I did this in Xamarin.Android (directly inside XML ) but I don't know how to add SkCanvas view in IOS. Could you help me ? I have experience in programming for android platform but I know nothing about IOS so I must learn a lot of things.

Enjoy a fun game - Paw Puppy Subway Train Surfer Patrol by SamWellEnough

$
0
0

Paw Puppy Subway Train Surfer Patrol is an Arcade game developed by SamWellEnough. The latest version of Subway Puppy Surf Run is 1.2. It was released on 2017-08-27. You can download the Paw Puppy Subway Train Surfer Patrol v1.2 directly on the Google Play store. Over 1000 are playing Metro Racer Run Now. Come join them and download Subway Puppy Surf Run directly!

GAME: Paw Puppy Subway Train Surfer Patrol
According to the developer: SamWellEnough
Version: 1.2
File Size: 51.46 MB
APK signed: 40060BA4CC29DB30C9C5B2F26D8AF6F6675C9038
Released: 2017-08-27 00:47:44
Updated on: 2017-08-27
Category: Arcade
Operating System Requirements: Android 4.0.x - Ice Cream Sandwich
Paw Puppy Subway Train Surfer Patrol Apk Has been Downloaded so far and 0 votes has been casted so far. More details on the Puppy Poodle Subway Train Surfer Patrol can be found at google play: Link here

Enjoying pet care educational game which enhances the mental development

$
0
0

Pu - Care my baby Pandas bears game is both enjoyable as well as educational. Children like this type of educational fun games. Playing these types of games help them to learn a lot of things. By playing this type of pet caring they learn the responsibility in the real life. They also learn to take care of the pet and make them an individual with a good heart. This game has the many of the interesting part. Overall the game is very interesting and also very helpful to the children. The game has many of the interesting part and tasks.

How to create simple TabbedPageRenderer for iOS and Android in Xamarin Forms

$
0
0

Need Simple working Tabbedpage Renderer

How to Obtain Diagnostic Build Logs

$
0
0

One of the most valuable pieces of information that you, as a developer, can use to diagnose build problems with your Android, iOS, Mac, or any other type of application is the Build Log. Build Logs are also extremely useful to pass along to Xamarin when things go wrong with your build.

Enabling Diagnostic-Level Verbosity in Your Build Logs

To change the level of verboseness in your Build Logs, you'll need to open your Xamarin Studio Preferences dialog. On Mac, you can find this dialog by opening the Xamarin Studio menu and selecting the Preferences item. On Windows, you'll need to go to the Tools menu and select the Options item.

Once the dialog appears, navigate to the Build panel of the Projects section and you should see a Log verbosity setting. The log verbosity drop-down menu offers a number of possible verbosity levels, including Diagnostic (which is the most verbose).

Build Log Verbosity

Where To Find Your Build Log

You can find the Build Log for your project in the Errors output pad located at the bottom right of your Xamarin Studio IDE window (just below your Text Editor view):

Error Pad Location

Note: If you do not see the Errors button, then it might have been closed. To re-enable it, go to the View menu, navigate down to the Pads sub-menu and then select Errors.

Clicking the Errors button will display the Error Pad which contains the Build Log as well as the list of errors and warnings that occurred while building your project.

Build Log

Note: You can easily copy the entire Build Log by using the Command-A shortcut to select all text and then using Command-C to copy the Build Log to your clipboard.

iOS USB remoting

$
0
0

Anyone got this to work? Seems from this blog post that it should be possible https://blog.xamarin.com/live-from-evolve-new-xamarin-previews/

I have a remote Mac and a local iPad. I have the latest Xamarin alpha releases on both ends (local Win10 PC, remote Mac), the new Visual Studio simulator seems to be working, but the Visual Studio does not see my iPad.

Are there any special steps I need to take to get this to work?

IOS Release build in Visual Studio shows error "Debug is not enabled in the current configuration."

$
0
0

Hi all,

Since a few days (I think since last updates of Xamarin.Forms), I am getting an error message when I try to do a Release build of my IOS app. The message says: "Debug is not enabled in the current configuration. Please Start Without Debugging or change it in Properties -> iOS Build."

A screenshot of the error message:

So I took a look at the properties, but I did not understand what I had to change. As far as I know I did not change anything in the properties.

Also a screenshot of the properties of the project:

Setup information:

  • MacBook with Parallels, running Windows 8.1
  • Visual Studio 2013
  • Project was previous created in Xamarin.Forms 1.2.3 and updated to 1.3.1 last week.

Does anyone know how to resolve this problem?


DJTTBax - Video Games Background Sound

$
0
0

Hi All,
DJ TTBax is an Video Games Background Sound maker.below is where you can get the sound collections for your video games background.
http://goo.gl/AhjNm4
Best Regards

ListView issues

$
0
0

Hi all,

I am really struggling with Xamarin Forms specifically the ListView, all was working about a month ago, now its not, there is so many issues, I fix one then another appears, First I would like a proper full example of an ObservableCollection/ListView where the list is properly refreshed, I see so many examples all slightly different what is best practice please someone show me an example.

Here is all the different ways I am seeing.

  1. I have seen the use of Device.BeginInvokeOnMainThread used to wrap round the updating code I get it push the updates on the UI thread, is it really required because in my testing the code crashes just as much with or without it?

  2. lstJob.BeginRefresh () and lstJob.EndRefresh () are these required?, back in the day you did this stuff in vb to batch all your UI updates into a single update rather than loads of little incremental updates.

  3. Setting item source to null before repopulation e.g. lstJob.ItemsSource = null then lstJob.ItemsSource = jobList.

  4. Do you set the DataTemplate once or every time to refresh e.g. lstJob.ItemTemplate = new DataTemplate (typeof (jobCell))?

I am getting untrappable errors with the very latest stable Xamarin.Forms 2.5.0.121934, app just disappears from the screen on both devices and simulators, one pretty significant issue is if you have a ViewCell and I am using AbsoluteLayout.Children.Add and add a label that has Text = null this totally closes the app with an untrappable error, ok I should make sure that everything is initialised but I would expect a trappable error that I can look at. so for example

protected override void OnBindingContextChanged () {
base.OnBindingContextChanged ();
if (BindingContext == null) {
return;
}
var absoluteLayout = new AbsoluteLayout {
};
tblJobs c = (tblJobs)BindingContext;
var netAmount = new Label {
VerticalTextAlignment = TextAlignment.Center,
HorizontalTextAlignment = TextAlignment.End,
FontSize = Core.Instance.CellTextFontSize + Core.Instance.TextSize,
FontAttributes = FontAttributes.Bold,
TextColor = Color.Black,
};
absoluteLayout.Children.Add (netAmount, new Rectangle (1,1,100,100));
View = absoluteLayout;
}

Will produce a hard crash on my devices and simulators, just throwing in netAmount.Text = ""; solves some of those issues, this should be trappable.

Other errors that are trappable are things like when I am refreshing the ListView I get this error every now an again.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Any clarification on these would be great.

Thanks

Alex

Xamarin.iOS Designer not loading

$
0
0

The iOS designer no longer loads any xib or storyboard files for any project. It is stuck with the progress bar working indefinitely. My setup:
1. Windows 7 and Visual Studio 2017 Enterprise Version 15.4.5
2. Xamarin 4.7.10.38, Xamarin.iOS 11.3.0.47
3. Mac OS 10.13.1
4. XCode 9.1

What I have tried:
1. Restarting both machines
2. Cleaning (physically removing all bin and obj folders) and rebuilding
3. Deleting username/Library/Caches/Xamarin/XMA on the Mac and username\AppData\Local\Temp\Xamarin\XMA on the PC.

As of last week it was working fine and now it's broken. The only thing I'm aware of changing was the Mac installed a security update and rebooted. Also worth noting: the designer works fine in VS Community on the Mac, and on a different PC with Windows 10 and VS 2017.

Java.Interop.IJavaPeerable error

$
0
0

Hi all;
Any idea how to get rid of this error :( , I get this when I run my PCL project in iPAD air 2 ?

Severity Code Description Project File Line Suppression State Tool
Error Failed to resolve "Java.Interop.IJavaPeerable" reference from "Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065" App1.iOS C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets 777

How to link my application with an online database for eg SQL database

$
0
0

How to link my application with an online database for eg SQL database

Issue of FCM Notification

$
0
0

hello, i am trying first time for fcm notification
and when adding code to the top of the OnCreate method to verify that google-services.json

Log.Debug(TAG, "google app id: " + GetString(Resource.String.google_app_id);

i dont understand where to declare google_app_id
whether property or else
so please suggest me what to do

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?


Error: Activity class {MainActivity} does not exist

$
0
0

I have an app that worked fine -- deployed to both iOS and Android without issues -- prior to the Xamarin-to-VS4Mac upgrade. I hadn't done any mobile development since going to VS4Mac but now trying to run this it won't deploy to Android; still works on iOS. The message "Error: Activity class {<app_identifier/.MainActivity} does not exist". Yet, clearly, there is a MainActivity -- the same one that worked fine when I last ran the app before the VS4Mac upgrade.

Other articles I've found relating to this error indicate it is an issue deploying. I'm deploying to an actual phone (Samsung S7) and I see the message "Deploying to device..." for a few seconds but then it dies with the error message. Checking the phone, the app is not found anywhere. Tried the same thing with an emulator and got the same results.

BTW: I also found that none of my pre-existing emulator devices would work and had to rebuild all of them following the upgrade. Not sure that is related but it seems indicative of something.

Correct XAML pattern to bind element to BindingContext property ('x:Name' binds to page not context)

$
0
0

Hi, I'm new to Xamarin, but I've already built a few pages and have got most of the binding working flawlessly.
I am, however, having an issue figuring out the proper way to bind an element in XAML (a Map to be precise) to a child property of the BindingContext (a ViewModel). I see that the "x:Name" attribute will bind it to a property of the page class, but not the context. All the other binding examples affect values of an element, but not the element object itself.
Is there a way to do this cleanly, or do I have to do what I'm doing now where the page class passes the element (Map) along into the ViewContext manually at startup?

Allow files with custom extension to be picked up by document picker

$
0
0

I have implemented a document picker and trying to pick a file from iCloud Drive or File system. But, the file appears hazed i.e. it couldn't be picked. The file is a simple text file with 'cbz' extension(requirement of the app).
I followed below link but didn't get it working.

developer.apple.com/library/content/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_declare/understand_utis_declare.html

Can anyone point me in the right direction?

Show iframe video in full screen using Forms CustomRenderer webview on Android

$
0
0

In a Forms app we use a custom WebViewRenderer in the .Droid project to display html that contains videos embedded in <iframe>.

I'm having trouble making these videos go into full screen when the user pushes the button to toggle full screen in the video player.

I'm trying to use WebChromeClient, as per Xamarin's WebView full screen advise to toggle full screen mode. However, I'm not sure how to go about this. I have tried to port a Java implementation of WebChromeClient but I just get a blank screen after OnShowCustomView(View view, ICustomViewCallback callback) has finished executing.

Here's the code (I think is relevant), let me know if I'm missing important pieces.

CustomRenderer for WebView:

 public class MyWebViewRenderer : WebViewRenderer
    {
        protected override void OnElementChanged(ElementChangedEventArgs<Xamarin.Forms.WebView> e)
        {
            base.OnElementChanged(e);

                        var activity = this.Context as Activity;
                        var view = activity.LayoutInflater.Inflate(Resource.Layout.fullScreenVideoLayouts, this, false);
                        ViewGroup videoViewLayout = (ViewGroup) view.FindViewById(Resource.Id.videoLayout);
                        View nonVideoLayout = view.FindViewById(Resource.Id.nonVideoLayout);

                        control.SetWebChromeClient( new WebViewWebChromeClient(nonVideoLayout, videoViewLayout));
            }
        }

Custom VideoEnabledWebChromeClient:

 private class WebViewWebChromeClient : WebChromeClient
    {
        private View _activityNonVideoView;
        private ViewGroup _activityVideoView;
        private bool _isVideoFullscreen; // Indicates if the video is being displayed using a custom view (typically full-screen)
        private FrameLayout _videoViewContainer;
        private ICustomViewCallback _videoViewCallback;

        public WebViewWebChromeClient() { }

        public WebViewWebChromeClient(View view, ViewGroup formsViewGroup)
        {
            this._activityNonVideoView = view;
            this._activityVideoView = formsViewGroup;
        }

        public override void OnShowCustomView(View view, ICustomViewCallback callback)
        {
            base.OnShowCustomView(view, callback);

            FrameLayout frameLayout = view as FrameLayout;

            _isVideoFullscreen = true;
            _videoViewContainer = frameLayout;
            _videoViewCallback = callback;

            // Hide the non-video view, add the video view, and show it
            _activityNonVideoView.Visibility = ViewStates.Invisible;
            _activityVideoView.AddView(_videoViewContainer, new ViewGroup.LayoutParams(LayoutParams.MatchParent, LayoutParams.MatchParent));
            _activityVideoView.Visibility = ViewStates.Visible;
         }

        public override void OnHideCustomView()
        {
            base.OnHideCustomView();

            if (_isVideoFullscreen)
            {
                // Hide the video view, remove it, and show the non-video view
                _activityVideoView.Visibility = ViewStates.Invisible;
                _activityVideoView.RemoveView(_videoViewContainer);
                _activityNonVideoView.Visibility = ViewStates.Visible;

                if (_videoViewCallback != null)
                {
                    _videoViewCallback.OnCustomViewHidden();
                }

                _isVideoFullscreen = false;
                _videoViewContainer = null;
                _videoViewCallback = null;
            }
        }
    }

Inflated .axml file (ported from original):

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

  <!-- View that will be hidden when video goes fullscreen -->
    <RelativeLayout
        android:id="@+id/nonVideoLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <!-- View where the video will be shown when video goes fullscreen -->
    <RelativeLayout
        android:id="@+id/videoLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/> >
</RelativeLayout>

I am very new to Xamarin and Android development so I might be going about this all wrong. Please let me know if there are other ways of handling this much easier. I'm forced to use this setup with WebView and videos in iframe's but other things I'm not aware of might be possible to change. Any help is much appreciated.

Can't get a return value from app.Invoke() in Xamarin.iOS

$
0
0

Folks,
I have a backdoor in my iOS app which looks like this:

[Export("myBackdoor:")]
public NSString MyBackdoor(NSString value){
    return new NSSString("Backdoor called");
}

In the app.Repl() for Xamarin.UiTest, when I say

 >>>  app.Invoke("myBackdoor:", "my param")
[

]

In Android, I have

[Export("MyBackdoor")]
public string MyBackdoor(){
    return "Backdoor called";
}

And in Repl:

>>> app.Invoke("myBackdoor")
"Backdoor called"

i.e. Android returns the value and iOS doesn't.

anyone can help, please?

Viewing all 204402 articles
Browse latest View live


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