codenameone

Is it possible to record audio in iOS with Codename One?

浪尽此生 提交于 2019-12-22 18:30:54
问题 My app features a button to record audio (and another to play it back when the recording is over). I send the recorded audio files on a server. On Android the files is recorded as .amr (mime type audio/amr) and can be played back. On iOS however the file can neither be played back on the device (iPhone 4 or 4S) nor on a computer. ffmpeg -i reports [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2fac120] moov atom not found 9gMjOnnmsj9JJZR3.m4a: Invalid data found when processing input Please note that VLC

Codename One: Strange toolbar animation on form change

时间秒杀一切 提交于 2019-12-22 18:17:21
问题 Since adding a global Toolbar to the forms there is a strange animation bug (?) when changing forms. At hitting a Button at FormA that will invoke FormB.show() the title has an animation the lets the new form stutter in the toolbar area from the right to the left. After googling I found this: This is pretty much the problem I face at the toolbar, only difference is the toolbar Logo I added to the center is stuttering from the right to the left to its place. After the animation is done, the

Forcing permission in marshmallow devices codenameone

依然范特西╮ 提交于 2019-12-22 18:12:07
问题 I have created a NativeTest.java 1.code: import com.codename1.system.NativeInterface; public interface NativeTest extends NativeInterface{ public void dispatchTakePictureIntent(); } generated the native interfaces inside native\android\pathToNativeiImpl NativeTestImpl.java code: public class NativeTestImpl { static final int REQUEST_IMAGE_CAPTURE = 1; public void dispatchTakePictureIntent() { if(!com.codename1.impl.android.AndroidNativeUtil.checkForPermission(Manifest.permission.READ_PHONE

App freezing after several restarts

混江龙づ霸主 提交于 2019-12-22 17:06:13
问题 I built this app that takes pictures, displays them for acceptance and uploads them to a webserver via post. It is very simple in concept and execution. But then the app is freezing in the Android handset (I have an Xperia Z3+ which i has a fairly good amount of resources, also tried in a Moto X). To try and reproduce this I take a picture (it will automatically tried the upload)... push the power button for the screen to shutdown... then when I light up the screen it takes a while for the

App freezing after several restarts

给你一囗甜甜゛ 提交于 2019-12-22 17:06:03
问题 I built this app that takes pictures, displays them for acceptance and uploads them to a webserver via post. It is very simple in concept and execution. But then the app is freezing in the Android handset (I have an Xperia Z3+ which i has a fairly good amount of resources, also tried in a Moto X). To try and reproduce this I take a picture (it will automatically tried the upload)... push the power button for the screen to shutdown... then when I light up the screen it takes a while for the

extra side menu in codename one app

馋奶兔 提交于 2019-12-22 16:13:06
问题 In my app I have a right hand side menu. But there also seems to be a left hand side menu, only containing the back button. There is no menu button (with three horizontal lines), but if you touch the left edge of the screen and drag in the menu appears. I can't see why it's being created, but is that any way to disable or remove it? 来源: https://stackoverflow.com/questions/44233893/extra-side-menu-in-codename-one-app

extra side menu in codename one app

给你一囗甜甜゛ 提交于 2019-12-22 16:10:30
问题 In my app I have a right hand side menu. But there also seems to be a left hand side menu, only containing the back button. There is no menu button (with three horizontal lines), but if you touch the left edge of the screen and drag in the menu appears. I can't see why it's being created, but is that any way to disable or remove it? 来源: https://stackoverflow.com/questions/44233893/extra-side-menu-in-codename-one-app

How to create an Image from a url Codenameone

依然范特西╮ 提交于 2019-12-22 12:05:29
问题 I need to make a new Image instance from a string that has the url of the image. E.g. http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png This type of urls come from a JSONParser and I want to use them to populate the icons of a multibutton list. I use the following getItemAt method of this Model class put data on a multibutton list. Each multibutton has an icon and some lines. I have named Line1 as name and Line2 as rating . I want from the string url to make an Image so I can

CodenameOne - change color of checkbox in theme

倾然丶 夕夏残阳落幕 提交于 2019-12-22 11:13:12
问题 I'm using the 'Blue Flat' theme in a cn1 project, and the checkboxes in a MultiButton component (I suppose following the Button text color) are completely white, making them invisible on a white background. I've tried changing their foreground color in the theme (in the GUI Builder theme tab), I tried replacing the theme files with checkboxes of a darker shade, but nothing seems to affect it. How can I make the MultiButton checkbox a different color? 回答1: The blue theme customizes the

codename one remove back button on ios

孤街浪徒 提交于 2019-12-22 10:53:09
问题 I removed the title of the form because I don't want it. when I did that, a back button on the iOS(On android back button does not show) started to show on the bottom of the form. I've tried to override showForm() in the StateMachine and invoke setTitle("") but the back button is still there. @Override public Form showForm(String resourceName, Command sourceCommand) { Form f = super.showForm(resourceName, sourceCommand); f.setTitle(""); return f; }; Is there a way to remove that back button?