codenameone

How to integrate Interswitch Payment SDK for Android in codename one

﹥>﹥吖頭↗ 提交于 2019-12-08 05:58:04
问题 Pls , I want to integrate payment gateway using Interswitch Payment SDK for Android in codename one. I have the complete guide through this place I dont know how to go about this in codename one as the tutorial focused on android studio. PlS I really need this to work in codename one. Pls I need a guide about this to make it work in codename one. Thanks 回答1: You'll need to use a native interface. See the link below, but also search on the CodenameOne website, as I recall there being a three

Accessing an Android device's Camera through the HTML5 <video> element through CodeName One mobile app

╄→гoц情女王★ 提交于 2019-12-08 05:49:04
问题 We're building a mobile app for Android using CodeName One. As part of our requirement, we already have an HTML5 page that contains a video element to use a device's camera for capturing photos. We need to call this HTML5 page from within our CodeName One app. But this code is not working as per the expectations, however the html file URL is working perfectly fine when called directly from chrome browser. When viewed from the chrome browser I get the prompt for asking camera permission where

Writing a string at a given position in a drawing in Codename one

為{幸葍}努か 提交于 2019-12-08 05:45:39
问题 I am building an app where at some point I use a form with a layeredLayout. In this form I already have 2 labels stacked on top of each other and I want to write a string in a specific area. The first image (the deepest one) is an image from the device camera and the second image on top of the first one is a png file with transparent background. Both of them have a larger resolution than the screen resolution that's why I am using the following code to display them : findPhotoBase3()

Codename One - container.setScrollVisible(true) in the center of a BorderLayout

て烟熏妆下的殇ゞ 提交于 2019-12-08 05:36:25
问题 I tried to use: container.setScrollableY(true); container.setScrollVisible(true); The container is placed in the the center of a BorderLayout. The container results scrollable, but the scroll bar is not visible (neither during the scrolling nor in other moments). Why? 回答1: A scrollbar will only appear if you have enough content within the container and fades out when you don't scroll. Make sure to add enough elements to the container to see it and then try scrolling. 来源: https://stackoverflow

Codenameone Form adds another title instead of updating when Toolbar added

社会主义新天地 提交于 2019-12-08 05:32:07
问题 I'm running into a strange issue when adding a Toolbar to my Form in my Codenameone app. If I set a toolbar on my form, it shows another title with the toolbar hamburger and new title below the title of the previous form instead of replacing it like I would expect. It looks like this: The functionality works fine replacing the old title like I would expect when I run in the Codenameone simulator, but I get this weird behavior shown in the image when I make an Android build and run it on a

CodenameOne: Capture.capturePhoto() requests wrong permission?

 ̄綄美尐妖づ 提交于 2019-12-08 05:30:05
问题 CodenameOne's Capture.capturePhoto(1000, -1) seems to work fine with Android targetSDKVersion 21 permissions. But on 23 it wrongly requests a Allow [...] to access photos media, and files on your device? permission from the user, but then fails because of the android.permission.CAMERA missing. (The simulator in lack of a camera requests media files instead - could there be something mixed up?) UPDATE (DDMS output) 08-09 15:13:47.866: W/ActivityManager(1676): Permission Denial: starting Intent

How to get the complete code for braintree in codename one

丶灬走出姿态 提交于 2019-12-08 05:22:47
问题 Pls is the code below is enough to handle braintree for payment? Purchase.startOrder(new Purchase.Callback() { public String fetchToken() { return ""; } public void onPurchaseSuccess(String nonce) { } public void onPurchaseFail(String errorMessage) { } public void onPurchaseCancel() { } }); For the sample test I return the token provided in braintree websites like this Purchase.startOrder(new Purchase.Callback() { public String fetchToken() { return

Fading Toolbar on scrolling of a tab (in Codename One)

时光毁灭记忆、已成空白 提交于 2019-12-08 05:15:44
问题 How to fade the Toolbar on scrolling is described in the Codename One manual, in the section " Title Animations ": https://www.codenameone.com/manual/components.html#title-animations-section The example code (taken from the given link) works. I slightly modified it because I need to fade the Toolbar on scrolling of tabs, but my code doesn't work. Can you help me to fix it? Please try to scroll the "Tab 3" (that is the only scrollable), I tested with iPhone skin in the Codename One Simulator.

String.format alternative on CodenameOne

Deadly 提交于 2019-12-08 05:12:54
问题 I'm trying to port a Java-based library to CodenameOne in order to use it in a cross-platform project but it uses a lot of Java standard APIs that I cannot find in CodenameOne, first of all String.format . I have read this Q&A and I understood there are a few utility libraries which implement what's missing in base classes. Is there a library class which implements String.format ? As an example, I need to do something like String.format("%02d:%02d:%02d", hh, mm, ss); 回答1: You can use com

CodenameOne plan for the cloud storage API

做~自己de王妃 提交于 2019-12-08 05:11:20
问题 Since CodenameOne doesn't support "the cloud storage API" any more and the parse.com is going to retire soon as well. Does CodenameOne has any plan to release a new Cloud Storage API or provide suggestions/guidelines to help developers to deal with the parse4cn1 library code, cloud code, database structure and data in parse.com? 回答1: That is something you will have to figure out yourself as parse4cn1 was initially contributed by a community member and wasn't developed by Codenameone team. You