codenameone

Implementing WebRTC on WebView with Codename One

醉酒当歌 提交于 2019-12-10 11:26:45
问题 I'm developing an app which I need to include WebRTC using the WebView of Android. According to this article: [https://developer.chrome.com/multidevice/webview/overview] it is fully supported since WebView v36. (I'm testing on an Android 5.1.1 / Chrome 54 / Mobile Safari 537.36. And I confirm that it works on the standalone Chrome browser). As of now, viewing of WebRTC works. However, broadcasting (capturing video from the camera and sending it to the server) does not work . Note: it works on

Make the sidemenu slide OVER the form in Codename One

情到浓时终转凉″ 提交于 2019-12-10 11:11:18
问题 The current behavior of the sidemenu in Codename One is that the sidemenu pushes the current form aside as it comes out. I need to have the sidemenu slide over the form without displacing it instead. It appears that the only options are to modify the underlying code for the sidemenu or to utilize some other component in a way that would mimic sidemenu behavior. From a conversation I had with CN1 support, modifying the underlying code sounds problematic and I haven't been happy with the

Codename One - Correct use of the Picker

五迷三道 提交于 2019-12-10 11:00:02
问题 I'm trying to do a clear question about the use of the Picker, because my previous one in not enough clear: Codename One - addActionListener of a Picker The purpose of the Picker is to select one element from a set, such as a string of a set of strings, is it right? So, I want to give the user the opportunity to select a string from a set of strings, each of one corresponds to a language. The problem is that the use of an ActionListener added to the Picker is not correct for this purpose,

Two Codename One Projects with Shared Code

谁说胖子不能爱 提交于 2019-12-10 10:49:26
问题 I've got an app that has a pro and free version, both are almost identical and I'd like to have as much common code as possible to avoid copy & paste issues when moving from one project to the next. As far as I understand app stores recognize apps based on their package names but I understood that changing the package name of a completed app is difficult. Is there a best practice for such a situation? Currently the only thing I can think of is to try to move as much of the logic into a cn1lib

Codename One Right side menu shadow is flipped

人走茶凉 提交于 2019-12-10 10:44:48
问题 I've noticed using the latest build of Codename one. When my sidemenu (hamburger menu) is on the right hand side, the shadow image is flipped. Seems to be the case on the simulator and Android and iOS. I seem to remember I had to put in a work around to get this working recently, but that work-around doesn't seem to work anymore. I tried to replace the imahe using the theme constants, and also to turn it off by setting sideMenuShadowBool to false. but neither of these seem to do anything

Error When building a large Codename One Application During the Dex Phase

丶灬走出姿态 提交于 2019-12-10 02:15:53
问题 I got an error in the build server when sending an Android build during the dex phase. Googling a bit I learned that there is a hard limit of 64K functions (including all libs, the heaviest is google play services), or you can use the multiple dex mechanism. How do I activate this for Codename One? I understand Codename One uses Ant and as far as I understand this only works for gradle. FYI this is the workaround, that splits google play services into sub libraries with native android: http:/

Rebuild list of containers without scrolling the list

时光毁灭记忆、已成空白 提交于 2019-12-10 00:10:23
问题 My app shows long lists of containers and when the user edits the content one of them, the whole list must be refreshed since the content in the other containers may change (they may also change size). Currently I do this simply by getContentPane().removeAll() , followed by recalculating all the containers, and then revalidate() to show the updated form. However, when I do this the list scrolls back to the top. How can I keep the same scroll position in the list, eg that the new instance of

How to get my MapContainer bounding box in Codename One

南笙酒味 提交于 2019-12-09 21:36:34
问题 My Codename One app features a MapContainer. I need to show points of interest (POIs) on it which coordinates reside on the server. There can be hundreds (maybe thousands in the future) of such POIs on the server. That's why I would like to only download from the server the POIs that can be shown on the map. Consequently I need to get the map boundaries to pass them to the server. I read this for Android and this other SO question for iOS and the key seems to get the map Projection and the

How Does a Codename One Update “Work”

↘锁芯ラ 提交于 2019-12-09 18:49:57
问题 A recent question in the Codename One discussion forum raised a question I often face when I'm waiting for a fix. Sometimes the Codename One team indicates a fix would be coming in a couple of weeks and other times they indicate that its already fixed. Some of that opacity obviously relates to the update of the cloud servers but its unclear for me whether its just the cloud server & the plugin or is there something that I'm missing. Why isn't there a single update process? I'd really like a

SunCertPathBuilderException: unable to find valid certification path to requested target in CN1 app

﹥>﹥吖頭↗ 提交于 2019-12-09 07:20:24
问题 Please can you help. I have a Codenameone app that issues a GET request to a cloud Tomcat 8 server, and expects back some response JSON. Importantly this is a HTTPS call. When i run the request in Postman it works fine: https://www.mydomain.co.uk:8443/MyProject/v1/generate_token The same URL through my browser works and shows as 'Secure' and i can see my certificate details. I have bought a certificate for my SSL/TLS configuration, and seems to function fine in the logs on startup. In the