项目作者: mcsong

项目描述 :
Android AppStore library for Play, Amazon, and OneStore(one of the korean appstore) app store
高级语言: Java
项目地址: git://github.com/mcsong/AppStoreLibrary.git
创建时间: 2015-04-08T04:26:18Z
项目社区:https://github.com/mcsong/AppStoreLibrary

开源协议:

下载


AppStore Library

Release Android Arsenal


Buy Me a Coffee at ko-fi.com

Overview

This library makes easy to use the AppStore app’s features.

Features

  • Detect a store app is installed or not.
  • Open app via store app.
  • Search apps with publisher via store app.
  • Search apps within store app.

Supported AppStore apps

  • Play Store
  • Amazon AppStore
  • OneStore

Gradle & Maven

Gradle

  1. dependencies {
  2. implementation 'net.sjava:appstore:1.1.0'
  3. }

Maven

  1. <dependency>
  2. <groupId>net.sjava</groupId>
  3. <artifactId>appstore</artifactId>
  4. <version>1.1.0</version>
  5. </dependency>

Usage

  1. private void initPlayAppStore() {
  2. Button btn01 = findViewById(R.id.play_button_01);
  3. Button btn02 = findViewById(R.id.play_button_02);
  4. Button btn03 = findViewById(R.id.play_button_03);
  5. Button btn04 = findViewById(R.id.play_button_04);
  6. btn01.setOnClickListener(new View.OnClickListener() {
  7. @Override
  8. public void onClick(View v) {
  9. appStore = PlayAppStore.newInstance();
  10. Toast.makeText(ctx, "isInstalled : " + appStore.isInstalled(ctx), Toast.LENGTH_SHORT).show();
  11. }
  12. });
  13. btn02.setOnClickListener(new View.OnClickListener() {
  14. @Override
  15. public void onClick(View v) {
  16. appStore = PlayAppStore.newInstance();
  17. appStore.openApp(ctx, "com.google.android.gm");
  18. }
  19. });
  20. btn03.setOnClickListener(new View.OnClickListener() {
  21. @Override
  22. public void onClick(View v) {
  23. publisherAppOpener = PlayAppStore.newInstance();
  24. publisherAppOpener.openPublisherApps(ctx, "Google Inc.");
  25. }
  26. });
  27. btn04.setOnClickListener(new View.OnClickListener() {
  28. @Override
  29. public void onClick(View v) {
  30. appStore = PlayAppStore.newInstance();
  31. appStore.searchApp(ctx, "gmail");
  32. }
  33. });
  34. }

License

Copyright 2020 MooChan(Justin) Song

Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  1. http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Follow me

Twitter Follow