So erhalten Sie Rückrufe in der Instagram -FreigabeAndroid

Forum für diejenigen, die für Android programmieren
Anonymous
 So erhalten Sie Rückrufe in der Instagram -Freigabe

Post by Anonymous »

Ich versuche, meine Daten auf Instagram zu teilen, aber wenn ich meinen Inhalt auf Instagram geteilt habe. Ich habe keinen Erfolgsruf erhalten oder wenn ich nicht geteilt wird, bekomme ich auch keinen Fehler mit einem Fehler. Ich kann SDK für Instagram -Sharing sowie jede API nicht gründen. Im Folgenden habe ich meinen Code erwähnt, mit dem ich versucht habe, Inhalte auf Instagram zu teilen. < /p>

Code: Select all

    // Create the new Intent using the 'Send' action.
Intent share = new Intent(Intent.ACTION_SEND);

// Limit this call to instagram
share.setPackage("com.instagram.android");

// Set the MIME type
share.setType(type);

// Create the URI from the media
File media = new File(mediaPath);
Uri uri = Uri.fromFile(media);

// Add the URI to the Intent.
share.putExtra(Intent.EXTRA_STREAM, uri);

try {
// Fire the Intent.
startActivityForResult(share, REQUEST_CODE);
} catch(ActivityNotFoundException e) {
// instagram not installed
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post