2015-08-15 24 views
7

Geçtiğimiz günlerde Google Play geliştiricilerin geliştirici sayfası oluşturmasına izin veriyor. https://play.google.com/store/apps/dev?id=5700313618786177705Google Play Store'da geliştirici sayfası nasıl açılır (market: //)

Ben geliştirici sayfası Uri bağlantısını bulmaya (piyasa: // ...) İşte

örnektir kullanabileceğim ama Android Geliştirici sayfasında bulamıyorum söyledi. ( http://developer.android.com/distribute/tools/promote/linking.html)

Intent intent = new Intent(Intent.ACTION_VIEW); 
intent.setData(Uri.parse("market://...")); 
startActivity(intent); 
+0

Sorularınıza doğru çözümleri ekliyorum. (market: // dev? id = 5700313618786177705), playstore uygulamasını açmıyor. –

cevap

5

Sadece piyasayı çağırabilir: // dev id = xxx ör .:

umarım
market://dev?id=5700313618786177705 

, bu uygun gerekiyor!

En

, Jacko

+1

bu sadece çalışmıyor – derfect

+0

Teşekkürler, işe yarıyor! @Rayes, Bu Intran – ymonaraS

+0

@Rayes içinde setData (Uri) olarak ayarlandığında çalışır: Bu aşağıdaki gibi çalışır: 'startActivity (yeni Niyet (Intent.ACTION_VIEW, Uri.parse (" market: // dev? Id = 5700313618786177705 "))) ' – Jacko0815

3

Bu benim için çalışıyor:

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/dev?id=7809285959465313029"))); 

benim için çalışmıyor pazar URI kullanma.

1
//Method for intent to Google playstore developer page 

private void M_Intent2developerpage() { 
     Intent intentdev = new Intent(Intent.ACTION_VIEW); 
     intentdev.setData(Uri.parse("market://search?q=pub:Google Inc.")); 
    //here Developer Name is very case-sensitive . change your developer name as shown in developers page. 
     if (!MyStartActivity(intentdev)) { 
      intentdev.setData(Uri.parse("https://play.google.com/store/apps/dev?id=5700313618786177705")); 
      if (!MyStartActivity(intentdev)) { 
       Toast.makeText(this, "Could not open Android Google PlayStore, please install the Google play app.", Toast.LENGTH_SHORT).show(); 
      } 
     } 
    } 


//Method checks if any problem when Intent 

public boolean MyStartActivity(Intent aIntent) { 
     try { 
      startActivity(aIntent); 
      return true; 
     } catch (ActivityNotFoundException e) { 
      return false; 
     } 
    } 
İlgili konular