Android Question instagram user profile intent

Discussion in 'Android Questions' started by ™AsAs4242, Jun 24, 2015.

  1. ™AsAs4242

    ™AsAs4242 Member Licensed User

  2. Ohanian

    Ohanian Active Member Licensed User

    Hi,

    Code:
    Sub Process_Globals

    Private NativeMe As JavaObject

    End Sub

    Sub Activity_Create(FirstTime As Boolean)
    If FirstTime Then
     NativeMe.InitializeContext
    End If

    NativeMe.RunMethod(
    "OpenInsta"Null)

    End Sub

    #If JAVA

    import android.content.Intent;
    import android.app.admin.DevicePolicyManager;
    import android.content.ComponentName;
    import android.content.Context;
    import android.content.pm.PackageManager;
    import android.net.Uri;

    public void OpenInsta() {
    Intent insta_intent = getPackageManager().getLaunchIntentForPackage("com.instagram.android");
    insta_intent.setComponent(new ComponentName("com.instagram.android", "com.instagram.android.activity.UrlHandlerActivity"));
    insta_intent.setData(Uri.parse("http://instagram.com/p/gjfLqSBQTJ/"));
    startActivity(insta_intent);
    }
    #End If
    play with this line for page/profile access :

    Code:
    insta_intent.setData(Uri.parse("http://instagram.com/p/gjfLqSBQTJ/"));
     
    Blue.Sky and ™AsAs4242 like this.
Loading...