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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:30:57+00:00 2026-05-23T03:30:57+00:00

i have created a login page for some application in android and i want

  • 0

i have created a login page for some application in android and i want to one thumbnail containing facebook icon and if i click on that thumbnail small dialog box should appear asking username and password for facebook.

this is my code:

package com.conn;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.InputFilter;
import android.text.method.PasswordTransformationMethod;
import android.util.Log;
import android.view.Display;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TextView;

public class j_loginscreen extends Activity
{

    int int_scr_wd;

public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
try
    {
        setTitle("sourabh");
        TableLayout tlt=new TableLayout(this);
        Display display = getWindowManager().getDefaultDisplay();
        int_scr_wd= display.getWidth();
        LinearLayout.LayoutParams lpm = new     LinearLayout.LayoutParams(int_scr_wd,     LayoutParams.FILL_PARENT);

        TableRow tr=new TableRow(this);
        TableLayout tlt1=new TableLayout(this);
        TextView tv=new TextView(this);
        ImageView iv=new ImageView(this);
        iv.setImageResource(R.drawable.login);
        tv.setText("LOGIN");
        tlt1.addView(tv);
        tlt1.addView(iv);

        TableLayout _tlt_login=new TableLayout(this);
        TextView _tv_un_signin = new TextView(this);
        EditText _et_un_signin = new EditText(this);
        TextView _tv_ps_signin = new TextView(this);
        EditText _et_ps_signin = new EditText(this);
        Button _btn_signin=new Button(this);
        Button _btn_frgt=new Button(this);
        _tv_un_signin.setText("USERNAME");
        _tv_ps_signin.setText("PASSWORD");
        _et_un_signin.setText("Enter Username Here");
        _et_ps_signin.setText("Enter Password Here");
        _et_un_signin.setSingleLine();
        _et_ps_signin.setSingleLine();
        _et_ps_signin.setTransformationMethod(new PasswordTransformationMethod());

        int maxLength = 12;
        InputFilter[] FilterArray = new InputFilter[1];
        FilterArray[0] = new InputFilter.LengthFilter(maxLength);
        _et_ps_signin.setFilters(FilterArray);



//          _btn_signin.setOnClickListener(new View.OnClickListener()
//          {
//              public void onClick(View v)
//              {
//                  Facebook facebookClient = new Facebook();
//                  facebookClient.authorize(this, "[APP ID]", new String[]     {"publish_stream", "read_stream", "offline_access"}, this);
//                  Bundle parameters = new Bundle();
//                  parameters.putString("message", "Test Photo");
//                  parameters.putString("attachment", "{\"name\":\"My Test     Image\","
//                  +"\"href\":\""+"http://www.google.com"+"\","
//                  +"\"media\":[{\"type\":\"image\",\"src    \":\""+"http://www.google.com/logos/mucha10-hp.jpg"+"\",\"href\":\""+"http://www.google.com"+"\"}]"
//                  +"}");
//                  facebookClient.dialog(this, "stream.publish", parameters,    this);
//                  
//              }
//          });



        _btn_signin.setText("SIGN IN..!!!");
        _btn_frgt.setText("Forgot Password???");
        _tlt_login.addView(_tv_un_signin);
        _tlt_login.addView(_et_un_signin);
        _tlt_login.addView(_tv_ps_signin);
        _tlt_login.addView(_et_ps_signin);
        _tlt_login.addView(_btn_signin);
//          _btn_signin.setOnClickListener(new View.OnClickListener() 
//          {
//              public void onClick(View v) 
//              {
//                  
//                  Intent browserIntent = new     Intent("android.intent.action.VIEW",Uri.parse("http://www.facebook.com")); 
//                  startActivity(browserIntent);
//              }
//          });
            _tlt_login.addView(_btn_frgt);
        tr.addView(tlt1);
        tr.addView(_tlt_login);

        tlt.addView(tr);


        setContentView(tlt);

    }

catch(Exception error)
    {
        Log.i("login error",error.getMessage());
    }
}
}

please somebody help me soon.
thanx in advance.

  • 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-05-23T03:30:58+00:00Added an answer on May 23, 2026 at 3:30 am

    I am not sure if I am missing the exact question here. I think you know how to create an image that is clickable but you want to create a Facebook login dialog yourself?

    The Facebook for Android SDK provides everything you need to work with Facebook’s API including the ability to create the login dialogs in Facebook’s own style.

    I have used this SDK and it works perfectly.
    See this link: http://developers.facebook.com/docs/guides/mobile/#android

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

Sidebar

Related Questions

I'm creating a login page. I want to create ASP.NET TextBox controls that have
I have created a user login page and am using Forms Authentication. Users are
Just starting out in asp.net. Have just created a login.aspx page in my site
I have a library that I created with some business logic that includes writing
Hi I want to create a WCF service that have login method, which is
I have a login page in a web application project: <h:form> <h:messages /> <h:inputText
i have one login.jsp web page where i have two textboxes for username and
I have created login account on my localhost\sql2008 Server (Eg. User123) Mapped to Database
I'd like to create a subset of Users that don't have a login... basically
I have created a blog application using Ruby on Rails and have just added

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.