현재 일부 텍스트를 공유하기 위해 Android 앱에서 인기있는 플랫폼을 직접 선택하는 중입니다. 현재 LinkedIn에서 직접적인 의도를 얻으려고합니다.인 텐트에서 링크드 인으로 공유 할 클래스 이름
shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setClassName("com.twitter.android",
"com.twitter.android.PostActivity");
shareIntent.setType("text/*");
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, text);
startActivityForResult(shareIntent, 9);
내가 지금 필요한 것은 링크드 인에 대해 동일합니다 :
나는 현재과 같이 트위터에서 일하는 직접 의도를 가지고있다. 지금까지 나는 인터넷에서 검색 한 후 LinkedIn의 기본 패키지를 알고 있습니다. 그게 "com.linkedin.android"(잘못된 경우 나 수정하십시오). 그러나 내가 놓친 핵심 부분은 LinkedIn 앱에서 공유를 다루는 클래스의 이름입니다. 나는. com.linkedin.android.?
위 코드는 LinkedIn 앱의 최신 업데이트에서 더 이상 작동하지 않습니다 (April 19, 2013 업데이트). 위의 프로세스가 실패하고 앱이 강제 종료됩니다. 그래서 나는 PackageManager로부터 정보를 얻기 위해 코드를 변경했다. 이 게시물을 참조하십시오 : http://stackoverflow.com/questions/9730243/android-how-to-filter-specific-apps-for-action-send-intent –
앱을로드하고 사용자를 보낼 수있는 방법이 있습니까? 직접 내 프로필에? – Si8
@RichardLewin, 공유 앱 목록에서 linkedIn 아이콘을 클릭 한 후 Android Gallery 앱으로 LinkedIn Share 대화 상자를 열 수있는 방법이 있습니까?, 정렬 방식으로 Linkedin의 shareIntent 구현 방법. – TejaDroid