Upload Image on Myspace
<p>hi i am developing an application that needs to upload photos on Myspace , i had used Socialauth library for Mysapce integration and i have succesfully integrated Myspace but couldn't find any method to upload photo.Can anyone suggest me a link or tutorial for uploading photo on Myspace. </p>

<p>Please suggest fo share image on myspace in android.</p>

<pre><code>public class ShareBarActivity extends Activity {

    // SocialAuth Component
    SocialAuthAdapter adapter;
    boolean status;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        // Welcome Message
        TextView textview = (TextView)findViewById(R.id.text);
        textview.setText("Welcome to SocialAuth Demo. We are sharing text SocialAuth Android by Share Bar.");

        LinearLayout bar = (LinearLayout)findViewById(R.id.linearbar);
        bar.setBackgroundResource(R.drawable.bar_gradient);

        // Add Bar to library
        adapter = new SocialAuthAdapter(new ResponseListener());

        // Add providers

        adapter.addProvider(Provider.MYSPACE, R.drawable.myspace);
        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("SocialAuth Android" + System.currentTimeMillis());    

            Toast.makeText(ShareBarActivity.this, "Message posted on " + providerName, Toast.LENGTH_SHORT).show();  

            Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.icon);





         }

         public void onError(SocialAuthError error) {
            error.printStackTrace();
            Log.d("ShareBar" , error.getMessage());
         }

         public void onCancel() {
            Log.d("ShareBar" , "Authentication Cancelled");
         }

     }
</code></pre>
