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 8346641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:05:11+00:00 2026-06-09T07:05:11+00:00

I was browsing through a Repo for a Reddit app on Github. Now, For

  • 0

I was browsing through a Repo for a Reddit app on Github. Now, For the link between between the dialog and the Task they choose to add:

public abstract void onLoginChosen(String user, String password);

They then have a Task class that handles the data and makes and receives the input and then parses it to the UI.

I don’t understand, how does the abstraction in this constructor then go onto to the Task.

There task doesn’t even extend this dialog task.

public class LoginTask extends AsyncTask<Void, Void, Boolean> {

    private static final String TAG = "LoginTask";

    protected String mUsername;
    private String mPassword;
    protected String mUserError = null;

    private RedditSettings mSettings;
    private HttpClient mClient;
    private Context mContext;

    protected LoginTask(String username, String password, RedditSettings settings, HttpClient client, Context context) {
        mUsername = username;
        mPassword = password;
        mSettings = settings;
        mClient = client;
        mContext = context;
    }

    @Override
    public Boolean doInBackground(Void... v) {
        return doLogin(mUsername, mPassword, mSettings, mClient, mContext);
    }

How does the data go from one class to another in this example? I’m stumped and it’s making this part to understand.

Repo

  • 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-09T07:05:12+00:00Added an answer on June 9, 2026 at 7:05 am

    There’s an implementation in the Activity here:

    https://github.com/talklittle/reddit-is-fun/blob/master/src/com/andrewshu/android/reddit/threads/ThreadsListActivity.java#L1220

    and other activities too, where the login dialog is able to be shown.

    Side note: that is very old code, and the latest closed source version of the app avoids things like that.

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

Sidebar

Related Questions

Can someone explain why ashmem was created? I'm browsing through mm/ashmem.c right now. As
I was browsing through Mirosoft training website and found that they offer quite a
When browsing through Facebook pages the header and fixed footer section remain visible between
I have been browsing through Google for various explanations but I STILL couldn't figure
As I'm browsing through a Rails source code, it contains the line: @@autoloads =
I was browsing through Windows's Platform SDK header files (what a life, right?), and
I've been browsing through all of the CSS related cross-browser questions trying to troubleshoot
I've been browsing through the web but haven't been able to find any concrete
Question says it all. I tried browsing through the latest tag but could not
Possible Duplicate: Why split the <script> tag when writing it with document.write()? Browsing through

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.