Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Update status in Social Auth share Android
    primarykey
    data
    text
    <p>I am using Social Auth Social network integration for integrating facebook, twitter and linkedin. However the Update status to post in social network sites is programicaly hardcoded.</p> <p>As i am new to android programming, will anyone help me........</p> <p>I need the code for Update status feature....for ex. When I click on facebook , it should ask me what status to update, and then post that message in respective social network </p> <p>my code is as follows</p> <pre><code> package org.brickred.socialbar; import org.brickred.socialauth.android.DialogListener; import org.brickred.socialauth.android.SocialAuthError; import org.brickred.socialauth.android.SocialAuthAdapter; import org.brickred.socialauth.android.SocialAuthAdapter.Provider; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.Toast; public class ShareBarActivity extends Activity { // SocialAuth Component SocialAuthAdapter adapter; boolean status; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); LinearLayout bar = (LinearLayout)findViewById(R.id.linearbar); // Add Bar to library adapter = new SocialAuthAdapter(new ResponseListener()); // Add providers adapter.addProvider(Provider.FACEBOOK, R.drawable.facebook); adapter.addProvider(Provider.TWITTER, R.drawable.twitter); adapter.addProvider(Provider.LINKEDIN, R.drawable.linkedin); adapter.enable(bar); // Set Size of Dialog adapter.setDialogSize(30,60); } /** * Listens Response from Library * */ private final class ResponseListener implements DialogListener { public void onComplete(Bundle values) { // Variable to receive message status Log.d("ShareBar" , "Authentication Successful"); // Get name of provider after authentication String providerName = values.getString(SocialAuthAdapter.PROVIDER); Log.d("ShareBar", "Provider Name = " + providerName); // Please avoid sending duplicate message. Social Media Providers block duplicate messages. adapter.updateStatus("test API"); Toast.makeText(ShareBarActivity.this, "Message posted on " + providerName, Toast.LENGTH_SHORT).show(); } public void onError(SocialAuthError error) { error.printStackTrace(); Log.d("ShareBar" , error.getMessage()); } public void onCancel() { Log.d("ShareBar" , "Authentication Cancelled"); } } </code></pre> <p>}</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload