问题标签 [mosync]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - gifs in html5 app make the app slowers?
I am working on an html5 mobile app for a website. The website contains a lot of gifs(about 5-10 per page) on its pages which are making the app events, scroll, drag, css animations, and everything very slow. if i get rid of the gifs the app runs fine. I have tested the app on both android(nexus 7) and ios(iphone 5 and ipad 4).
I was thinking of showing a still image and then play it on some event, but it was spoiling the webpage's idea.I am using the mosync sdk for development.
Any suggestions on what can i do to not make it slower?
c++ - 调用父母的方法
我对所有这些 c ++ 东西有点新手,所以这可能是初学者的问题:
列表屏幕.h
列表屏幕.cpp
我收到此错误:D:\MosyncProjects\Views\ListScreen.cpp:22: Error: Unresolved symbol '__ZN4MAUI6Screen4showEv' line 22
在此Screen::show();
调用中(出于本主题的目的,我删除了一些代码)。那么我在这里到底做错了什么?
php - 无法从服务器端访问 php 文件
我是移动 Web 应用程序开发的新手……现在我正在努力使用 mosync sdk 连接 myphpadmin……
问题:我将gene.php文件放在localhost中它运行良好,但如果我加载文件是服务器(http://xxxxxx.in/NewsRecord.php)它不起作用。我不知道如何解决这个问题?帮帮我谢谢提前
android - NativeUI C++ 基础架构中如何解析实际的原生 UI 小部件?
当在 MoSync 代码库中使用 NativeUI C++ 类时,我想知道并理解最终调用实际 IOS/Android/WP 原生小部件的代码。
我快速浏览了 GitHub 上的一些类,例如Button.cpp等,但我无法轻易看到真正的原生设备小部件是如何被引用的。
我不是 C/C++ 开发人员(Java),但我有点期待一些 #ifdefs 或其他东西来“切换”相应的底层实现。如果不是这样,那我没关系,请放纵我的好奇心。
javascript - Read files from SD Card with mosync/phonegap on Android with pure Javascript
I know this question was asked many times before but I cannot figure it out anyhow. I'm able to write a text file to a directory on the sdcard (android 4), but no way to read it back again, using this code:
I wrote the file using the writer function into the directory sdcard/test using this sequence of ../ - this is an ugly code but working !
But fs.root.getFile
does not work in the same way - the fullPath information it returns shows that my path given is APPENDED to "/data/data/com.appname/files" but does not replace it !
The onloadend function obviously isn't working since i never got the alert message, neither did I get an error message. Change of path to "file:///sdcard/test" or "sdcard/test" has no effect either.
Any help is highly appreciated - thank you in advance ! Chris
cordova - 如何确定移动应用程序中可以合理呈现多少列?(屏幕尺寸/分辨率/方向)
问题:对于使用跨平台工具开发的移动应用程序,如何确定移动应用程序中可以合理呈现多少列?例如,如何确定是否可以在给定视图的布局中放置额外的列?
笔记:
IOS/Android设备的混合,不同的分辨率,纵向/横向,答案是否在于屏幕的物理尺寸?我假设以像素为单位使用屏幕宽度可能不合适,因为它可能无法指示屏幕的物理大小。
例如,为了讨论,如果您有一个应用程序,您的数据将显示在列中,并且您已经说过为了用户的可读性而确定(我正在编造这些):
- iPhone 纵向 - 1 列
- iPhone 横向 - 2 列
- iPad 纵向 - 2 列
- iPad 横向 - 3 列
然而,除了 iPad/iPhone 之外,还有所有 Android 设备,因此假设这里需要一种公式/方法来确定在运行时尝试向用户显示多少列。
所以假设您使用的是跨平台开发工具,例如:Corona SDK、Phone Gap、Titanium、MoSync 等
javascript - AdMob 和纯 HTML5-JS 集成
我有一个基于 MoSync Reload 的应用程序 - 例如纯 HTML5/JS。有没有办法在没有 Java XML 的情况下在我的应用中展示 AdMob 或其他广告网络广告?
旧的 AdMob HTML 教程 ( https://support.google.com/admob/answer/1704625?hl=en ) 现在是 404,它们将仅通过 Google Play 服务投放广告。
MoSync 有一个 Ad Api(http://www.mosync.com/files/imports/doxygen/latest/html/group___ads_a_p_i.html),但我无法弄清楚如何在这个纯 HTML5/JS 中展示广告。
任何帮助或建议将不胜感激。
此致
android - MoSync Android:浏览文件系统
我正在MoSync中为Android 和 iOS创建一个应用程序。
我正在使用HTML5/JS/JQuery Mobile,我需要一个关于如何在MoSync App中浏览文件的示例。
我用简单的:
标记,它正在呈现 HTML 的正常文件浏览。然而,当点击它时,什么都没有。
任何人都可以帮忙吗?
c++ - 将数据从客户端发送到 SQL 数据库 (MoSync)
如果之前有人问过这个问题,我深表歉意,但是我无法找到与我目前情况相似的合适答案。我正在使用 MAUI 开发一个带有 MoSync 的应用程序,因为所有平台的外观都相同。我在理解 MAHandles 以及如何将 SQLite 信息发送到 Web 地址方面遇到了问题。然后,SQLite 命令将使用 RedBean PHP 脚本转换为 MySQL 命令,然后发送到永久数据库。
我最担心的是2个项目:
1.声明可通过 MAHandles 使用的连接(我已经让 SQLite 命令在不使用 MAHandles 的情况下工作,但是在 resources.lstx 中声明数据库地址仍然逃避我)
2. 一般声明 MAHandles。
另外,我知道字符串更有效,但是由于 MAUI 的时代,我忽略了这一事实,并且在使用 char 数组时它的功能看起来更流畅。
如果需要,我可以提供额外的说明,以便我可以帮助加快这个过程。
提前感谢您,希望这将帮助其他人尝试使用 MoSync 完美的产品。
php - 如何使用 Mosync 将照片上传到服务器
我在将照片上传到由相机拍摄的服务器时遇到问题。我曾尝试使用 Mosync 站点中的代码,但它不起作用。