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

2016-11-08 Thread Gareth Murfin
Aha, this works.. not got anything to actually *show* yet :) public android.view.View getView() { return nativeAdMedia; } On Tuesday, November 8, 2016 at 11:45:17 PM UTC+8, Gareth Murfin wrote: > > So Im now trying to return the PeerComponent, my "view" on the android >

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

2016-11-08 Thread Gareth Murfin
I stuck recyclerview-v7-21.0.3.aar in native/android and definied the build hint for supportV4, seems to get past the MediaView now :-D On Tuesday, November 8, 2016 at 9:59:16 PM UTC+8, Gareth Murfin wrote: > > Thanks Shai. Im almost at the point of using PeerComponents, but I have > one weird

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

2016-11-08 Thread Gareth Murfin
So Im now trying to return the PeerComponent, my "view" on the android side is a linearlayout, returning this as a PeerComponent fails to compile, I also tried returning adView.getRootView(); but again this failed, and also casting my linear to a view before returning also fails to compile

[codenameone-discussions] Re: iOS Build Error - plist Insertion

2016-11-08 Thread mcw
Thanks, that fixes the problem. The build works and I am able to connect. According to the docs this does not require an app store review, so hopefully it will be a smooth upgrade. On Friday, November 4, 2016 at 10:16:50 PM UTC-7, Shai Almog wrote: > > I think this should work: > > >

Re: [codenameone-discussions] Connection request freeze

2016-11-08 Thread Shai Almog
If you used addToQueue without wait then the request is happening on the network thread and not on the Codename One thread so the UI isn't waiting for that thread. It is waiting for something else you did in the app. -- You received this message because you are subscribed to the Google Groups

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

2016-11-08 Thread Shai Almog
It should work fine not sure why you are seeing the black screen. If you try to interact with the black screen are the components physically there? Do you see anything suspicious in DDMS? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions"

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

2016-11-08 Thread Gareth Murfin
Thanks Shai. Im almost at the point of using PeerComponents, but I have one weird error that appears to happen when I run MediaView nativeAdMedia = new MediaView(context); It says the class is not found, it seems to find the others such as com.facebook.ads.NativeAd; but not