Re: [codenameone-discussions] Connection request freeze

2016-11-07 Thread CODENAME1
Looking at the network monitor, when i fire async( addtoqueue) which has a default timeout of 1min (longpoling- if there is an update , the response is received immediately else a default response is sent after 1 min ). In the mean time, if anyother request is fired( async( addtoqueue) with

Re: [codenameone-discussions] Connection request freeze

2016-11-07 Thread Shai Almog
addToQueue is async. I suggest opening the network monitor and looking at the requests going in/out to see what is stuck and where. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving

[codenameone-discussions] Re: Include XML layout for Android?

2016-11-07 Thread Shai Almog
You can use a native widget if you wrap it in a PeerComponent. Your native interface can return a PeerComponent and when you generate a native interface the Android implementation will be a View. You can then return the view. The Android XML won't work, you will need to handcode that in Java.

[codenameone-discussions] Re: qr scanner in iOS

2016-11-07 Thread Shai Almog
Hi, Make sure to update to the latest version and migrate standard Codename One qr code to the cn1lib. We deprecated the builtin packages a long time ago. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this

Re: [codenameone-discussions] Connection request freeze

2016-11-07 Thread niketkhatiyan
I am not using addtoqueueandwait() . I am using How can I make connectionrequest behave async On Thursday, November 3, 2016 at 7:16:21 PM UTC+1, Steve Hannah wrote: > On Thu, Nov 3, 2016 at 11:10 AM, Steve Hannah   > wrote: > > For long polling, you probably should

[codenameone-discussions] Re: Include XML layout for Android?

2016-11-07 Thread Gareth Murfin
Sorry for all the questions, if it is possible, how do I actually display some native android widgets? Im basically just trying to do "native facebook adverts" ( https://developers.facebook.com/docs/audience-network/android/native-api ) they appear in a section of your screen and contain an

[codenameone-discussions] Re: Send iOS debug build issue

2016-11-07 Thread Wang Jun
Thank you I will try. On Friday, November 4, 2016 at 1:28:21 PM UTC+8, Shai Almog wrote: > > Hi, > I think it's password but you can open the old > codenameone_settings.properties on the previous project and see the > passwords for the certificates there. > -- You received this message

[codenameone-discussions] Re: Include XML layout for Android?

2016-11-07 Thread Gareth Murfin
Ie, in my native android side can I do tings like this ? TextView nativeAdTitle = (TextView) adView.findViewById(R.id.native_ad_title); in order to get at this in the xml ? On Tuesday, November 8, 2016 at 1:04:18 AM UTC+8, Gareth Murfin wrote: > > I have put it in native\android which I

[codenameone-discussions] Re: Include XML layout for Android?

2016-11-07 Thread Gareth Murfin
I have put it in native\android which I assume is the logical thing to do. But the sample I am working from references R.id.native_ad_body in the xml and I get package R does not exist. On Tuesday, November 8, 2016 at 12:41:42 AM UTC+8, Gareth Murfin wrote: > > If I want to include a XML

[codenameone-discussions] qr scanner in iOS

2016-11-07 Thread Wang Jun
If you are experiencing an issue please mention the full platform your issue applies to: IDE: NetBeans Desktop OS: MAC Device: iPhone 6 plus Hi Shai, I met a strange issue, my app used QR scanner (little monkey), it was working well in android and iOS. But recently iOS version can not call the

Re: [codenameone-discussions] capturing javascript alert prompt in native browser

2016-11-07 Thread Steve Hannah
Looks like onAlert isn't implemented in the JavaSE build. The modal nature of it makes it tricker than other callbacks, but I have seen a few posts claiming to offer an implementation (e.g. https://gist.github.com/jewelsea/5614167) that we might be able to adopt. Right now, on simulator, the