[Android] 안드로이드 마켓 앱을 실행하는 방법

2017. 11. 13. 17:27 안드로이드/개발 TIP



안드로이드 마켓 앱을 실행하여서 개발자 앱을 링크해주는 방법입니다.



LinearLayout more_app = (LinearLayout) findViewById (R.id.layout_more_app);

        more_app.setOnClickListener(new View.OnClickListener() {

            @Override

            public void onClick(View v) {

             //Uri uri = Uri.parse("https://play.google.com/store/apps/developer?id=Wings+of+Freedom");

             Uri uri = Uri.parse("market://search?q=pub:Wings+of+Freedom");

            

             Intent it = new Intent(Intent.ACTION_VIEW, uri);

             startActivity(it);

            }

        });



https://developer.android.com/distribute/tools/promote/linking.html


For this resultUse this URI in a web page linkOr this URI in an ACTION_VIEW intent
Display the details screen for a specific applicationhttp://market.android.com/details?id=<package_name>market://details?id=<package_name>
Search for applications using a general string query.http://market.android.com/search?q=<query>market://search?q=<query>
Search for applications by publisher namehttp://market.android.com/search?q=pub:<publisher_name>market://search?q=pub:<publisher_name>