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

  • SEARCH
  • Home
  • 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 8666131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:39:08+00:00 2026-06-12T17:39:08+00:00

I am writing an Android app where I am trying to run the Facebook.authorize

  • 0

I am writing an Android app where I am trying to run the Facebook.authorize function. This function takes the following arguments:

Facebook.authorize(Activity, DialogListener());

Now, when I make this call in a static function, I tried passing a “Context” variable in the call like this:

public static void dummyFunction(Context context)
{
    Facebook.authorize(context, new DialogListener(){});
}

And I make the call like so:

dummyfunction(this);

When I do all of that, I get the error:

The function Facebook.authorize(Context, DialogListener) is not applicable for the arguments Facebook.authorize(Activity, Dialoglistener).

Please tell me how I can pass a static “Activity” variable in this case.

  • 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-12T17:39:09+00:00Added an answer on June 12, 2026 at 5:39 pm

    Have you tried

    public static void dummyFunction(Activity activity)
    {
        Facebook.authorize(activity, new DialogListener(){});
    }
    

    and calling it

    dummy(this);
    

    ?

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

Sidebar

Related Questions

Hurro! I'm trying my hand at writing my first Android app, and I've hit
I am writing an app for android and i am trying to have part
I'm trying to test an Android app following the instructions here: http://www.jetbrains.com/idea/webhelp/testing-android-applications.html and here
I am writing a service for my Android app and I am trying to
Trying to run my Android App and Eclipse (in Windows 7) is throwing up
I'm writing an Android App and I'm trying to choose which compatibility library to
Im writing an android app that connects to my own Jersey rest client. HTTP
I'm writing an android app and I need to read several files from several
I am currently writing an Android app that, among other things, uses text information
I'm writing an Android app where users can upload video to Youtube. I'd like

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.