Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8883131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:44:31+00:00 2026-06-14T20:44:31+00:00

I am using MonoDevelop for Android and would please like some help with creating

  • 0

I am using MonoDevelop for Android and would please like some help with creating a custom toast.

Here is my code:

    static public void DisplayCustomToast (Context displayContext, string stringText, int offsetX, int offsetY)
    {
        Toast toast = new Toast(displayContext);
        toast.SetText(stringText);
        toast.SetGravity (GravityFlags.Top, offsetX, offsetY);
        //toast.Show;
    }

This code is not working. It Builds successfully, yet the application doesn’t start properly.

If I uncomment the ‘toast.show’, get the following error:

Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement.

May I please have some help in getting this code working?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:44:32+00:00Added an answer on June 14, 2026 at 8:44 pm

    The syntax toast.Show implies that Show is either a property or a field. That’s why the call toast.Show is illegal.

    However, I believe Show is a method. So you must invoke it this way:

    toast.Show();

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Mono Develop For Android and would like some help with using
Using Mono for Android, Monodevelop 2.8.6.5 Deploying to real device (like to emulator too)
I'm new to Mono for Android (using MonoDevelop) and Android development in general. I
I've been using MonoDevelop and Make to execute some build taks on a C
I'm using Mono for Android (C#) and WebClient DownloadString to get source code of
I'm trying to write a custom LinkedList class in C# using monoDevelop on Linux,
So i'm using MonoDevelop (for some MonoTouch R&D) and have a Unit Testing class
I'm using MonoDevelop (Android C#). Is there a way to get values from a
I am using MonoDevelop for Android and i am trying to create a Drawable
I am using MonoDevelop for Android with Google maps and overlays. My question is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.