2016-12-30 7 views
0

다음과 같은 방법이 있습니다. 기기의 모든 앱을 가져와 행 아웃, Skype, Viber, WhatsApp 등의 이름으로 특정 앱을 찾습니다. 모두 4 개가 Android 4.4.4를 실행하는 Motorola Droid MAXX에 설치됩니다. 및 5.0.2 삼성 SM-T530NU.행 아웃을 찾을 수 없습니다.

두 기기 모두 행 아웃을 찾지 못했습니다. 이게 왜 어떤 아이디어일까요?

출력 :

com.skype.raider/.Main m} = 0x108000 텐트 필터 : NULL
com.viber.voip/.WelcomeActivity m} = 0x108000 텐트 필터 : NULL
COM. whatsapp/.Main m = 0x108000} 인 텐트 필터 : null

if 조건을 제거하고 모든 앱을 나열하고 손으로 검색했습니다 (말하자면). 내가 수다방에 대해 아무것도 보지 못했다, 정지, 호, ... 행 아웃에 대한

public static List<ResolveInfo> getAllInstalledApps(Context context) { 

     Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); 
     mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); 
     List<ResolveInfo> appsList = context.getPackageManager().queryIntentActivities(mainIntent, 0); 

     for (ResolveInfo resolveInfo : appsList) { 
      String infoString = resolveInfo.toString(); 
      if (infoString.contains("hangouts") || 
       infoString.contains("skype") || 
       infoString.contains("viber") || 
       infoString.contains("whatsapp")) { 

       Log.i("getAllInstalledApps", resolveInfo.toString() + " Intent filter: " + resolveInfo.filter); 
      } 
     } 
     return appsList; 
    } 
+0

사실 후주의 사항 : ([구글 행 아웃에서 더 이상 지원되지 않습니다] https://developers.google.com/+/hangouts/support-faq) –

답변

2

응용 패키지 이름은 실제로 com.google.android.talk입니다. 당신은 그것을 찾고 있어야합니다. 패키지 이름을 찾는 팁은 제품 페이지의 URL로 이동하는 것입니다. 이 URL은 URL에 id 쿼리의 일부입니다. 예를 들어, 구글 행 아웃에 대한 URL은 다음과 같습니다

https://play.google.com/store/apps/details?id=com.google.android.talk