2017-09-14 1 views
0

내 탐색 창에 '공유 앱'이라는 항목이 있습니다. 사용자가 다른 사용자에게 애플리케이션 링크를 공유하는 데 사용할 수 있습니다. 제 질문은, 먼저 Google Play에 업로드하지 않고도 링크를 얻을 수 있습니까? 이 기능을 적용하려면 다른 앱을 다시 업로드 할 생각은 없습니다. 나는 의미있는 해결책없이이 대답을 찾으려고 노력했다.업로드하기 전에 Google Play에서 애플리케이션 링크 가져 오기

try { 
       Intent i = new Intent(Intent.ACTION_SEND); 
       i.setType("text/plain"); 
       i.putExtra(Intent.EXTRA_SUBJECT, "My application name"); 
       String sAux = "\nLet me recommend you this application\n\n"; 
       sAux = sAux + "https://play.google.com/store/apps/details?id=com.app.ben.example \n\n"; 
       i.putExtra(Intent.EXTRA_TEXT, sAux); 
       startActivity(Intent.createChooser(i, "choose one")); 
      } catch(Exception e) { 
       e.toString(); 
      } 

답변

0

플레이 스토어 링크가 결정적입니다. 귀하의 링크는 다음과 같아야합니다

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

편집 는 패키지의 이름을 알고 매니페스트 태그에서 패키지를 검색하려면 :

+0

는 u는이 같은 뜻 https://developer.android.com/guide/topics/manifest/manifest-element.html? "https://play.google.com/store/apps/details?id=com.example.leavenotes"?? – Benfight

+0

예 이런 식으로. 링크 끝에는 22 %가 있습니다. 길잃은 따옴표? 그것이 의도적이지 않기를 바랍니다. –

+0

따옴표 다음에 오는 것을 의미합니까? – Benfight

관련 문제