Commit 79b86efd3ca598720f8e9d608db0fe3d4659da5b
1 parent
f8e87ba3f6
Exists in
master
and in
1 other branch
追加判断网络是否可用等权限
Showing 15 changed files with 9 additions and 2 deletions Inline Diff
- android/PromoterDemo/bin/PromoterDemo.apk
- android/PromoterDemo/bin/classes.dex
- android/PromoterDemo/bin/classes/com/example/promoterdemo/MainActivity.class
- android/PromoterDemo/bin/dexedLibs/PromoterSdk_proguard-63e08a920939c1c1ad99b9ddae01f591.jar
- android/PromoterDemo/bin/dexedLibs/android-support-v4-2b8aed04d68815795a4b53e70b49f1a2.jar
- android/PromoterDemo/bin/dexedLibs/promoterrelease-524f5906c8683bbcd3d3ad4807094566.jar
- android/PromoterDemo/bin/res/crunch/drawable-hdpi/ic_launcher.png
- android/PromoterDemo/bin/res/crunch/drawable-mdpi/ic_launcher.png
- android/PromoterDemo/bin/res/crunch/drawable-xhdpi/ic_launcher.png
- android/PromoterDemo/bin/res/crunch/drawable-xxhdpi/ic_launcher.png
- android/PromoterDemo/bin/resources.ap_
- android/PromoterDemo/src/com/example/promoterdemo/MainActivity.java
- android/PromoterRelease/bin/jarlist.cache
- doc/\346\216\250\345\271\277\345\221\230\351\241\271\347\233\256Sdk for android\344\275\277\347\224\250\350\257\264\346\230\216.md
- doc/\346\216\250\345\271\277\345\221\230\351\241\271\347\233\256Sdk for android\344\275\277\347\224\250\350\257\264\346\230\216.md.bak
android/PromoterDemo/bin/PromoterDemo.apk
No preview for this file type
android/PromoterDemo/bin/classes.dex
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/MainActivity.class
No preview for this file type
android/PromoterDemo/bin/dexedLibs/PromoterSdk_proguard-63e08a920939c1c1ad99b9ddae01f591.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/android-support-v4-2b8aed04d68815795a4b53e70b49f1a2.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/promoterrelease-524f5906c8683bbcd3d3ad4807094566.jar
No preview for this file type
android/PromoterDemo/bin/res/crunch/drawable-hdpi/ic_launcher.png
5.82 KB
android/PromoterDemo/bin/res/crunch/drawable-mdpi/ic_launcher.png
3.04 KB
android/PromoterDemo/bin/res/crunch/drawable-xhdpi/ic_launcher.png
9.14 KB
android/PromoterDemo/bin/res/crunch/drawable-xxhdpi/ic_launcher.png
17.5 KB
android/PromoterDemo/bin/resources.ap_
No preview for this file type
android/PromoterDemo/src/com/example/promoterdemo/MainActivity.java
| 1 | package com.example.promoterdemo; | 1 | package com.example.promoterdemo; |
| 2 | import android.app.Activity; | 2 | import android.app.Activity; |
| 3 | import android.os.Bundle; | 3 | import android.os.Bundle; |
| 4 | import android.util.Log; | ||
| 4 | import android.view.View; | 5 | import android.view.View; |
| 5 | import android.view.View.OnClickListener; | 6 | import android.view.View.OnClickListener; |
| 6 | import android.widget.TextView; | 7 | import android.widget.TextView; |
| 7 | import com.gumptech.promoter.util.Constant; | 8 | import com.gumptech.promoter.util.Constant; |
| 8 | import com.gumptech.promoter.Entrance; | 9 | import com.gumptech.promoter.Entrance; |
| 9 | public class MainActivity extends Activity implements OnClickListener { | 10 | public class MainActivity extends Activity implements OnClickListener { |
| 10 | @Override | 11 | @Override |
| 11 | protected void onCreate(Bundle savedInstanceState) { | 12 | protected void onCreate(Bundle savedInstanceState) { |
| 12 | super.onCreate(savedInstanceState); | 13 | super.onCreate(savedInstanceState); |
| 13 | setContentView(R.layout.activity_main); | 14 | setContentView(R.layout.activity_main); |
| 14 | TextView clickText=(TextView) findViewById(R.id.click_textview); | 15 | TextView clickText=(TextView) findViewById(R.id.click_textview); |
| 15 | clickText.setOnClickListener(this); | 16 | clickText.setOnClickListener(this); |
| 17 | Log.d("MainActivity", "VERSION_CODE="+Constant.VERSION_CODE); | ||
| 16 | } | 18 | } |
| 17 | 19 | ||
| 18 | @Override | 20 | @Override |
| 19 | public void onClick(View v) { | 21 | public void onClick(View v) { |
| 20 | // TODO Auto-generated method stub | 22 | // TODO Auto-generated method stub |
| 21 | Entrance.DoPromoter("1545402", "10022", "", "", this); | 23 | Entrance.DoPromoter("1545402", "10022", "", "", this); |
| 22 | |||
| 23 | 24 | ||
| 24 | } | 25 | } |
| 25 | } | 26 | } |
android/PromoterRelease/bin/jarlist.cache
| File was created | 1 | # cache for current jar dependency. DO NOT EDIT. | |
| 2 | # format is <lastModified> <length> <SHA-1> <path> | ||
| 3 | # Encoding is UTF-8 | ||
| 4 |