[codenameone-discussions] Re: App Store images again

2019-09-04 Thread mcw
Sorry but I don't get that site. I uploaded my image, all I end up with is 
this funky image at 1242 x 2208, but Apple now wants 1242 x 2688. I tried 
others but they all want you to register first.

I finally got XCode 10 installed and was able to run my app in their 
simulator and generate a correct sized image. But you need a Mac to do 
that. I though with CodenameOne you didn't need a Mac.

I am so tired of this crap, every time I submit an update to the Apple App 
Store I have to go through this. I have been working on this all day. Apple 
sucks! You really need to address this issue.
On Wednesday, September 4, 2019 at 7:36:55 PM UTC-7, Shai Almog wrote:
>
> We usually just use websites like this: 
> https://www.appstorescreenshot.com/
> There are quite a few of them and they produce better looking screenshots 
> with value added details.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d57f5531-469c-43fa-80c9-b17417c25699%40googlegroups.com.


[codenameone-discussions] Re: App Store images again

2019-09-04 Thread Shai Almog
We usually just use websites like this: https://www.appstorescreenshot.com/
There are quite a few of them and they produce better looking screenshots 
with value added details.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0c665d42-9e8c-404e-b06e-276ba0fcb465%40googlegroups.com.


[codenameone-discussions] Re: Cipher classes..

2019-09-04 Thread Shai Almog
No.
But there's a community member who implemented this already: 
https://github.com/jsfan3/SHA-Codename-One

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/73826680-8464-4b7b-9dac-1e187cf5719c%40googlegroups.com.


Re: [codenameone-discussions] Custom TABS with SpanButton button display width broken

2019-09-04 Thread shop . service . assistant
Thanks, this looks correct.

On Thursday, August 29, 2019 at 12:15:54 PM UTC-4, Steve Hannah wrote:
>
> I have just made some changes to SpanLabel to fix a regression but don't 
> know if it is related to this issue.  I haves added your provided test case 
> as a Sample, named TabsWityhSpanLabelsTest.  You can run the sample against 
> the latest sources in the Samples Runner.  This is what I see when I run 
> the sample.  Is this correct, or is there something wrong with this layout?
>
> [image: image.png]
>
> On Tue, Aug 27, 2019 at 6:57 AM > 
> wrote:
>
>> If you are experiencing an issue please mention the full platform your 
>> issue applies to:
>> IDE: NetBeans/Eclipse/IDEA Netbeans 11
>> Desktop OS Windows 10 Pro
>> Simulator Latest
>> Device PC, IOS
>>
>> Recent build (last 10 days approx) has produced an unusual horizontal 
>> with TABS component display.
>> See attached pic.
>>
>> Purpose of this overriding TABS class is to provide multi line text 
>> support
>>
>> It appears that the SpanButton class is the problem as I see similar 
>> behavior placing this component in a table container. 
>>
>> Here is a simple re-producible case
>>
>> Form hi = new Form("Custom Tabs", new BorderLayout());
>> Tabs tb = new Tabs(Component.TOP) {
>> @Override
>> protected Component createTab(String title, Image icon) {
>> SpanButton custom = new SpanButton(title);
>> custom.setName("SpanButton");
>> custom.setIcon(icon);
>> custom.setUIID("Container");
>> custom.setTextUIID("mpiTabMetalUnSelected");
>> custom.setIconPosition(BorderLayout.NORTH);
>> return custom;
>> }
>>
>> @Override
>> public String getTabTitle(Component tab) {
>> return ((SpanButton) tab).getText();
>> }
>>
>> @Override
>> public String getTabTitle(int index) {
>> String TabTitle = "";
>> try {
>> for (int a = 0; a < getComponentCount(); a++) {
>> Container cnt = (Container) getComponentAt(a);
>> for (int b = 0; b < cnt.getComponentCount(); 
>> b++) {
>> if (cnt.getComponentAt(b).getName() != 
>> null && cnt.getComponentAt(b).getName().compareToIgnoreCase("SpanButton") 
>> == 0 && index == b) {
>> return 
>> getTabTitle(cnt.getComponentAt(b));
>> }
>> }
>> }
>> } catch (Exception g) {
>> g.printStackTrace();
>> }
>> return TabTitle;
>> }
>>
>> @Override
>> public void setTabTitle(String title, Image icon, int 
>> index) {
>> try {
>> for (int a = 0; a < getComponentCount(); a++) {
>> Container cnt = (Container) getComponentAt(a);
>> for (int b = 0; b < cnt.getComponentCount(); 
>> b++) {
>> if (cnt.getComponentAt(b).getName() != 
>> null && cnt.getComponentAt(b).getName().compareToIgnoreCase("SpanButton") 
>> == 0 && index == b) {
>> SpanButton custom = (SpanButton) 
>> cnt.getComponentAt(b);
>> custom.setText(title);
>> return;
>> }
>> }
>> }
>> } catch (Exception g) {
>> g.printStackTrace();
>> }
>> }
>>
>> @Override
>> protected void setTabSelectedIcon(Component tab, Image 
>> icon) {
>> ((SpanButton) tab).setPressedIcon(icon);
>> }
>>
>> protected void selectTab(Component tab) {
>> for (int a = 0; a < this.getComponentCount(); a++) {
>> Container cmp1 = (Container) 
>> this.getComponentAt(a);
>> int selIndex = this.getSelectedIndex();
>> for (int b = 0; b < cmp1.getComponentCount(); 
>> b++) {
>> if (cmp1.getComponentAt(b).getName() != null 
>> && cmp1.getComponentAt(b).getName().startsWith("SpanButton") == true) {
>> if (selIndex == b) {
>> ((SpanButton) 
>> tab).setTextUIID("mpiTabMetalSelected");
>> } else {
>> ((SpanButton) 
>> cmp1.getComponentAt(b)).setTextUIID("mpiTabMetalUnSelected");
>>  

[codenameone-discussions] Re: App Store images again

2019-09-04 Thread mcw
Thanks Dave.

I did notice that the iPhone X simulator has the aspect ration so I could 
scale that one.

I built my app on XCode but even that did not have the new device types, so 
now I am upgrading to XCode 10.

On Wednesday, September 4, 2019 at 2:49:28 PM UTC-7, Dave Dyer wrote:
>
>
> Upsize and crop a smaller screen shot. 
> Apple doesn't require an actual screen shot, just a representative image.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/121d5180-df3c-43cf-8d95-74534a2674b7%40googlegroups.com.


[codenameone-discussions] Re: App Store images again

2019-09-04 Thread Dave Dyer

Upsize and crop a smaller screen shot. 
Apple doesn't require an actual screen shot, just a representative image.


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4543aca5-99ef-4d63-b445-89f6dba1ee3a%40googlegroups.com.


[codenameone-discussions] App Store images again

2019-09-04 Thread mcw
I am trying to submit an update for my apps to the Apple App Store.

They are now demanding an iPhone 6.5 inch screenshot at 1242x2688 
resolution. Apparently an iPhone XS Max or iPhone XR.

You don't have any skins that will generate this resolution. How are other 
developers coming up with these screenshots?

Thanks,

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/822fd34c-a331-40aa-8408-2da5ef78df5f%40googlegroups.com.


[codenameone-discussions] Cipher classes..

2019-09-04 Thread Gareth Murfin
Im trying to convert this code to CN1, is there any equivalent to Cipher 
and MessageDigest classes?

 public static byte[] decrypt(bytes[] key, byte[] bytesToDecrypt) {
try {
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING");
int blockSize = cipher.getBlockSize();

byte[] iv = Arrays.copyOfRange(bytesToDecrypt, 0, blockSize);
byte[] encryptedData = Arrays.copyOfRange(bytesToDecrypt, 
blockSize, bytesToDecrypt.length);

IvParameterSpec ivspec = new IvParameterSpec(iv);
SecretKeySpec secretKey = new SecretKeySpec(key, "AES");
cipher.init(Cipher.DECRYPT_MODE, secretKey, ivspec);

return cipher.doFinal(encryptedData);
} catch (Exception e) {
Log.e(TAG, "Error while decrypting: " + e.toString());
}
return null;}

public byte[] sha256Hash(String inputCode) {
MessageDigest digest = MessageDigest.getInstance("SHA-256");
return digest.digest(inputCode.getBytes(StandardCharsets.UTF_8));}



-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f4f08b89-d04e-498d-b3a0-c8a1855b250f%40googlegroups.com.


[codenameone-discussions] Re: Codename on settings window wont appear

2019-09-04 Thread Gareth Murfin
Took some time to figure out, it was appearing offscreen! fix is:

For Windows 10 in order to use the old move the window with the cursor keys 
trick you need to have the Shift key pressed when you open the context menu 
from the Task bar.

On Thursday, August 29, 2019 at 3:37:41 AM UTC+1, Shai Almog wrote:
>
> Sure:
> java -jar ~/.codenamone/GUIBuilder.jar -settings 
> /path-to-project/codenameone_settings.properties
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/aeec2454-1287-47a1-9197-061f65442c36%40googlegroups.com.


Re: [codenameone-discussions] NATIVE IOS CODE CALLBACKS

2019-09-04 Thread Steve Hannah
Here's an example from the Websocket cn1lib doing exactly this.
https://github.com/shannah/cn1-websockets/blob/master/cn1-websockets-demo/native/ios/com_codename1_io_websocket_WebSocketNativeImplImpl.m#L86-L98
https://github.com/shannah/cn1-websockets/blob/master/cn1-websockets-demo/src/com/codename1/io/websocket/WebSocket.java#L114

Steve

On Wed, Sep 4, 2019 at 7:46 AM Hasni Faiçal  wrote:

> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA
> Desktop OS
> Simulator
> Device
>
> As you mentioned in native iOS call back to call a function from iOS with
> NSString arg
>
> *public static void callback(String arg) {*
> *}*
>
> we should use *fromNSString* this a call like:
> *fromNSString(CN1_THREAD_GET_STATE_PASS_ARG nsStringValue); *
>
>
> how to do the same to call this interface from iOS:
>
> *public static void callback(byte[] arg) {*
> *}*
>
> My objective is to call an interface with byte[] arg with NSData* argument
> (NSData represent a data from an image)
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/7a40c34d-e4b1-407a-bc55-f3378ae3c2ec%40googlegroups.com
> 
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWYw0oD968Y7zZh4qQrCcWeiPR6goiu87Vr1O10RmA7Tg%40mail.gmail.com.


[codenameone-discussions] NATIVE IOS CODE CALLBACKS

2019-09-04 Thread Hasni Faiçal
If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator 
Device

As you mentioned in native iOS call back to call a function from iOS with 
NSString arg 

*public static void callback(String arg) {*
*}*

we should use *fromNSString* this a call like:
*fromNSString(CN1_THREAD_GET_STATE_PASS_ARG nsStringValue); *


how to do the same to call this interface from iOS:

*public static void callback(byte[] arg) {*
*}*

My objective is to call an interface with byte[] arg with NSData* argument 
(NSData represent a data from an image)

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7a40c34d-e4b1-407a-bc55-f3378ae3c2ec%40googlegroups.com.


[codenameone-discussions] Re: Shifting support to StackOverflow

2019-09-04 Thread kamnaeglobalsoft

>
> Have you ever thought about playing games on your Xbox console just like a 
> PC, that is with Mouse and Keyboard. If you have played games on your 
> computer, then might be more comfortable with these with your mouse and 
> keyboard buttons than a controller. Playing games with an Xbox console 
> could be handy, but not as flexible as this combination. Although, Xbox One 
> allows to connect a USB keyboard to it, but not for gaming. You can only 
> connect and use a USB keyboard for text input. Also, the console has 
> limited support for the USB keyboards. Other than advantageous controlling, 
> there could be several more reasons for playing with the keyboard and mouse 
> combination. If you have these devices extra and tired of playing with the 
> Xbox controller, then using them isn’t a bad plan.
>
> Source :- 
> https://karenmintonblogexpert.wordpress.com/2019/09/04/how-to-connect-and-play-games-with-mouse-and-keyboard-on-xbox-one/
>




*norton.com/setup* *  | * *office.com/setup* 
*|*mcafee.com/activate 

norton.com/setup   |norton.com/setup 
 

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4a24af62-6861-48bc-b99f-583b71f39bec%40googlegroups.com.