codenameone

Codenameone: Register iOS App as share target

爷,独闯天下 提交于 2021-02-08 08:17:23
问题 I found an article where a solution is described how to register an codenamone app as a target for "open with" on an iOS device. Is there also a way to register an codenamone app as a share target on iOS? 回答1: There is no easy integration for that since the share functionality requires the creation of an extension and that would require some native code: How to add my app to the share sheet action This is something that's a bit hard to automate since you would need to implement logic that

Codenameone: Register iOS App as share target

╄→гoц情女王★ 提交于 2021-02-08 08:16:25
问题 I found an article where a solution is described how to register an codenamone app as a target for "open with" on an iOS device. Is there also a way to register an codenamone app as a share target on iOS? 回答1: There is no easy integration for that since the share functionality requires the creation of an extension and that would require some native code: How to add my app to the share sheet action This is something that's a bit hard to automate since you would need to implement logic that

How to assign an action to the physical volume keys in Codename One?

房东的猫 提交于 2021-02-08 07:50:53
问题 I would like my Codename One app to react to volume up / down keys (the physical keys that lay on the device side). Actually I already have a button that does the action but I would also like to offer the possibility to use the volume keys to launch the action. I found the method keyPressed() which prototype reads public void keyPressed(int keyCode) but I was not able to actually find the keyCode constant for volume up / down. How can I assign the volume up / down keys to an action with

Codename One iOS Statusbar on landscape orientation

六眼飞鱼酱① 提交于 2021-02-08 06:59:50
问题 I think that the iOS Statusbar doesn’t make sense when the device is landscape orientated. How can I make a Codename One app showing the Statusbar only on portrait? 回答1: We'll add support for it in the code freeze which should land on the 20th. landscapeTitleUiidBool should have impacted the status bar too so it would have the StatusBarLandscape UIID when running in landscape. See the discussion about the landscapeTitleUiidBool theme constant here: https://www.codenameone.com/blog/ios-back

Codename One iOS Statusbar on landscape orientation

[亡魂溺海] 提交于 2021-02-08 06:58:18
问题 I think that the iOS Statusbar doesn’t make sense when the device is landscape orientated. How can I make a Codename One app showing the Statusbar only on portrait? 回答1: We'll add support for it in the code freeze which should land on the 20th. landscapeTitleUiidBool should have impacted the status bar too so it would have the StatusBarLandscape UIID when running in landscape. See the discussion about the landscapeTitleUiidBool theme constant here: https://www.codenameone.com/blog/ios-back

Best way to wait until a variable changes its value

北城余情 提交于 2021-02-08 04:46:30
问题 I realize that what I'm about to ask is more a generic Java question than a specific Codename One question, anyway, considering that the reference APIs are Codename One's, is there a more elegant and more reliable way to handle a situation like the following code? Such cases happen if I need to synchronously make code that by its nature would be asynchronous with callback: while (lock) { CN.invokeAndBlock(() -> Util.sleep(500)); } I quoted a code like that here: https://github.com/codenameone

Best way to wait until a variable changes its value

我怕爱的太早我们不能终老 提交于 2021-02-08 04:46:24
问题 I realize that what I'm about to ask is more a generic Java question than a specific Codename One question, anyway, considering that the reference APIs are Codename One's, is there a more elegant and more reliable way to handle a situation like the following code? Such cases happen if I need to synchronously make code that by its nature would be asynchronous with callback: while (lock) { CN.invokeAndBlock(() -> Util.sleep(500)); } I quoted a code like that here: https://github.com/codenameone

Netbeans codename one change where builds are sent

只愿长相守 提交于 2021-02-08 03:31:49
问题 I have created an account in Codename one, which had the free packet from my personal email. Eventually, the company that I work at purchased the Basic subscription packet. However, the builds are still sent to my old account email, every time I press Send Android build. How do i change where builds are sent, in order for them to be sent to the new account with the basic packet? I had an issue with space over 1200 kb. 回答1: This is there to prevent abuse where developers would switch accounts

Netbeans codename one change where builds are sent

雨燕双飞 提交于 2021-02-08 03:31:08
问题 I have created an account in Codename one, which had the free packet from my personal email. Eventually, the company that I work at purchased the Basic subscription packet. However, the builds are still sent to my old account email, every time I press Send Android build. How do i change where builds are sent, in order for them to be sent to the new account with the basic packet? I had an issue with space over 1200 kb. 回答1: This is there to prevent abuse where developers would switch accounts

MediaPlayer Video Size Codenameone?

血红的双手。 提交于 2021-02-07 20:45:26
问题 I have been working on VideoCapture with Codename one using String file=Capture.captureVideo(); Media video = MediaManager.createMedia(file, true); f.addComponent(BorderLayout.CENTER, video.getVideoComponent()); f.revalidate(); and once we do that the problem when we try to open the Media in a MediaPlayer component , the video appear too small for the screen most of the time , and sometime it get fit to the form , the question is : how can I adjust the media inside the MediaPlayer component