Abrir perfil de usuario de aplicaciones de Twitter desde la aplicación de Android

Soy capaz de iniciar la aplicación de Twitter (si existe en el teléfono), pero no puedo encontrar cómo mostrar automáticamente un perfil de usuario específico.

Algo así funciona para Google+:

Intent intent = new Intent(Intent.ACTION_VIEW); intent.setClassName("com.google.android.apps.plus", "com.google.android.apps.plus.phone.UrlGatewayActivity"); intent.putExtra("customAppUri", "USER_ID"); 

Aquí está la forma de Facebook:

 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://profile/USER_ID")); startActivity(intent); 

¿Debería haber el mismo tipo de solución cuando inicie la aplicación de Twitter?

 Intent intent = getPackageManager().getLaunchIntentForPackage("com.twitter.android"); intent.putExtra("WHAT_TO_PUT_HERE?", "USER_ID"); startActivity(intent); 

 try { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("twitter://user?screen_name=" + twitter_user_name))); }catch (Exception e) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com/#!/" + twitter_user_name))); } 

Esto está funcionando bien con la nueva aplicación de Twitter. La solución proporcionada por @Baptiste Costa no funcionó para mí.

 try { // Check if the Twitter app is installed on the phone. getPackageManager().getPackageInfo("com.twitter.android", 0); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setClassName("com.twitter.android", "com.twitter.android.ProfileActivity"); // Don't forget to put the "L" at the end of the id. intent.putExtra("user_id", 01234567L); startActivity(intent); } catch (NameNotFoundException e) { // If Twitter app is not installed, start browser. startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com/AndroTesteur"))); } 
  • ¿Cómo publicar mensajes en twitter con la aplicación de Android?
  • Android, ¿Cómo filtrar el intercambio social por tener sólo Facebook y Twitter?
  • La conexión de twitter falló
  • Cómo publicar un mensaje en la pared de twitter con twitter integrar la aplicación de Android
  • ¿Qué tan seguro es tener clave de consumidor de twitter y secreto codificado en la aplicación android?
  • ¿Ejemplo práctico de usar la API de Twitter en Android?
  • Teclado oculta editext en twitter integración
  • ¿Dónde puedo encontrar el código fuente para las aplicaciones de gmail, facebook y twitter para Android? ¿Son incluso de código abierto?
  • No puede abrir la URL de twitter en la vista web de android
  • Cómo aprender qué versión de la aplicación instalada mediante programación en android
  • Twitter4j TwitterStream Detener / Cerrar
  • FlipAndroid es un fan de Google para Android, Todo sobre Android Phones, Android Wear, Android Dev y Aplicaciones para Android Aplicaciones.