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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:43:46+00:00 2026-06-08T12:43:46+00:00

Firstly, My app’s function is to read the article. When a user reads the

  • 0

Firstly, My app’s function is to read the article. When a user reads the article and he want to share the article to facebook or others, I cannot find link/ hyperlink from the type.

Here is my sharing function

private void shareIt() {
    Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
    sharingIntent.setType("text/plain");
    String shareBody = "Here is the share content body";
    sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject Here");
    sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
    startActivity(Intent.createChooser(sharingIntent, "Share via"));
}

The thing that i want is the share function when using computer to read the article and got the share button. In the sharing medium, it will appear as the content of the article instead of plain text.

So, how to edit the code so that i can share a link?

Do guide me on Manifest.xml, i am not sure interfilter need to add which category too.

Second, i saw the sharing list, the built-in list not so good for me because i want those those facebook, sina, twitter instead of google, gmail, bluetooth, line or messaging.

So, how to implement the list of sharing through java?

  • 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-08T12:43:48+00:00Added an answer on June 8, 2026 at 12:43 pm

    It could be like this

    sharebtn = new Custom_ButtonField(share, shareactive, shareactive) {
                protected boolean navigationClick(int status, int time) {
                    if (Config_GlobalFunction.isConnected()) {
                        String NEXT_URL = "http://www.facebook.com/connect/login_success.html";
                        String APPLICATION_ID = "153555168010272";
                        String APPLICATION_SECRET = "354f91a79c8fe5a8de9d65b55ef9aa1b";
                        String[] PERMISSIONS = Facebook.Permissions.USER_DATA_PERMISSIONS;
                        ApplicationSettings as = new ApplicationSettings(
                                NEXT_URL, APPLICATION_ID, APPLICATION_SECRET,
                                PERMISSIONS);
                        Facebook fb = Facebook.getInstance(as);
                        try {
                            User user = fb.getCurrentUser();
                            user.publishStatus(Config_GlobalFunction.sharelink
                                    + newsid);
                        } catch (FacebookException e) {
                        }
                    } else
                        Config_GlobalFunction.Message(
                                Config_GlobalFunction.nosharenews, 1);
                    return true;
                }
            };
            add(sharebtn);
    

    Precondition: you must import BB facebook sdk.

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

Sidebar

Related Questions

Firstly, I have read these: (1) http://www.gaiagps.com/news/article/iOS5%20Breaks%20Data%20Storage%20and%20Crushes%20My%20Soul (2) http://iphoneincubator.com/blog/data-management/local-file-storage-in-ios-5 (I can not submit more
Firstly sorry if this is a common question but I couldn't find anything on
It is my first time building an android app. Was wondering firstly, if there
I'm developing an Android app and I want to search for the first result
I have an app that holds a lot of pictures and when the user
i have a design issue regarding sending user data from a mobile phone app
My app's main UI is in MainWindow.xaml. Firstly - what is causing this to
Firstly, great job on B4A. I've just started, and already have a small app
I am looking into the possibility of doing some mobile app development, firstly for
Firstly, I would like to say that I have tested if my link to

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.