EExcel 丞燕快速查詢2

EExcel 丞燕快速查詢2
EExcel 丞燕快速查詢2 https://sandk.ffbizs.com/

Crodova build release apk windows

c:\cordova_project
c:\cordova_project\project_name
c:\cordova_project\Crodova build release apk1.bat
c:\cordova_project\Crodova build release apk2.bat
c:\cordova_project\Crodova build release apk3.bat
c:\cordova_project\zipalign.exe


.Crodova build release apk1.bat

cd project_name
cordova build --release android



.Crodova build release apk2.bat

ECHO off
set /p storepass=input storepass  :
set /p keypass=input keypass  :

cd project_name
set PATH=%PATH%;C:\"Program Files"\Java\jdk1.8.0_74\bin\
jarsigner -verbose -keystore ../keystore/eexcel.keystore -storepass %storepass% -keypass %keypass% platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name



.Crodova build release apk3.bat

cd project_name
del /f /q platforms/android/build/outputs/apk/project_name.apk

%cd%\..\zipalign -f -v 4  platforms\android\build\outputs\apk\android-release-unsigned.apk platforms\android\build\outputs\apk\project_name.apk


PS:zipalign download from internet
http://forum.xda-developers.com/showthread.php?t=2214583
http://forum.xda-developers.com/attachment.php?attachmentid=1848618&d=1364750980

Cordova android framework7 回上一頁

https://muut.com/framework7-cn#!/?%E8%BF%94%E5%9B%9E%E4%B8%8A%E4%B8%80%E9%A1%B5


onDeviceReady: function() {
         document.addEventListener("backbutton", function(e) {
              var currentView = myApp.getCurrentView();
              if(currentView.history.length>1) {
                     currentView.router.back({});//返回上一级
              }else{
                      navigator.app.exitApp();//首页点返回键退出
              }
        }, false);
       
        app.receivedEvent('deviceready');
}

Cordova android AdMob framework7

cordova create  oooxxxx

see js/index.js

onDeviceReady: function() {
  app.receivedEvent('deviceready');
}


Now put AdMob Code

onDeviceReady: function() {
       
        // place our admob ad unit id here
        var admobid = {};
 
        if( /(android)/i.test(navigator.userAgent) ) {
          admobid = { // for Android
            banner: 'ca-app-pub-xxxxxxxxxxxxx/oooooooooooo',
            interstitial: 'ca-app-pub-xxxxxxxxxxxxx/oooooooooooo'
          };
        } else if(/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
          admobid = { // for iOS
            banner: 'ca-app-pub-xxxxxxxxxxxxx/oooooooooooo',
            interstitial: 'ca-app-pub-xxxxxxxxxxxxx/oooooooooooo'
          };
        } else {
          admobid = { // for Windows Phone
            banner: 'ca-app-pub-xxxxxxxxxxxxx/oooooooooooo',
            interstitial: 'ca-app-pub-xxxxxxxxxxxxx/oooooooooooo'
          };
        }
       
        if (! AdMob ) { alert( 'admob plugin not ready' ); return; }
       
        // this will create a banner on startup
        AdMob.createBanner( {
          adId: admobid.banner,
          adSize: 'SMART_BANNER',
          position: AdMob.AD_POSITION.BOTTOM_CENTER,
          isTesting: true, // TODO: remove this line when release
          overlap: false,
          offsetTopBar: false,
          bgColor: 'black'
        } );
       
         this will load a full screen ad on startup
        AdMob.prepareInterstitial({
          adId: admobid.interstitial,
          isTesting: true, // TODO: remove this line when release
          autoShow: true
        });
     
        app.receivedEvent('deviceready');
}


PS:If see example https://github.com/floatinghotpot/cordova-admob-pro/blob/master/test/index.html
Maybe this need to change
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; media-src *">


reference
https://www.npmjs.com/package/cordova-plugin-admobpro
https://github.com/floatinghotpot/cordova-admob-pro/blob/master/test/index.html
https://github.com/floatinghotpot/cordova-admob-pro/blob/master/test/admob_simple.js

FileOptimizer

http://nikkhokkho.sourceforge.net/static.php?page=FileOptimizer

google AdMob 最新版有很多問題

https://github.com/googleads/googleads-mobile-android-examples    See Issues

最新版 9.0.2 or 9.0.0   (com.google.firebase:firebase-ads:9.0.2)

Log查 w/Ads

W/Ads: Failed to connect to remote ad request service.
W/Ads: Could not start the ad request service.
W/Ads: Failed to load ad: 0


整個無言! ..............最簡單的範例也出錯!!