Tag: android

cordova – 如何没有启animation面?

我不想为我的Cordova项目(Android和iOS)启动一个启animation面,如何删除它? 我试图禁用启animation面插件,但它继续出现! 怎么解决? <?xml version="1.0" encoding="utf-8" standalone="no"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="app.appname" version="1.0.0"> <name>App name</name> <description> App name description </description> <author email="dev@cordova.apache.org" href="http://cordova.io"> Apache Cordova Team </author> <content src="index.html"/> <plugin name="cordova-plugin-whitelist" spec="1"/> <access origin="*"/> <allow-intent href="http://*/*"/> <allow-intent href="https://*/*"/> <allow-intent href="tel:*"/> <allow-intent href="sms:*"/> <allow-intent href="mailto:*"/> <allow-intent href="geo:*"/> <platform name="android"> <allow-intent href="market:*"/> </platform> <platform name="ios"> <allow-intent href="itms:*"/> <allow-intent […]

在API加载之前在Cordova中显示webView

我使用PhoneGap / Cordova为iOS和Android构build应用程序。 使用标准的行为,直到JavaScript被初始化并且Cordova API准备好之后才显示webView。 所以直到我打电话 document.addEventListener('deviceready', this.onDeviceReady, false); 屏幕完全是空白的 只有一次调用deviceready被初始化,并且Cordova API已经加载了webView使其可见。 我希望尽快显示webView,而不会延迟,这样无论Javascript状态如何,都可以立即显示静态HTML元素。 我已经掌握了Objective C的一些基本知识,并且已经查看了代码,但是Cordova库很大,而且我还没有发现webView的显示方式和时间。 有没有人知道我的目标C端加载后,尽快显示webView,无论cordovaAPI是否准备好呢? (如果有的话,可能会有什么缺点?) 提前致谢!

React-native pubnub WebRTC Video Chat

我正在开发一个移动应用程序(react-native + pubnub)来进行WebRTCvideo聊天。 我的问题是,pubnub没有react-native的特定SDK,我该如何解决这个问题?

glViewport在Android和iOS中的不同结果

我刚刚开始使用opengl的跨平台框架(iOS和Android)的渲染器。 当我到视口的东西(这是分裂的东西所需要的),并注意到有一个iOS和Android之间的差异。 这里有两个图像。 Android其实还有另一个小故障。 它似乎包装。 iOS版 我的问题。 哪两个是正确的? 我没有应用任何转换,而是将绘制的四分音符稍微拉回来。 glTranslatef(0.0f,0.0f,-5.f); 初始化代码: glEnable(GL_TEXTURE_2D); glShadeModel(GL_SMOOTH); //Enable Smooth Shading glClearColor(0.f, 0.f, 0.f, 1.0f); //Black Background glClearDepthf(1.0f); //Depth Buffer Setup glEnable(GL_DEPTH_TEST); //Enables Depth Testing glDepthFunc(GL_LEQUAL); //The Type Of Depth Testing To Do //Really Nice Perspective Calculations glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); 视口和项目代码 glViewport(viewportX, viewportY, viewportW, viewportH);. glEnable(GL_SCISSOR_TEST); glScissor(viewportX, viewportY, viewportW, viewportH); glMatrixMode(GL_PROJECTION); […]

当页面上存在更大的div时,位置固定为100%不是视口宽度

我有一个场景,我有一个固定的页眉,这应该是100%的视口宽度,一个更大的元素,大约5000像素宽,并滚动标题下。 移动浏览器似乎有一些问题没有修复头,而是显示一个更大的(比率计算??)头在iOS上滚动较慢,并突然跳过超过标题的宽度在android上的滚动位置方面跳转。 标题使用100vw工作,但有时标题消失在某个断点,似乎并没有真正固定的位置。 本质上,问题似乎是一个固定的元素100%!= 100%的视口,即320像素,但计算宽度是在视口的宽度和较大的元素之间的某处。 任何帮助将大力赞赏! 一个简化的代码示例如下… <!html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/> <style> * { margin: 0; padding: 0; } .a-div { position: fixed; width: 100%; height: 100px; z-index: 1; background: dimgray; border-left: 1px solid red; border-right: 1px solid pink; } .parent { width: 5000px; overflow: hidden; } .another-div { position: […]

这代码是什么意思,“404 =未find; 404; -32601” ? 在joinKurento媒体服务器中的一个房间时发生这种情况

我正在android应用程序中,我有一个videostream。 我正在使用kurento媒体服务器进行stream式传输。 我通过使用以下代码连接到KMS: executor = new LooperExecutor(); executor.requestStart(); String wsRoomUri = "wss://192.168.0.104:8433/kurento"; kurentoRoomAPI = new KurentoRoomAPI(executor, wsRoomUri, this); CertificateFactory cf; try { cf = CertificateFactory.getInstance("X.509"); InputStream caInput = new BufferedInputStream(getAssets().open("kurento_room_base64.cer")); Certificate ca = cf.generateCertificate(caInput); kurentoRoomAPI.addTrustedCertificate("ca", ca); } catch (CertificateException |IOException e) { e.printStackTrace(); } kurentoRoomAPI.useSelfSignedCertificate(true); kurentoRoomAPI.connectWebSocket(); 它被连接。 但是当我尝试join房间时,显示错误,错误是: .vtt.nubotest E/MainActivity: Code:-32601 04-18 17:30:18.061 11699-11938/fi.vtt.nubotest E/MainActivity: […]

使用Java中的身份validation标签进行AES GCM实现

我在我的Android项目中使用AES GCM身份validation,它工作正常。 但是当与openssl API比较时,获得authentication标签的一些问题会生成标签。 请find下面的java代码: SecretKeySpec skeySpec = new SecretKeySpec(key, "AES"); byte[] iv = generateRandomIV(); IvParameterSpec ivspec = new IvParameterSpec(iv); Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); cipher.init(Cipher.ENCRYPT_MODE, skeySpec, ivspec); int outputLength = cipher.getOutputSize(data.length); // Prepare output buffer byte[] output = new byte[outputLength]; int outputOffset = cipher.update(data, 0, data.length, output, 0);// Produce cipher text outputOffset += cipher.doFinal(output, outputOffset); […]

使用iOS分布式应用时,Google Cloud Messaging显示“notRegistered”

我已经在iOS应用上实施了GCM服务。 我使用PHP在服务器上发送GCM。 当应用程序由开发configuration文件签名时,它完美地工作。 也就是说,当应用程序使用GCMconfiguration注册自己时,它总是返回一个正在运行的设备令牌。 我可以使用该令牌向设备发送通知,而不会出现任何错误。 但是,当我通过分布式configuration文件签署应用程序并通过TestFlight或Ad Hoc Provisioningtesting应用程序后,我收到了“未注册”错误。 { “multicast_id”:8921098464640731057, “成功”:0, “失败”:1, “canonical_ids”:0 “结果”:[{ “错误”: “NotRegistered”}]}” 这是怎么发生的? 任何解决scheme 我检查了我在开发和分发configuration文件中启用了APNS。 我没有在我的服务器上启用TLS。 其实我的SSL证书没有准备好,所以我不能testing它。 这是原因吗?

iOS 6的iPhone 5应用不全屏在Phonegap构build?

嘿,我所有我运行我的应用程序,它似乎是我的Android设备上的全屏,但它的iPhone 5顶部/底部的黑色栏….我需要设置为那些工作的设置? 我的应用程序看起来在我的android的方式是这样的: 它在我的iPhone 5上的样子是这样的:

移动networking性能:将数据从networking服务器传输到手机的最有效的数据types是什么?

问:在networking服务器(/ other?)和手机(即ios / android / other)之间传输数据时,哪种数据types是最有效/最快速的? JSON? XML? HTML? 问:应该使用哪种服务器技术? php + mysql? 问:应该使用什么样的API? RESTtypes的? RPC? 任何虽然?