|
1 | | -# AppStoreLibrary |
2 | | -This is a library for Android AppStore features. |
| 1 | +## AppStore Library |
3 | 2 |
|
4 | | -# Gradle & Maven |
5 | | -dependencies { |
6 | | - compile 'net.sjava.appstore:library:1.0.1@aar' |
7 | | -} |
| 3 | +This library make easy to use AppStore app' features. |
8 | 4 |
|
9 | | -<dependency> |
10 | | - <groupId>net.sjava.appstore</groupId> |
11 | | - <artifactId>library</artifactId> |
12 | | - <version>1.0.1</version> |
13 | | -</dependency> |
| 5 | + - Play AppStore |
| 6 | + - Amazon AppStore |
| 7 | + - T Store |
| 8 | + - Naver AppStore |
14 | 9 |
|
| 10 | +## Gradle & Maven |
| 11 | +Gradle |
| 12 | +```groovy |
| 13 | + dependencies { |
| 14 | + compile 'net.sjava.appstore:library:1.0.1@aar' |
| 15 | + } |
| 16 | +``` |
15 | 17 |
|
16 | | -# Licence: |
| 18 | +Maven |
| 19 | +```xml |
| 20 | + <dependency> |
| 21 | + <groupId>net.sjava.appstore</groupId> |
| 22 | + <artifactId>library</artifactId> |
| 23 | + <version>1.0.1</version> |
| 24 | + </dependency> |
| 25 | +``` |
| 26 | +## Usage |
| 27 | + |
| 28 | +```java |
| 29 | + private void initPlayAppStore() { |
| 30 | + Button btn01 = (Button)findViewById(R.id.play_button_01); |
| 31 | + Button btn02 = (Button)findViewById(R.id.play_button_02); |
| 32 | + Button btn03 = (Button)findViewById(R.id.play_button_03); |
| 33 | + Button btn04 = (Button)findViewById(R.id.play_button_04); |
| 34 | + |
| 35 | + btn01.setOnClickListener(new View.OnClickListener() { |
| 36 | + @Override |
| 37 | + public void onClick(View v) { |
| 38 | + appStore = PlayAppStore.newInstance(); |
| 39 | + Toast.makeText(ctx, "설치 여부 : " + appStore.isInstalled(ctx), Toast.LENGTH_SHORT).show(); |
| 40 | + } |
| 41 | + }); |
| 42 | + |
| 43 | + btn02.setOnClickListener(new View.OnClickListener() { |
| 44 | + @Override |
| 45 | + public void onClick(View v) { |
| 46 | + appStore = PlayAppStore.newInstance(); |
| 47 | + appStore.openApp(ctx, "com.google.android.gm"); |
| 48 | + } |
| 49 | + }); |
| 50 | + |
| 51 | + btn03.setOnClickListener(new View.OnClickListener() { |
| 52 | + @Override |
| 53 | + public void onClick(View v) { |
| 54 | + publisherAppOpener = PlayAppStore.newInstance(); |
| 55 | + publisherAppOpener.openPublisherApps(ctx, "Google Inc."); |
| 56 | + } |
| 57 | + }); |
| 58 | + |
| 59 | + btn04.setOnClickListener(new View.OnClickListener() { |
| 60 | + @Override |
| 61 | + public void onClick(View v) { |
| 62 | + appStore = PlayAppStore.newInstance(); |
| 63 | + appStore.searchApp(ctx, "gmail"); |
| 64 | + } |
| 65 | + }); |
| 66 | + } |
| 67 | +``` |
| 68 | + |
| 69 | +## License |
17 | 70 |
|
18 | 71 | Copyright 2015 Justin Song |
19 | 72 |
|
20 | 73 | Licensed under the Apache License, Version 2.0 (the "License"); |
21 | 74 | you may not use this file except in compliance with the License. |
22 | 75 | You may obtain a copy of the License at |
23 | 76 |
|
24 | | - http://www.apache.org/licenses/LICENSE-2.0 |
| 77 | + http://www.apache.org/licenses/LICENSE-2.0 |
25 | 78 |
|
26 | 79 | Unless required by applicable law or agreed to in writing, software |
27 | 80 | distributed under the License is distributed on an "AS IS" BASIS, |
28 | 81 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
29 | 82 | See the License for the specific language governing permissions and |
30 | 83 | limitations under the License. |
| 84 | + |
0 commit comments