[codenameone-discussions] Re: ios build error

2018-02-14 Thread Shai Almog
You included the sensors cn1lib and didn't use it in the code. You need to 
remove the lib and delete the impl directories under the lib. Then use 
refresh libs. You might need to clean the build hints too.

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/521eeb5d-f833-4322-94ba-e552abd78572%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Slow results with dynamic AutoCompleteTextField

2018-02-14 Thread Shai Almog
Hi,
the timer variable should be a member of the class not a variable within 
the body. That way you can check and cancel... Something like this will be 
closer to what you need:

UITimer timer;

protected boolean filter(String text) {
if (text.length() == 0) {
if(timer != null) timer.cancel();
return false;
}

// other logic that doesn't involve server...
if(timer != null) timer.cancel();
timer = new UITimer(() -> {
   all your server fetch code should be here!
};


timer.schedule(1000, true, fmArticulo);
}


-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c15a19b4-6960-4316-b901-861d5331b54c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: How to save byte array as a file in android and how to view that file in codenameone?

2018-02-14 Thread Shai Almog
You did 99% of the work. You saved the file to the right location now you 
just need to execute that file:

Display.getInstance().execute(fs.getAppHomePath() + "MyFileName.pdf");

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/563f0fb3-2992-433c-93bd-e2f90fa71bb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: SSL has occurred (ios)

2018-02-14 Thread Shai Almog
What's the line that triggers this message?

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4322179b-a3d9-42b5-8037-75f63b39ef22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Hack/remember size of the desktop skin

2018-02-14 Thread Shai Almog
You can file an RFE or just look in the code for JavaSEPort.java and submit 
a pull request 
https://www.codenameone.com/blog/how-to-use-the-codename-one-sources.html

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/2b86ca98-6833-4bf8-a6ac-c890bae54362%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Hide status bar

2018-02-14 Thread Shai Almog
I mentioned this in a blog just the other day: 
https://www.codenameone.com/blog/new-skins-san-francisco-font.html

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e6fdaaf2-2752-4a71-9b9b-1a72e32c6859%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] ios build error

2018-02-14 Thread alisayed

CompileC 
build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/Objects-normal/arm64/com_codename1_sensors_SensorsNativeImpl.o
 
AppMgr-src/com_codename1_sensors_SensorsNativeImpl.m normal arm64 
objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd 
/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist
export LANG=en_US.US-ASCII
export 
PATH="/Applications/Xcode9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode9.2.app/Contents/Developer/usr/bin:/Users/administrator/.jenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"

/Applications/Xcode9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
 
-x objective-c -arch arm64 -fmessage-length=0 
-fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 
-gmodules -Wno-trigraphs -fpascal-strings -O3 
-Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type 
-Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage 
-Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wno-missing-braces 
-Wparentheses -Wswitch -Wunused-function -Wno-unused-label 
-Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body 
-Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants 
-Wno-conversion -Wconstant-conversion -Wno-int-conversion -Wbool-conversion 
-Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion 
-Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign 
-Wno-newline-eof -Wno-selector -Wno-strict-selector-match 
-Wundeclared-selector -Wno-deprecated-implementations -DCOCOAPODS=1 
-DNS_BLOCK_ASSERTIONS=1 -isysroot 
/Applications/Xcode9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk
 
-fstrict-aliasing -Wprotocol -Wdeprecated-declarations 
-miphoneos-version-min=7.0 -g -fvisibility=hidden -Wno-sign-conversion 
-Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing 
-Wno-strict-prototypes -iquote 
/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/AppMgr-generated-files.hmap
 
-I/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/AppMgr-own-target-headers.hmap
 
-I/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/AppMgr-all-target-headers.hmap
 
-iquote 
/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/AppMgr-project-headers.hmap
 
-I/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/BuildProductsPath/Release-iphoneos/include
 
-I/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/Pods/Headers/Public
 
-I/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/DerivedSources/arm64
 
-I/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/DerivedSources
 
-F/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/BuildProductsPath/Release-iphoneos
 
-isystem 
/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/Pods/Headers/Public
 
-include 
/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/PrecompiledHeaders/AppMgr-Prefix-aasejmxtkuwqxlfwndpsbfnqpeil/AppMgr-Prefix.pch
 
-MMD -MT dependencies -MF 
/var/folders/p_/xlvwhg4101z8r81_nl13cds8gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/Objects-normal/arm64/com_codename1_sensors_SensorsNativeImpl.d
 
--serialize-diagnostics 

[codenameone-discussions] Re: Slow results with dynamic AutoCompleteTextField

2018-02-14 Thread rdvg1962
Hello,
I have tried several options but I only get error messages, I appreciate 
the support on how to insert the UITimer API.
My code:

 final DefaultListModel lmArticulos = new DefaultListModel<>();
AutoCompleteTextField atArticulo = new 
AutoCompleteTextField(lmArticulos) {

@Override
protected boolean filter(String text) {

UITimer timer = new UITimer(new Runnable() {
public void run() {

}
});
timer.schedule(1000, true, fmArticulo);

if (text.length() == 0) {
return false;
}

ArrayList l = dT.leeInformacionRegistro(text, 
ARTICULO_LEE_NOMBRE_REGISTRO);
if (l.isEmpty() || l.size() == 0) {
return false;
}
lmArticulos.removeAll();
Vector vArticulo = new Vector();
for (int i = 0; i < l.size(); i++) {
Map d = (Map) l.get(i);
lmArticulos.addItem(d.get("art_nombre"));
Articulo aRt = new Articulo();
aRt.setArticulo((String) d.get("art_articulo_id"));
aRt.setNombre((String) d.get("art_nombre"));
aRt.setTamano((String) d.get("art_tamano"));
vArticulo.addElement(aRt);
}
dT.setTemporal(vArticulo);
return true;
}
};

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a4721982-80a7-4cee-9183-6a8d52836e79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: How to save byte array as a file in android and how to view that file in codenameone?

2018-02-14 Thread kantharao512
No Steve, i don't want to load resource file,  here i want to load byte 
array(getting from service) as pdf file.

how to load byte array as pdf file? .

On Wednesday, February 14, 2018 at 7:21:55 PM UTC+5:30, Steve Hannah wrote:
>
> If you're loading a resource file from the file system, you'll need to use 
> the Resources.open(InputStream) variant.  (i.e. open an input stream from 
> the file system, and pass that to Resources.open().
>
> Steve
>
> On Wed, Feb 14, 2018 at 3:35 AM,  
> wrote:
>
>> when i tried to call "Display.getInstance().execute()" method it is 
>> asking URL but here i have byte array(byte[]).. 
>> so how can i use "Display.getInstance().execute()" for byte array(byte[]).
>>
>> On Wednesday, February 14, 2018 at 10:58:41 AM UTC+5:30, Shai Almog wrote:
>>>
>>> Why are you calling Resources.open?
>>> Try Display.getInstance().execute().
>>>
>>> Resources.open works with "resource files" not files.
>>>
>> -- 
>> 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 
>> .
>> Visit this group at 
>> https://groups.google.com/group/codenameone-discussions.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/3c249258-0567-437c-a2ec-010429f9eb5a%40googlegroups.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> 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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/95e79b21-0621-4b28-b151-9974a87d7f7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: How to save byte array as a file in android and how to view that file in codenameone?

2018-02-14 Thread Steve Hannah
If you're loading a resource file from the file system, you'll need to use
the Resources.open(InputStream) variant.  (i.e. open an input stream from
the file system, and pass that to Resources.open().

Steve

On Wed, Feb 14, 2018 at 3:35 AM,  wrote:

> when i tried to call "Display.getInstance().execute()" method it is
> asking URL but here i have byte array(byte[])..
> so how can i use "Display.getInstance().execute()" for byte array(byte[]).
>
> On Wednesday, February 14, 2018 at 10:58:41 AM UTC+5:30, Shai Almog wrote:
>>
>> Why are you calling Resources.open?
>> Try Display.getInstance().execute().
>>
>> Resources.open works with "resource files" not files.
>>
> --
> 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.
> Visit this group at https://groups.google.com/
> group/codenameone-discussions.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/codenameone-discussions/3c249258-0567-437c-a2ec-
> 010429f9eb5a%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVTrjNgqPL7xFGMq_Oz%2BOiarFVXNd1DuFqeoMK6jnQ-FA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] SSL has occurred (ios)

2018-02-14 Thread Gareth Murfin
Did my first install of new app on iOS but it says an SSL error has 
occured, I am accessing https, but that shouldnt be a problem should it ? 
This only happens on iphone.

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c5cc5428-23d9-4f16-a9d5-8eea588d8430%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: How to save byte array as a file in android and how to view that file in codenameone?

2018-02-14 Thread kantharao512
when i tried to call "Display.getInstance().execute()" method it is asking 
URL but here i have byte array(byte[]).. 
so how can i use "Display.getInstance().execute()" for byte array(byte[]).

On Wednesday, February 14, 2018 at 10:58:41 AM UTC+5:30, Shai Almog wrote:
>
> Why are you calling Resources.open?
> Try Display.getInstance().execute().
>
> Resources.open works with "resource files" not files.
>

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3c249258-0567-437c-a2ec-010429f9eb5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Hack/remember size of the desktop skin

2018-02-14 Thread Gareth Murfin
Really enjoying the desktop skin, easily my favourite way to simulate :) 
But I want to hack the initial size, I see you mentioned about getting the 
jframe to do this shai, would it possible to get an example of this? Or 
maybe make it remember each window size change, its perfect way to test 
imho. 

PS- I know you can do this in the built out one, but I want to do it in the 
skin/simulated version. Thanks again, got a great project going here for 
cn1, many thousands of stores will use this across UK. Already has a huge 
userbase in my android 'native' version, but with my cn1 port they all get 
iOS too :)

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d27708bb-d8c0-4bca-a2fe-1d3a5bbc1f30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Hide status bar

2018-02-14 Thread Gareth Murfin
How do you hide the status bar on android and ios? The thing with the time 
in etc, I think it has changed since I last did it. Cheers, Gaz

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1445a0b4-6f53-47c2-a247-a879a7533216%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.