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’); } ...

2016-06-22 · 1 min · 160 words · Me

FileOptimizer

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

2016-06-22 · 1 min · word · Me

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 整個無言! …………..最簡單的範例也出錯!!

2016-06-22 · 1 min · 35 words · Me

[轉]三聯式發票使用點陣式印表機的問題

http://www.mobile01.com/topicdetail.php?f=651&t=4480448&p=1

2016-06-06 · 1 min · word · Me

c# not vb.net PrintPreviewDialog PrintDialog 在PreviewDialog中按列印鈕,直接呼叫PrintDialog

http://www.blueshop.com.tw/board/FUM20050124191756KKC/BRD200707131926393KJ.html http://homepage1.nifty.com/yamato/texts/memorandum/memo5_1.html Globa private ToolStripButton tbs = new ToolStripButton(); private void preview_Click(object sender, EventArgs e) //normal buttion click { tbs.Text = “Print”; tbs.Click += new EventHandler(tbs_Click); PrintPreviewDialog print_preview = new PrintPreviewDialog(); ((ToolStripButton)((ToolStrip)print_preview.Controls[1]).Items[0]).Visible = false; ((ToolStrip)print_preview.Controls[1]).Items.Insert(0, tbs); print_preview.Document = printDocument1; //PrintPreviewDialog print_preview.ShowDialog(); } private void tbs_Click(object sender, EventArgs e) { MessageBox.Show(“dd”); //now here can put PrintDialog code var print_dialog = new PrintDialog(); print_dialog.Document = printDocument1; if (print_dialog.ShowDialog() == DialogResult.OK) { printDocument1.Print(); } }

2016-06-01 · 1 min · 72 words · Me