2015-08-15 2 views
7

Recentemente, Google Play consente agli sviluppatori di creare una pagina per sviluppatori.Come aprire la pagina degli sviluppatori su Google Play Store (market: //)

Ecco l'esempio: https://play.google.com/store/apps/dev?id=5700313618786177705

cerco di trovare la pagina degli sviluppatori collegamento Uri (di mercato: // ...) che posso usare, ma io non riesco a trovarlo a pagina sviluppatori Android. (http://developer.android.com/distribute/tools/promote/linking.html)

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

Aggiungo le soluzioni corrette alle vostre domande. (market: // dev. id = 5700313618786177705) non apre l'app PlayStation. –

risposta

5

Si può semplicemente chiamare mercato: // dev id = xxx es .:

market://dev?id=5700313618786177705 

Spero, questo si adatta alle vostre esigenze!

migliore, Jacko

+1

questo semplicemente non funziona – derfect

+0

Grazie, funziona! @Rayes, Funziona quando si inserisce questo come setData (Uri) in Intent – ymonaraS

+0

@Rayes: Funziona come segue: 'startActivity (nuovo Intent (Intent.ACTION_VIEW, Uri.parse (" market: // dev. Id = 5700313618786177705 "))) ' – Jacko0815

3

Questo funziona per me:

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

Utilizzando URI mercato non funziona per me.

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; 
     } 
    }