[codenameone-discussions] Support for putting gui contents back the way they were?
Is there any support for leaving a screen and coming back to it with the same data the user entered, apart from the obvious of simply saving it and putting it back? It might be a nice feature if this was automatically done somehow, -- 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/2552fb99-affa-4a52-9669-ae794cb73712%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: How to make pull to refresh work?
Got it thanks, that is COOL AS HELL.. I recall spending a serious amount of time trying to get this going on android in the past. On Friday, November 11, 2016 at 1:40:28 PM UTC+8, Shai Almog wrote: > > Pull to refresh will only work on a scrollable container. Do you have a > standard layout in the content pane? > -- 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/ae7af635-a29f-49b4-9935-ea1530f7810e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Unstylable gaps on left side menu
aha I did not know about that, SideNavigationPanel seems to work, although there are still some very faint lines in the same place as the boxes were. Hopefully client wont notice for now :) On Monday, November 14, 2016 at 1:22:46 PM UTC+8, Shai Almog wrote: > > Did you set it to SideNavigationPanel or something else? > -- 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/30753dc3-f64b-4931-94d0-884dde19ad90%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Unstylable gaps on left side menu
no its on image_scaled_fill, my forms use same uiid and theyre fine,. On Friday, November 11, 2016 at 1:38:40 PM UTC+8, Shai Almog wrote: > > I'm assuming you used the background as a scaled to fit instead of scale > to fill. > -- 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/39406cc4-3e59-415e-a2a7-a2f6b2cfbac9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] How to make pull to refresh work?
f.getContentPane().addPullToRefresh(new Runnable() { public void run() { _("PULLED."); String count = " " + f.getContentPane().getComponentCount(); f.addComponent(0, new Button("Button " + count)); f.invalidate(); } }); this doesnt seem to result in anything at all, has it changed? Also would it be possible to change the text "pull to refresh" to use for other things? -- 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/2242e651-9802-4d59-8349-fcd0fdac449a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Include XML layout for Android?
Thanks mate im gonna recreate it on the Android side, when that works ill bring it back into cn1, probably just some dumb error of mine. I dont see much in ddms and tapping them does nothing. On Wednesday, November 9, 2016 at 1:54:20 PM UTC+8, Shai Almog wrote: > > 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" 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/5b3d31fc-d3af-436f-bd7b-21159461063e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Include XML layout for Android?
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 > 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 (View > cannot be converted to PeerComponent). What must I do to my linear layout > to get it returned as a view? > > On Tuesday, November 8, 2016 at 10:55:37 PM UTC+8, Gareth Murfin wrote: >> >> 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 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 com.facebook.ads.MediaView; any ideas >>> why that is? >>> >>> ejecting re-init on previously-failed class >>> java.lang.Class >>> I/art ( 1046): Rejecting re-init on previously-failed class >>> java.lang.Class >>> I/art ( 1046): Rejecting re-init on previously-failed class >>> java.lang.Class >>> I/art ( 1046): Rejecting re-init on previously-failed class >>> java.lang.Class >>> I/art ( 1046): Rejecting re-init on previously-failed class >>> java.lang.Class >>> I/art ( 1046): Rejecting re-init on previously-failed class >>> java.lang.Class >>> I/art ( 1046): Rejecting re-init on previously-failed class >>> java.lang.Class >>> I/art ( 1046): Rejecting re-init on previously-failed class >>> java.lang.Class >>> I/art ( 1046): Rejecting re-init on previously-failed class >>> java.lang.Class >>> I/MotoNetwCtrlr( 1193): onReceive: Received intent=Intent { >>> act=android.net.wifi.RSSI_CHANGED flg=0x410 (has extras) } >>> Action=android.net.wifi.RSSI_CHANGED >>> I/MotoNetwCtrlr.MotoWifiSignalCtrlr( 1193): handleBroadcast: Entered: >>> Intent=Intent { act=android.net.wifi.RSSI_CHANGED flg=0x410 (has >>> extras) } Action=android.net.wifi.RSSI_CHANGED >>> I/MotoNetwCtrlr.MotorolaWifiSignalController( 1193): isDirty: returns >>> false >>> I/MotoNetwCtrlr.MotoWifiSignalCtrlr( 1193): handleBroadcast: Completed >>> I/MotoNetwCtrlr( 1193): onReceive: Completed intent=Intent { >>> act=android.net.wifi.RSSI_CHANGED flg=0x410 (has extras) } >>> Action=android.net.wifi.RSSI_CHANGED >>> I/art ( 1046): Rejecting re-init on previously-failed class >>> java.lang.Class >>> D/AndroidRuntime( 1046): Shutting down VM >>> E/AndroidRuntime( 1046): FATAL EXCEPTION: main >>> E/AndroidRuntime( 1046): Process: com.raffler, PID: 1046 >>> E/AndroidRuntime( 1046): java.lang.NoClassDefFoundError: >>> com.facebook.ads.internal.i.c.c >>> E/AndroidRuntime( 1046):at >>> com.facebook.ads.MediaView.(Unknown Source) >>> E/AndroidRuntime( 1046):at >>> com.facebook.ads.MediaView.(Unknown Source) >>> E/AndroidRuntime( 1046):at >>> userclasses.nativeinterfaces.NativeFBAdvertImpl.inflateAd(NativeFBAdvertImpl.java:225) >>> E/AndroidRuntime( 1046):at >>> userclasses.nativeinterfaces.NativeFBAdvertImpl.onAdLoaded(NativeFBAdvertImpl.java:130) >>> E/AndroidRuntime( 1046):at >>> com.facebook.ads.NativeAd$1$1.a(Unknown Source) >>> E/AndroidRuntime( 1046):at >>> com.facebook.ads.internal.c.b$1$1.run(Unknown Source) >>> E/AndroidRuntime( 1046):at >>> android.os.Handler.handleCallback(Handler.java:739) >>> E/AndroidRuntime( 1046):at >>> android.os.Handler.dispatchMessage(Handler.java:95) >>> E/AndroidRuntime( 1046):at >>> android.os.Looper.loop(Looper.java:135) >>> E/AndroidRuntime( 1046):at >>> android.app.ActivityThread.main(ActivityThread.java:5343) >>> E/AndroidRuntime( 1046):at >>> java.lang.reflect.Method.invoke(Native Method) >>> E/AndroidRuntime( 1046):at >>> java.lang.refl
[codenameone-discussions] Re: Include XML layout for Android?
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 (View cannot be converted to PeerComponent). What must I do to my linear layout to get it returned as a view? On Tuesday, November 8, 2016 at 10:55:37 PM UTC+8, Gareth Murfin wrote: > > 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 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 com.facebook.ads.MediaView; any ideas >> why that is? >> >> ejecting re-init on previously-failed class >> java.lang.Class >> I/art ( 1046): Rejecting re-init on previously-failed class >> java.lang.Class >> I/art ( 1046): Rejecting re-init on previously-failed class >> java.lang.Class >> I/art ( 1046): Rejecting re-init on previously-failed class >> java.lang.Class >> I/art ( 1046): Rejecting re-init on previously-failed class >> java.lang.Class >> I/art ( 1046): Rejecting re-init on previously-failed class >> java.lang.Class >> I/art ( 1046): Rejecting re-init on previously-failed class >> java.lang.Class >> I/art ( 1046): Rejecting re-init on previously-failed class >> java.lang.Class >> I/art ( 1046): Rejecting re-init on previously-failed class >> java.lang.Class >> I/MotoNetwCtrlr( 1193): onReceive: Received intent=Intent { >> act=android.net.wifi.RSSI_CHANGED flg=0x410 (has extras) } >> Action=android.net.wifi.RSSI_CHANGED >> I/MotoNetwCtrlr.MotoWifiSignalCtrlr( 1193): handleBroadcast: Entered: >> Intent=Intent { act=android.net.wifi.RSSI_CHANGED flg=0x410 (has >> extras) } Action=android.net.wifi.RSSI_CHANGED >> I/MotoNetwCtrlr.MotorolaWifiSignalController( 1193): isDirty: returns >> false >> I/MotoNetwCtrlr.MotoWifiSignalCtrlr( 1193): handleBroadcast: Completed >> I/MotoNetwCtrlr( 1193): onReceive: Completed intent=Intent { >> act=android.net.wifi.RSSI_CHANGED flg=0x410 (has extras) } >> Action=android.net.wifi.RSSI_CHANGED >> I/art ( 1046): Rejecting re-init on previously-failed class >> java.lang.Class >> D/AndroidRuntime( 1046): Shutting down VM >> E/AndroidRuntime( 1046): FATAL EXCEPTION: main >> E/AndroidRuntime( 1046): Process: com.raffler, PID: 1046 >> E/AndroidRuntime( 1046): java.lang.NoClassDefFoundError: >> com.facebook.ads.internal.i.c.c >> E/AndroidRuntime( 1046):at >> com.facebook.ads.MediaView.(Unknown Source) >> E/AndroidRuntime( 1046):at >> com.facebook.ads.MediaView.(Unknown Source) >> E/AndroidRuntime( 1046):at >> userclasses.nativeinterfaces.NativeFBAdvertImpl.inflateAd(NativeFBAdvertImpl.java:225) >> E/AndroidRuntime( 1046):at >> userclasses.nativeinterfaces.NativeFBAdvertImpl.onAdLoaded(NativeFBAdvertImpl.java:130) >> E/AndroidRuntime( 1046):at >> com.facebook.ads.NativeAd$1$1.a(Unknown Source) >> E/AndroidRuntime( 1046):at >> com.facebook.ads.internal.c.b$1$1.run(Unknown Source) >> E/AndroidRuntime( 1046):at >> android.os.Handler.handleCallback(Handler.java:739) >> E/AndroidRuntime( 1046):at >> android.os.Handler.dispatchMessage(Handler.java:95) >> E/AndroidRuntime( 1046):at android.os.Looper.loop(Looper.java:135) >> E/AndroidRuntime( 1046):at >> android.app.ActivityThread.main(ActivityThread.java:5343) >> E/AndroidRuntime( 1046):at java.lang.reflect.Method.invoke(Native >> Method) >> E/AndroidRuntime( 1046):at >> java.lang.reflect.Method.invoke(Method.java:372) >> E/AndroidRuntime( 1046):at >> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) >> E/AndroidRuntime( 1046):at >> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) >> W/ActivityManager( 893): Force finishing activity 1 >> com.raffler/.MyApplicationStub >> I/OpenGLRenderer( 893): Initialized EGL, version 1.4 >> W/ActivityManager( 893): Activity pause timeout for >> ActivityRecord{18b90b08 u0 com.raffler/.MyA
[codenameone-discussions] Re: Include XML layout for Android?
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 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 com.facebook.ads.MediaView; any ideas > why that is? > > ejecting re-init on previously-failed class > java.lang.Class > I/art ( 1046): Rejecting re-init on previously-failed class > java.lang.Class > I/art ( 1046): Rejecting re-init on previously-failed class > java.lang.Class > I/art ( 1046): Rejecting re-init on previously-failed class > java.lang.Class > I/art ( 1046): Rejecting re-init on previously-failed class > java.lang.Class > I/art ( 1046): Rejecting re-init on previously-failed class > java.lang.Class > I/art ( 1046): Rejecting re-init on previously-failed class > java.lang.Class > I/art ( 1046): Rejecting re-init on previously-failed class > java.lang.Class > I/art ( 1046): Rejecting re-init on previously-failed class > java.lang.Class > I/MotoNetwCtrlr( 1193): onReceive: Received intent=Intent { > act=android.net.wifi.RSSI_CHANGED flg=0x410 (has extras) } > Action=android.net.wifi.RSSI_CHANGED > I/MotoNetwCtrlr.MotoWifiSignalCtrlr( 1193): handleBroadcast: Entered: > Intent=Intent { act=android.net.wifi.RSSI_CHANGED flg=0x410 (has > extras) } Action=android.net.wifi.RSSI_CHANGED > I/MotoNetwCtrlr.MotorolaWifiSignalController( 1193): isDirty: returns false > I/MotoNetwCtrlr.MotoWifiSignalCtrlr( 1193): handleBroadcast: Completed > I/MotoNetwCtrlr( 1193): onReceive: Completed intent=Intent { > act=android.net.wifi.RSSI_CHANGED flg=0x410 (has extras) } > Action=android.net.wifi.RSSI_CHANGED > I/art ( 1046): Rejecting re-init on previously-failed class > java.lang.Class > D/AndroidRuntime( 1046): Shutting down VM > E/AndroidRuntime( 1046): FATAL EXCEPTION: main > E/AndroidRuntime( 1046): Process: com.raffler, PID: 1046 > E/AndroidRuntime( 1046): java.lang.NoClassDefFoundError: > com.facebook.ads.internal.i.c.c > E/AndroidRuntime( 1046):at > com.facebook.ads.MediaView.(Unknown Source) > E/AndroidRuntime( 1046):at > com.facebook.ads.MediaView.(Unknown Source) > E/AndroidRuntime( 1046):at > userclasses.nativeinterfaces.NativeFBAdvertImpl.inflateAd(NativeFBAdvertImpl.java:225) > E/AndroidRuntime( 1046):at > userclasses.nativeinterfaces.NativeFBAdvertImpl.onAdLoaded(NativeFBAdvertImpl.java:130) > E/AndroidRuntime( 1046):at com.facebook.ads.NativeAd$1$1.a(Unknown > Source) > E/AndroidRuntime( 1046):at > com.facebook.ads.internal.c.b$1$1.run(Unknown Source) > E/AndroidRuntime( 1046):at > android.os.Handler.handleCallback(Handler.java:739) > E/AndroidRuntime( 1046):at > android.os.Handler.dispatchMessage(Handler.java:95) > E/AndroidRuntime( 1046):at android.os.Looper.loop(Looper.java:135) > E/AndroidRuntime( 1046):at > android.app.ActivityThread.main(ActivityThread.java:5343) > E/AndroidRuntime( 1046):at java.lang.reflect.Method.invoke(Native > Method) > E/AndroidRuntime( 1046):at > java.lang.reflect.Method.invoke(Method.java:372) > E/AndroidRuntime( 1046):at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) > E/AndroidRuntime( 1046):at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) > W/ActivityManager( 893): Force finishing activity 1 > com.raffler/.MyApplicationStub > I/OpenGLRenderer( 893): Initialized EGL, version 1.4 > W/ActivityManager( 893): Activity pause timeout for > ActivityRecord{18b90b08 u0 com.raffler/.MyApplicationStub t5554 f} > > > On Tuesday, November 8, 2016 at 1:45:11 PM UTC+8, Shai Almog wrote: >> >> 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. >> Notice that every Android XML syntax can be written in Java so this should >> be possible. The alternative is to wrap this entire thing in AAR which >> might be more painful. >> > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group a
[codenameone-discussions] Re: Include XML layout for Android?
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 com.facebook.ads.MediaView; any ideas why that is? ejecting re-init on previously-failed class java.lang.Class I/art ( 1046): Rejecting re-init on previously-failed class java.lang.Class I/art ( 1046): Rejecting re-init on previously-failed class java.lang.Class I/art ( 1046): Rejecting re-init on previously-failed class java.lang.Class I/art ( 1046): Rejecting re-init on previously-failed class java.lang.Class I/art ( 1046): Rejecting re-init on previously-failed class java.lang.Class I/art ( 1046): Rejecting re-init on previously-failed class java.lang.Class I/art ( 1046): Rejecting re-init on previously-failed class java.lang.Class I/art ( 1046): Rejecting re-init on previously-failed class java.lang.Class I/MotoNetwCtrlr( 1193): onReceive: Received intent=Intent { act=android.net.wifi.RSSI_CHANGED flg=0x410 (has extras) } Action=android.net.wifi.RSSI_CHANGED I/MotoNetwCtrlr.MotoWifiSignalCtrlr( 1193): handleBroadcast: Entered: Intent=Intent { act=android.net.wifi.RSSI_CHANGED flg=0x410 (has extras) } Action=android.net.wifi.RSSI_CHANGED I/MotoNetwCtrlr.MotorolaWifiSignalController( 1193): isDirty: returns false I/MotoNetwCtrlr.MotoWifiSignalCtrlr( 1193): handleBroadcast: Completed I/MotoNetwCtrlr( 1193): onReceive: Completed intent=Intent { act=android.net.wifi.RSSI_CHANGED flg=0x410 (has extras) } Action=android.net.wifi.RSSI_CHANGED I/art ( 1046): Rejecting re-init on previously-failed class java.lang.Class D/AndroidRuntime( 1046): Shutting down VM E/AndroidRuntime( 1046): FATAL EXCEPTION: main E/AndroidRuntime( 1046): Process: com.raffler, PID: 1046 E/AndroidRuntime( 1046): java.lang.NoClassDefFoundError: com.facebook.ads.internal.i.c.c E/AndroidRuntime( 1046):at com.facebook.ads.MediaView.(Unknown Source) E/AndroidRuntime( 1046):at com.facebook.ads.MediaView.(Unknown Source) E/AndroidRuntime( 1046):at userclasses.nativeinterfaces.NativeFBAdvertImpl.inflateAd(NativeFBAdvertImpl.java:225) E/AndroidRuntime( 1046):at userclasses.nativeinterfaces.NativeFBAdvertImpl.onAdLoaded(NativeFBAdvertImpl.java:130) E/AndroidRuntime( 1046):at com.facebook.ads.NativeAd$1$1.a(Unknown Source) E/AndroidRuntime( 1046):at com.facebook.ads.internal.c.b$1$1.run(Unknown Source) E/AndroidRuntime( 1046):at android.os.Handler.handleCallback(Handler.java:739) E/AndroidRuntime( 1046):at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 1046):at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime( 1046):at android.app.ActivityThread.main(ActivityThread.java:5343) E/AndroidRuntime( 1046):at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 1046):at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime( 1046):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) E/AndroidRuntime( 1046):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) W/ActivityManager( 893): Force finishing activity 1 com.raffler/.MyApplicationStub I/OpenGLRenderer( 893): Initialized EGL, version 1.4 W/ActivityManager( 893): Activity pause timeout for ActivityRecord{18b90b08 u0 com.raffler/.MyApplicationStub t5554 f} On Tuesday, November 8, 2016 at 1:45:11 PM UTC+8, Shai Almog wrote: > > 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. Notice > that every Android XML syntax can be written in Java so this should be > possible. The alternative is to wrap this entire thing in AAR which might > be more painful. > -- 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/05f2e17a-031d-4f49-97c1-ea8c302e4ecb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Include XML layout for Android?
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 advert (they dont take over full screen) so I want to embed a LinearLayout inside a CN1 container basically, if this is possible? On Tuesday, November 8, 2016 at 1:07:07 AM UTC+8, Gareth Murfin wrote: > > 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 ? > > android:id="@+id/native_ad_title" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:ellipsize="end" > android:lines="1" > android:textColor="@android:color/black" > android:textSize="18sp" /> > > > On Tuesday, November 8, 2016 at 1:04:18 AM UTC+8, Gareth Murfin wrote: >> >> 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 layout for my Android build, can I and where >>> do I put it ? >>> >> -- 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/1dfc2afd-6119-4a69-be6d-74ec8fa1a77f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Include XML layout for Android?
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 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 layout for my Android build, can I and where >> do I put it ? >> > -- 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/2a2aa439-ca25-4c77-b25d-8e3726faefae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Include XML layout for Android?
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 layout for my Android build, can I and where do > I put it ? > -- 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/b0d60eb5-b191-43da-9f01-524bcda1d444%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: An exception occurred during transition paint this might be valid in case of a resize in the middle of a transition
Looks like it happens when you pass something like this pathStatic.arc(xPos, yPos, circleW, circleH , 180, 180); // *ie the same start and complete angle* Turned out to be a bug in my logic as I should not have been passing the same value like that, but I think that still maybe qualifies as a bug somewhere :) On Tuesday, October 25, 2016 at 10:44:55 AM UTC+8, Shai Almog wrote: > > It looks like this is triggered by one of the arc paths can you log these > calls and see which arguments trigger this? > -- 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/ad037d86-1aa3-4f23-a86e-530646bfc75d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: An exception occurred during transition paint this might be valid in case of a resize in the middle of a transition
Note, I do use general path and drawshape: private void drawCircleBar(Graphics g, int pullToTheLeftPixels, int angleToStartOn, int angleToEndOn, int colour) { GeneralPath pathStatic = new GeneralPath();//these should not be made each time but had repaint issues when I did, see https://groups.google.com/forum/embed/?place=forum/codenameone-discussions=true=true=en=http%3A%2F%2Fwww.codenameone.com%2Fdiscussion-forum.html#!topic/codenameone-discussions/Qb2uJtU82BY GeneralPath pathDynamic = new GeneralPath(); strokeWidth= myWidth/17; g.setColor(0xff); if (stroke == null) { stroke = new Stroke(strokeWidth, Stroke.CAP_BUTT, Stroke.JOIN_ROUND, 1f); } //for testing /* if (progress++>=100) { progress=0; }*/ //debug: //g.drawRect(getX(),getY(), myWidth, myHeight); //draw in centre so we can see where it is //g.drawRect( getX()+(myWidth/2)-5,getY()+(myHeight/2)-5, 10, 10); g.setFont(f); g.setAntiAliased(true); int pixelsToMoveTextAndImageDown = getHeight()/14; //draw full arc int sideAngle = 50; //the amount of degrees less than a semi circle (180) double startAngle = Math.toRadians(angleToStartOn+sideAngle);//180 for perfect semi circle, but it isnt, so 220 double angleComplete= Math.toRadians(angleToEndOn-sideAngle); int circleW = myHeight; if (circleW>myWidth) { circleW=myWidth; } /no need circleW-=strokeWidth*2; circleW+=strokeWidth*3; int circleH = circleW; int xPos = getX()+((myWidth/2)-(circleW/2))-pullToTheLeftPixels; int yPos = getY()+(myHeight/4);//getY()+myHeight/2;//getY()+strokeWidth; pathStatic.arc(xPos, yPos, circleW, circleH , startAngle, angleComplete); g.drawShape(pathStatic, stroke); //_("progress:"+progress+" which is "+(progress*3.6)); String percentageStr = ""+progress+"%"; int stringWidth = f.stringWidth("XXX"); Image thumbImage = thumbsUp; Image thumbImageSelected = thumbsUpSelected; switch (myPos) { case PROGRESS_BAR_LEFT: break; case PROGRESS_BAR_RIGHT: pullToTheLeftPixels = -(int)(stringWidth/1.1f);//so it sits a bit more right thumbImage = thumbsDown; thumbImageSelected = thumbsDownSelected; pixelsToMoveTextAndImageDown = thumbsUp.getHeight()/3; break; } //tweaks for different rews, int yForThumb = f.getHeight()/3+yPos+thumbsUp.getHeight()/2;//(((getY()+myHeight/2)-f.getHeight()*2))-thumbsUp.getHeight()/2;//-thumbsUp.getHeight()/3)+pixelsToMoveTextAndImageDown; //thumbsUp or down g.drawImage(thumbImage, (((getX()+myWidth/2)-thumbsUp.getWidth()/2)-pullToTheLeftPixels)+stringWidth/3, yForThumb ); if (isSelected) //draw the pressed version if we know we have pressed it. { g.drawImage(thumbImageSelected, (((getX()+myWidth/2)-thumbsUp.getWidth()/2)-pullToTheLeftPixels)+stringWidth/3, yForThumb ); } switch (myPos) { case PROGRESS_BAR_LEFT: pixelsToMoveTextAndImageDown = thumbsDown.getHeight();//-thumbsDown.getHeight()/8; break; case PROGRESS_BAR_RIGHT: pullToTheLeftPixels = -(int)(stringWidth/1.1f);//so it sits a bit more right pixelsToMoveTextAndImageDown = -((thumbsDown.getHeight()/3)+f.getHeight()/4);//*2; // the text is above the thumb break; } //add +stringWidth/3 here to nudge it to the right a touch, same with thumbs up image (since the circle is pulled left and we dont want //this stuff to loook too close to edge g.setColor(0xff); g.drawString(percentageStr, (((getX()+myWidth/2)-stringWidth/2)-pullToTheLeftPixels)+stringWidth/3, yForThumb+pixelsToMoveTextAndImageDown);//(getY()+myHeight/2)+pixelsToMoveTextAndImageDown); //blue progress bit float progressAngle = (float)((progress*1.3f)); angleComplete = Math.toRadians(progressAngle); g.setColor(colour); pathDynamic.arc(xPos, yPos, circleW, circleH , startAngle, angleComplete); //draw actual progress arc g.drawShape(pathDynamic, stroke); } On Monday, October 24, 2016 at 5:14:17 PM UTC+8, Gareth Murfin wrote: > > Ive come back to an app I have not touched in around 2 months. Suddenly it > is freezing and it is very hard to
Re: [codenameone-discussions] SCREEN/APP FREEZING
Im experiencing something similar on the simulator, not even on a real device, An exception occurred during transition paint this might be valid in case of a resize in the middle of a transition java.lang.StackOverflowError at com.codename1.ui.geom.GeneralPath$Ellipse._addToPath(GeneralPath.java:971) at com.codename1.ui.geom.GeneralPath$Ellipse._addToPath(GeneralPath.java:968) at com.codename1.ui.geom.GeneralPath$Ellipse._addToPath(GeneralPath.java:969) at com.codename1.ui.geom.GeneralPath$Ellipse._addToPath(GeneralPath.java:969) at com.codename1.ui.geom.GeneralPath$Ellipse._addToPath(GeneralPath.java:969) On Monday, October 24, 2016 at 3:09:57 PM UTC+8, Jérémy MARQUER wrote: > > Hi, > What do you mean by sleeping off the EDT ? > > On Saturday, October 22, 2016 at 4:48:11 AM UTC+2, Shai Almog wrote: >> >> If you have intensive work you need to sleep off the EDT between work >> batches. Even multi-core CPU's are pretty damn weak on mobile. >> > -- 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/6794d49a-7724-47bb-9a02-95cf601275c4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: app needs permission to make calls
I am asking for the ip address, does that make the permission happen?? On Wednesday, October 12, 2016 at 10:22:14 PM UTC+8, Gareth Murfin wrote: > > This is on Android btw, Im assuming many people are suffering from this. > > On Wednesday, October 12, 2016 at 10:21:14 PM UTC+8, Gareth Murfin wrote: >> >> Still is happening to me, I am not using any dial or get udid, any other >> thought? >> >> On Thursday, October 6, 2016 at 11:04:42 AM UTC+8, Shai Almog wrote: >>> >>> There was an issue with push notification triggering this which should >>> be resolved. >>> If you try to get the UDID it will also trigger this prompt. >>> >> -- 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/2fb76446-3ca8-468c-99e1-b29f0a797135%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: app needs permission to make calls
This is on Android btw, Im assuming many people are suffering from this. On Wednesday, October 12, 2016 at 10:21:14 PM UTC+8, Gareth Murfin wrote: > > Still is happening to me, I am not using any dial or get udid, any other > thought? > > On Thursday, October 6, 2016 at 11:04:42 AM UTC+8, Shai Almog wrote: >> >> There was an issue with push notification triggering this which should be >> resolved. >> If you try to get the UDID it will also trigger this prompt. >> > -- 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/e419c0a3-f453-4795-9fa3-53f138a1427c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Re: Why does Socket.getHostOrIP() return localhost ?
how could it be done on the server side though? I want the IP of the client, I dont see how the server could work it out ? On 22 September 2016 at 04:49, Shai Almog <shai.al...@gmail.com> wrote: > This is usually done on the server side where it is more reliable as the > IP might be 192.168.* which will give you nothing. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "CodenameOne Discussions" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/codenameone-discussions/myQHUlgkm7c/unsubscribe. > To unsubscribe from this group and all its topics, 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/070e0558-8b7d-4bd8-b347- > 0928b35046c5%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/070e0558-8b7d-4bd8-b347-0928b35046c5%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Gareth Murfin (Android Freelancer - www.garethmurfin.co.uk) -- 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/CANOaY6meha7PjLBqfJhjVaBm-d4y70jBQi5AwAdcn3R7ViT%3Dog%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Re: Why does Socket.getHostOrIP() return localhost ?
on Android.. is it problematic? I saw some native code for android that claims to work, not tried yet. My client wishes to identify which country the user is in via their ip (some sort of traceroute I assume) - that is why we need the ip. I guess I could visit whatsmyip.com and scrape it somehow. On 21 September 2016 at 05:47, Shai Almog <shai.al...@gmail.com> wrote: > On which OS? > Notice that getting the current host/IP is problematic. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "CodenameOne Discussions" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/codenameone-discussions/myQHUlgkm7c/unsubscribe. > To unsubscribe from this group and all its topics, 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/2548ff0c-494c-4c57-a3cc- > fe5c5811231c%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/2548ff0c-494c-4c57-a3cc-fe5c5811231c%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Gareth Murfin (Android Freelancer - www.garethmurfin.co.uk) -- 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/CANOaY6nbbuyYrBxkCV6yJfdUKo2jsHRiPR99w2k5uOX8kLZm4w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Type.KeyPress not called
yes its just for testing my game on simulator (and I thinnk in JS builds?) i have used booleans to get around this. On Thursday, September 1, 2016 at 1:15:46 PM UTC+8, Shai Almog wrote: > > Key listener only binds release events never press events. I don't think > that event type has any "real" usage. > -- 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/3ff25296-7be2-4c0d-a888-c682f7f65165%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Type.KeyPress not called
When I do this code Type.KeyRelease is detected but never Type.KeyPress, why is that ? f.addKeyListener(RIGHT, new ActionListener() { public void actionPerformed(ActionEvent evt) { _("///RIGHT PRESSED."); if (evt.getEventType()==Type.KeyPress) { _("PRESS"); game.keyPressed(DDragon.KEYCODE_RIGHT); } if (evt.getEventType()==Type.KeyRelease) { _("RELEASE"); game.keyReleased(DDragon.KEYCODE_RIGHT); } } }); -- 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/5bfeae99-2149-44f8-8377-ba889ffbd1b9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Facebook connection, display problem
good luck, I seem to remember the FK SDK is a nightmare even natively, I had once wrapped it all up entirely into a very simple object that could do everything nicely (for native android) if I can get back to that on Android I will make a lib, but it wont work on iOS. On Friday, August 26, 2016 at 8:29:17 PM UTC+8, usabg...@gmail.com wrote: > > I'm trying to find a solution, everydays. > -- 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/ed8872f5-b640-45df-8bd5-0cac746a9803%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Re: How to have a right side menu, with container in it
Works only if I have that title bar thing showing which I dont want I want my own button to pop open a menu on the right, on the left its a piece of cake, im not going to try with layerlayouts and animating them in On Friday, August 26, 2016 at 5:08:54 PM UTC+8, Gareth Murfin wrote: > > It doesnt work, would be great if you could give an example, for now Im > just actually going to tell clients you cant have a right menu, far too > confusing and hard to do, wasted days trying to get something to appear > > On Saturday, August 6, 2016 at 1:25:01 PM UTC+8, Shai Almog wrote: >> >> If it's the container then you need to have a command and put the client >> property into that then add the command. >> > -- 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/923d52e7-155f-46d2-9926-58e95eae1fea%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Facebook connection, display problem
If you ever get it to work Id love to know how, I had to give up on FB altogether, I tell clients its not an option because i couldnt get it to work on any level On Tuesday, August 23, 2016 at 11:31:34 PM UTC+8, usabg...@gmail.com wrote: > > yes i know that, my facebook queries worked before, but know, i thing that > i have all, and my code it's complete. But when push facebook button in > order to launch my home page, i see nothing. that makes me crazy. > > On Tuesday, August 23, 2016 at 7:28:42 AM UTC+2, Shai Almog wrote: >> >> If you have your login you can now use the Facebook Graph API webservice >> to query facebook. >> > -- 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/17a0831f-07da-4239-b712-3bdf2dc6ae03%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Right Menu Examples - ANYONE!
Is there anyone who can give me some simple example code that shows how to get even a single label top appear on a right side menu ? I have not managed this once in days of trying, Im beyond frustrated now, absolutely at punching walls stages. -- 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/3c8461a2-06d2-4b32-b8be-4ad7ff6f9267%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Re: How to have a right side menu, with container in it
It doesnt work, would be great if you could give an example, for now Im just actually going to tell clients you cant have a right menu, far too confusing and hard to do, wasted days trying to get something to appear On Saturday, August 6, 2016 at 1:25:01 PM UTC+8, Shai Almog wrote: > > If it's the container then you need to have a command and put the client > property into that then add the command. > -- 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/cd98aacd-4c02-46ff-b873-6a672b3471c2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: App crashes (only when installed from google play)
Apologies client got a proper logcat and it was my fault, some missing classes when doing the install_referrer. On Thursday, August 25, 2016 at 6:00:46 PM UTC+8, Gareth Murfin wrote: > > My app dies every time anyone installs from google play, I cannot test iot > since im not in the uk, but Im seeing this: > > java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 > [EDT] 0:0:14,591 - java.lang.ArrayIndexOutOfBoundsException: length=0; > index=0 > at com.codename1.ui.Component.pointerPressed(Component.java:3173) > at com.codename1.ui.Display.handleEvent(Display.java:2001) > at com.codename1.ui.Display.edtLoopImpl(Display.java:1067) > > at com.codename1.ui.Display.mainEDTLoop(Display.java:996) > at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120) > at > com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60) > at java.lang.Thread.run(Thread.java:818) > > now idea how to debug this. > -- 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/0ad450bf-0fb4-46f7-bf66-b68e5a8a97a1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] App crashes (only when installed from google play)
My app dies every time anyone installs from google play, I cannot test iot since im not in the uk, but Im seeing this: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 [EDT] 0:0:14,591 - java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 at com.codename1.ui.Component.pointerPressed(Component.java:3173) at com.codename1.ui.Display.handleEvent(Display.java:2001) at com.codename1.ui.Display.edtLoopImpl(Display.java:1067) at com.codename1.ui.Display.mainEDTLoop(Display.java:996) at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120) at com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60) at java.lang.Thread.run(Thread.java:818) now idea how to debug this. -- 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/c76a986b-7031-4cf3-9dae-672fef440894%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Constraint check for null returns true (erroneously)
Constraint c = (Constraint)((TableLayout)CENTRE.getLayout()).getComponentConstraint(TOPBIT); if (c==null); { _("constraint is null cant adjust it!"); } c.setHeightPercentage(100); Somehow in this snippet I see the message telling me c is null, but then the command setHeightPercentage works fine, very strange. I wonder if there is a bug somehow in the check for null (or because its static or something?), just reporting out of interest it doesnt affect me. -- 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/b119285e-2738-4859-981c-868aa1c47329%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: AndroidNativeUtil.getActivity().getApplication().getTracker()
ah of course you need to make getTracker().. Ended up doing it like this, got a compile will know later if it works: // The following line should be changed to include the correct property id. private static final String PROPERTY_ID = Prefs.GOOGLE_ANALYTICS_AGENT_ANDROID;// "UA-X-Y"; /** * Enum used to identify the tracker that needs to be used for tracking. * * A single tracker is usually enough for most purposes. In case you do need multiple trackers, * storing them all in Application object helps ensure that they are created only once per * application instance. */ public enum TrackerName { APP_TRACKER, // Tracker used only in this app. GLOBAL_TRACKER, // Tracker used by all the apps from a company. eg: roll-up tracking. ECOMMERCE_TRACKER, // Tracker used by all ecommerce transactions from a company. } HashMap<TrackerName, Tracker> mTrackers = new HashMap<TrackerName, Tracker>(); synchronized Tracker getTracker(TrackerName trackerId) { if (!mTrackers.containsKey(trackerId)) { GoogleAnalytics analytics = GoogleAnalytics.getInstance(AndroidNativeUtil.getActivity()); Tracker t = analytics.newTracker(PROPERTY_ID); mTrackers.put(trackerId, t); } return mTrackers.get(trackerId); } public void doTracking() { // Get tracker. //getTracker() does not exist!!! Tracker t = getTracker(TrackerName.APP_TRACKER); // Set screen name. t.setScreenName("Splash");//i didnt know what to put in here so i put splash for now since it should launch the app thorugh that each time anyway t.send(new HitBuilders.ScreenViewBuilder()/*.setCampaignParamsFromUrl(campaignData)*/.build()); } On Monday, August 22, 2016 at 7:46:31 AM UTC+8, Gareth Murfin wrote: > > I am trying to implement this: > https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#google-play-campaigns > > but getTracker() does not exist when I do this, > > Tracker t = > AndroidNativeUtil.getActivity().getApplication().getTracker(TrackerName.APP_TRACKER); > > How do I get around that ? Im thinking maybe all the google tracking stuff > has updated on their end, but maybe not yours? > > It looks like some time ago I managed to get a tracker using this: > > GoogleAnalytics analytics = > GoogleAnalytics.getInstance(AndroidNativeUtil.getActivity()); > analytics.getLogger().setLogLevel(Logger.LogLevel.VERBOSE); > analytics.setLocalDispatchPeriod(1800); > > _(" Start analytics for > "+Prefs.GOOGLE_ANALYTICS_AGENT_ANDROID); > Tracker t = > analytics.newTracker(Prefs.GOOGLE_ANALYTICS_AGENT_ANDROID); > > I wonder if this is still safe to use? > -- 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/8bf5a048-f21f-47c6-8daa-2d22fcaff92c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] AndroidNativeUtil.getActivity().getApplication().getTracker()
I am trying to implement this: https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#google-play-campaigns but getTracker() does not exist when I do this, Tracker t = AndroidNativeUtil.getActivity().getApplication().getTracker(TrackerName.APP_TRACKER); How do I get around that ? Im thinking maybe all the google tracking stuff has updated on their end, but maybe not yours? It looks like some time ago I managed to get a tracker using this: GoogleAnalytics analytics = GoogleAnalytics.getInstance(AndroidNativeUtil.getActivity()); analytics.getLogger().setLogLevel(Logger.LogLevel.VERBOSE); analytics.setLocalDispatchPeriod(1800); _(" Start analytics for "+Prefs.GOOGLE_ANALYTICS_AGENT_ANDROID); Tracker t = analytics.newTracker(Prefs.GOOGLE_ANALYTICS_AGENT_ANDROID); I wonder if this is still safe to use? -- 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/5bfd0073-1a94-4721-b3bd-667b1238ff1c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: fatal error: 'com_codename1_io_websocket_WebSocket.h' file not found
It is in the code but I never actually instance the class using it, I want to leave it ther euntil I need it, I will try and tick the compiler into thinking its used then :) On Tuesday, August 16, 2016 at 12:21:05 PM UTC+8, Shai Almog wrote: > > Do you use the WebSocket class from code? > These errors happen if the native code includes a Java class but the VM > stripped it out because it is unused. > -- 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/4acb6238-875a-4041-b9df-bde678b35ab8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] fatal error: 'com_codename1_io_websocket_WebSocket.h' file not found
trying to build for ios I get this error, the websocket lib is there and i refreshed etc, cant work out whats going on really, any ideas? CompileC build/MyApplication.build/Release-iphoneos/MyApplication.build/Objects-normal/armv7/com_codename1_io_websocket_WebSocketNativeImplImpl.o MyApplication-src/com_codename1_io_websocket_WebSocketNativeImplImpl.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist export LANG=en_US.US-ASCII export PATH="/Applications/Xcode6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode6.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" /Applications/Xcode6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -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-receiver-is-weak -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 -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=5.1.1 -iquote /var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/MyApplication.build/Release-iphoneos/MyApplication.build/MyApplication-generated-files.hmap -I/var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/MyApplication.build/Release-iphoneos/MyApplication.build/MyApplication-own-target-headers.hmap -I/var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/MyApplication.build/Release-iphoneos/MyApplication.build/MyApplication-all-target-headers.hmap -iquote /var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/MyApplication.build/Release-iphoneos/MyApplication.build/MyApplication-project-headers.hmap -I/var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/Release-iphoneos/include -I/Applications/Xcode6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/MyApplication.build/Release-iphoneos/MyApplication.build/DerivedSources/armv7 -I/var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/MyApplication.build/Release-iphoneos/MyApplication.build/DerivedSources -F/var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/Release-iphoneos -include /var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/MyApplication-Prefix-dxijblttejrjlidmavsiliqqvnde/MyApplication-Prefix.pch -MMD -MT dependencies -MF /var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/MyApplication.build/Release-iphoneos/MyApplication.build/Objects-normal/armv7/com_codename1_io_websocket_WebSocketNativeImplImpl.d --serialize-diagnostics /var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/MyApplication.build/Release-iphoneos/MyApplication.build/Objects-normal/armv7/com_codename1_io_websocket_WebSocketNativeImplImpl.dia -c /var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/MyApplication-src/com_codename1_io_websocket_WebSocketNativeImplImpl.m -o /var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/build/MyApplication.build/Release-iphoneos/MyApplication.build/Objects-normal/armv7/com_codename1_io_websocket_WebSocketNativeImplImpl.o /var/folders/p7/d3z112yd0156kxkm2p21p8ymgn/T/build1605723573519233378xxx/dist/MyApplication-src/com_codename1_io_websocket_WebSocketNativeImplImpl.m:23:9: fatal error: 'com_codename1_io_websocket_WebSocket.h' file not found #import "com_codename1_io_websocket_WebSocket.h" ^ 1 error generated. -- 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] Strange bug reports (Android)
java.lang.ArrayIndexOutOfBoundsException: length=1000; index=1000 [EDT] 0:0:2,318 - java.lang.ArrayIndexOutOfBoundsException: length=1000; index=1000 at com.codename1.ui.Display.readArrayStackArgument(Display.java:1935) at com.codename1.ui.Display.handleEvent(Display.java:2069) at com.codename1.ui.Display.edtLoopImpl(Display.java:1067) at com.codename1.ui.Display.mainEDTLoop(Display.java:996) at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120) at com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60) at java.lang.Thread.run(Thread.java:818) any ideas? -- 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/aac190c9-dac0-4cf8-9f7d-94661c45c1be%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Storage keeps going up on each run
OK, thanks, all good, the messages are off for release. thanks for clearing that up. On Sunday, August 7, 2016 at 1:22:44 PM UTC+8, Shai Almog wrote: > > Yes, logs are appended. > -- 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/480e3c61-c60f-4f10-af3a-c32f8e43ea4d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Storage keeps going up on each run
Actually when I turn off all system outs, it doesnt happen!.. maybe the log is cached? On Sunday, August 7, 2016 at 10:48:10 AM UTC+8, Gareth Murfin wrote: > > > If I run my app and exit and run it again (Android) and check the app > settings->storage - it goes up about 100k each time. I have made sure my > code deletes anything it downloads (like a photo) so why is the storage > going up? Some users are complaining if they use my app a lot it takes up > more and more, up to 10 meg+. Indeed mine is now using 16.27meg and if I > rerun it right now it goes up to 16.37, then 16.47,16.57 etc. This happens > consistently even without any photo downloading, and code to delete all > files (which finds none after first time photo so grabbed and deleted). > > Anything that I write to storage is overwritten on each run (simple > preferences), so I dont think that is it either. > -- 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/617b6052-335a-4124-9e2c-9d4f546fef00%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Storage keeps going up on each run
If I run my app and exit and run it again (Android) and check the app settings->storage - it goes up about 100k each time. I have made sure my code deletes anything it downloads (like a photo) so why is the storage going up? Some users are complaining if they use my app a lot it takes up more and more, up to 10 meg+. Indeed mine is now using 16.27meg and if I rerun it right now it goes up to 16.37, then 16.47,16.57 etc. This happens consistently even without any photo downloading, and code to delete all files (which finds none after first time photo so grabbed and deleted). Anything that I write to storage is overwritten on each run (simple preferences), so I dont think that is it either. -- 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/d06e67ef-8130-44e5-9fff-d047d50a453f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Re: How to have a right side menu, with container in it
SideMenuRIGHT is a container which contains what I want my menu to show. On 5 August 2016 at 14:19, Shai Almog <shai.al...@gmail.com> wrote: > That looks like a side menu shadow. > > What's SideMenuRIGHT? > Is it a command? > It seems you put it into the client property instead of the container. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "CodenameOne Discussions" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/codenameone-discussions/RGuV-ShwvLo/unsubscribe. > To unsubscribe from this group and all its topics, 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/69d0ec12-8134-44b5-a85a- > 523be6b88b1b%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/69d0ec12-8134-44b5-a85a-523be6b88b1b%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Gareth Murfin (Android Freelancer - www.garethmurfin.co.uk) -- 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/CANOaY6%3DLzswQCYM4Czy780mWezWqBpWFPxmHKxui6KRsPFPX4g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Swipe to navigate
Never even heard of Tabs! Nice little component that, works really nice, thanks!! On Thursday, August 4, 2016 at 12:55:21 PM UTC+8, Shai Almog wrote: > > I would use tabs and create the same container with different data to add > in. > You can set the tabs to be hidden. > -- 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/8accd102-c9bf-4382-bee9-9ff8cc7295dc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: How to have a right side menu, with container in it
Im not 100% clear what you mean, do you mean basically this: smbForRightMenu.putClientProperty("SideComponent", SideMenuRIGHT); smbForRightMenu.add(SideMenuRIGHT); Still stays empty if I try that. On Thursday, August 4, 2016 at 12:53:14 PM UTC+8, Shai Almog wrote: > > You need to set the side component before adding the command. > -- 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/ce616302-2aba-4b55-885e-657b0a261cb4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Textfields are right aligned
Somehow once I have enteredt text into a textfield and move to the next one the text goes to being right aligned. I have checked and double checked the uiid, and it is not set to do this, so what else could it be ? -- 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/45eb4c48-0d0b-4235-8984-939107bc7a8c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Swipe to navigate
I have a single screen which shows some content from an array, I wish to be able to swipe left and right to go to the same screen but populate it with the next item in the array. What is the easiest way to do this ? I guess I could use a layeredLayout and have a container on top and detect the swipe on that? But also then wont buttons underneath stop working? That would not be a big problem because theyre near the bottom, so really people will swipe around the middle of the screen. Can you detect a swipe on things like textareas (un editable) or containers? -- 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/3676ab58-a62d-4267-9f58-8d48295fd3aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: How to have a right side menu, with container in it
there was a typo in that code i meant to put: smbForRightMenu.add(SideMenuRIGHT); smbForRightMenu.putClientProperty("SideComponent", SideMenuRIGHT); I tried the second approach just in case, think I read it on the blog, but neither seem to do it. On Wednesday, August 3, 2016 at 7:15:42 PM UTC+8, Gareth Murfin wrote: > > No matter how often I try, I find the whole side menu thing quite > confusing. Until now I have had to avoid right hand side menus because I > simply cannot get them to work. Left hand side I have been able to get > working using Toolbar, roughly something like this: > > Toolbar toolbarForLeftMenu; > > if (toolbarForLeftMenu==null) > { > toolbarForLeftMenu = new Toolbar(); > } > > toolbarForLeftMenu.setHidden(true); > f.setToolbar(toolbarForLeftMenu); > > final Container SideMenuLEFT = > (Container)this.createContainer(resources, "SideMenuLEFT"); > > toolbarForLeftMenu.addComponentToSideMenu(SideMenuLEFT); > > That works great. However I also need a right menu, which you cannot do > with the Toolbar as far as I am aware. So I am trying to add a right menu > by using SideMenuBar, this actually opens up the side bar fine but I cannot > work out how to actually add my container to it, here is what I am doing, > but it always remains empty: > > final Container SideMenuRIGHT = (Container)this.createContainer(resources, > "SideMenuRIGHT"); > > if (smbForRightMenu==null) > { > smbForRightMenu = (SideMenuBar) > Display.getInstance().getCurrent().getMenuBar(); > smbForRightMenu.add(SideMenuRIGHT); > smbForRightMenu.putClientProperty("SideComponent", > smbForRightMenu);//revalidate(); > _("added content to the right menu..."); > } > > smbForRightMenu.openMenu(SideMenuBar.COMMAND_PLACEMENT_VALUE_RIGHT); > > So basically my question is, why doesnt my container (SideMenuRIGHT) > appear on the right menu when it opens up ? > > > > > > -- 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/8c347ab8-ecc6-472e-b130-9be58c429988%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] How to have a right side menu, with container in it
No matter how often I try, I find the whole side menu thing quite confusing. Until now I have had to avoid right hand side menus because I simply cannot get them to work. Left hand side I have been able to get working using Toolbar, roughly something like this: Toolbar toolbarForLeftMenu; if (toolbarForLeftMenu==null) { toolbarForLeftMenu = new Toolbar(); } toolbarForLeftMenu.setHidden(true); f.setToolbar(toolbarForLeftMenu); final Container SideMenuLEFT = (Container)this.createContainer(resources, "SideMenuLEFT"); toolbarForLeftMenu.addComponentToSideMenu(SideMenuLEFT); That works great. However I also need a right menu, which you cannot do with the Toolbar as far as I am aware. So I am trying to add a right menu by using SideMenuBar, this actually opens up the side bar fine but I cannot work out how to actually add my container to it, here is what I am doing, but it always remains empty: final Container SideMenuRIGHT = (Container)this.createContainer(resources, "SideMenuRIGHT"); if (smbForRightMenu==null) { smbForRightMenu = (SideMenuBar) Display.getInstance().getCurrent().getMenuBar(); smbForRightMenu.add(SideMenuRIGHT); smbForRightMenu.putClientProperty("SideComponent", smbForRightMenu);//revalidate(); _("added content to the right menu..."); } smbForRightMenu.openMenu(SideMenuBar.COMMAND_PLACEMENT_VALUE_RIGHT); So basically my question is, why doesnt my container (SideMenuRIGHT) appear on the right menu when it opens up ? -- 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/5f50036b-63d1-4a7e-b886-b5e8bce7e5fd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: The archive *.jar doesn't exist - building J2SE
Oops of course it can, I use them alot, so whats going on ? On Wednesday, August 3, 2016 at 3:59:20 AM UTC+8, Gareth Murfin wrote: > > I have implemented a small text to speech library for cn1, it all builds > apart from J2SE where it says: > > buildNativeIOS: > createIosZip: > Zipping ios native code > Building zip: > E:\ALL_CODE\ALL_CODE_STUFF_2016\NETBEANS\SilverSpeechCN1Lib\build\lib\nativeios.zip > buildNativeRIM: > createRimZip: > buildNativeAND: > createAndZip: > Zipping Android native code > Building zip: > E:\ALL_CODE\ALL_CODE_STUFF_2016\NETBEANS\SilverSpeechCN1Lib\build\lib\nativeand.zip > buildNativeSE: > createSeZip: > Zipping JavaSE native code > E:\ALL_CODE\ALL_CODE_STUFF_2016\NETBEANS\SilverSpeechCN1Lib\build.xml:73: > The following error occurred while executing this line: > E:\ALL_CODE\ALL_CODE_STUFF_2016\NETBEANS\SilverSpeechCN1Lib\build.xml:121: > The following error occurred while executing this line: > E:\ALL_CODE\ALL_CODE_STUFF_2016\NETBEANS\SilverSpeechCN1Lib\build.xml:127: > The archive *.jar doesn't exist > BUILD FAILED (total time: 0 seconds) > > There is nothing wrong with the code, it works perfectly in my other apps, > so what could be causing this ? I have started a new project 3 times and > fail to see any reason at all.. Maybe cn1lib cant do J2SE? > -- 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/ed9498ac-2342-42b6-bc70-6c481ed51b18%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Including a Lib inside a Lib
Is it possible to have a lib inside another lib? The option for freshing libs seems to be ghosted out. -- 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/be979355-6991-4e33-88a4-b42b290d0dc0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Second Media does not play on Android
ps, no errors in logcat On Wednesday, July 27, 2016 at 3:46:46 AM UTC+8, Gareth Murfin wrote: > > I have multiple Medias loaded up, I stop one and start another. This works > fine on the simulator and also in the JS build, but for some reason on > Android my second Media doesnt play, and remains silent. What could I be > doing wrong? Not tried on iOS, will try make a test bed case when I get a > second to see if I can recreate it standalone. > -- 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/c08b9e7b-91d6-4ecf-b6e8-174c01270216%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: audio/midi not supported?
Oh javafx doesnt support midi, i guess theres no way to get it working on simulator then ? On Wednesday, July 27, 2016 at 1:41:46 AM UTC+8, Gareth Murfin wrote: > > Does the media manager load up audio/midi? im getting: MediaException: > MEDIA_UNSUPPORTED : Unrecognized file signature! > -- 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/d9ba1a72-5421-4df3-afd1-723c62dcb4bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] audio/midi not supported?
Does the media manager load up audio/midi? im getting: MediaException: MEDIA_UNSUPPORTED : Unrecognized file signature! -- 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/0b42e286-d1bc-4d56-b90a-ac3bba1f4a48%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Fonts different on real device
It is a strange case possibly because what I am doing is rendering a game to a 320x240 image, then scaling it up to the fullscreen size and displaying that (quite a weird way to make an old game work I guess but the easiest I can think of). Having said that I doubt this would affect fonts since the scaling is done right at the end. Edit, I just realised I have a copy of the graphics object, and wasnt callign set font on that, so now actually it is ok! weird how it would be different on device. Here is how I make my fonts: On Tuesday, July 26, 2016 at 11:29:47 PM UTC+8, Steve Hannah wrote: > > Default fonts and their sizes vary by platform. If you're laying out some > labels with absolute positioning and you're not deriving your fonts to be > specific pixel height, then you could get this. I'd have to see some code > to know why this is happening to you. E.g. what layout manager, styles, > fonts, etc... > > Steve > > On Tue, Jul 26, 2016 at 8:03 AM, Gareth Murfin <gareth...@gmail.com > > wrote: > >> On the simulators my fonts look like this: >> >> https://dl.dropboxusercontent.com/u/4194619/Snap%202016-07-26%20at%2022.56.10.png >> >> But on my real device they look like this: >> >> https://dl.dropboxusercontent.com/u/4194619/Screenshot_2016-07-26-22-58-30.png >> >> Why is that? >> >> -- >> 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/95c1420b-45d8-4f89-bd41-40b9d8e9efbc%40googlegroups.com >> >> <https://groups.google.com/d/msgid/codenameone-discussions/95c1420b-45d8-4f89-bd41-40b9d8e9efbc%40googlegroups.com?utm_medium=email_source=footer> >> . >> 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/ae76b716-95c0-44fb-91da-ac4b4174fdc9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Can't see canvas unless I resize emulator
OK looks like img.mirror() and img.subImage() can copy these functions well! So all working now. ie, J2ME: gs.drawRegion(img, rgRect[0], rgRect[1], rgRect[2], rgRect[3], Sprite.TRANS_MIRROR, posx-rgRect[4], posy-rgRect[5], Graphics.LEFT | Graphics.TOP ); can be done in cn1 as: img=img.subImage(rgRect[0], rgRect[1], rgRect[2], rgRect[3],true); img=img.mirror(); gs.drawImage(img, posx-rgRect[4], posy-rgRect[5]); Awesome. On Monday, July 25, 2016 at 10:29:24 PM UTC+8, Gareth Murfin wrote: > > And I need graphics.copyArea() :-) looks like im gonna have to implement > some of these... got the port of the game working actually, its only the > flipped sprites missing! > > On Monday, July 25, 2016 at 10:17:59 PM UTC+8, Gareth Murfin wrote: >> >> Also interested in anyway to mimic "anchors" when doing a drawImage(), im >> basically porting old j2me canvas titles. >> >> On Monday, July 25, 2016 at 9:02:21 PM UTC+8, Gareth Murfin wrote: >>> >>> Fixed it, it was my own canvas logic. Also curious if there are any libs >>> around with things like drawRegion in the graphics class? And Sprite stuff >>> from old midp2 days and things for flipping sprites in code (TRANS_MIRROR) >>> >>> On Monday, July 25, 2016 at 8:21:32 PM UTC+8, Gareth Murfin wrote: >>>> >>>> ps DDragon extends Component and has an override for paintBackground >>>> >>>> On Monday, July 25, 2016 at 8:13:48 PM UTC+8, Gareth Murfin wrote: >>>>> >>>>> I am trying to port an old arcade game to codename one. I am using the >>>>> canvas and have something drawing, but I can only see it when Im >>>>> literally >>>>> resizing the emulator window, other than that it is white. Any ideas?? >>>>> >>>>> Here is how I add my game to a form and keep it repainting: >>>>> >>>>> Form f = new Form(""); >>>>> f.setLayout(new BorderLayout()); >>>>> DDragon game = new DDragon(null, new DDApp()); >>>>> f.add(BorderLayout.CENTER,game); >>>>> >>>>> new UITimer(new Runnable() { >>>>> public void run() >>>>> { >>>>> if (game!=null) >>>>> { >>>>>game.run(); >>>>>game.repaint(); >>>>> } >>>>> else >>>>> { >>>>> System.out.println("game still null"); >>>>> } >>>>>} >>>>>}).schedule(10, true, f); >>>>> f.show(); >>>>> >>>> -- 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/8ec06a76-5d14-48eb-b813-ec52efe6ab87%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Can't see canvas unless I resize emulator
And I need graphics.copyArea() :-) looks like im gonna have to implement some of these... got the port of the game working actually, its only the flipped sprites missing! On Monday, July 25, 2016 at 10:17:59 PM UTC+8, Gareth Murfin wrote: > > Also interested in anyway to mimic "anchors" when doing a drawImage(), im > basically porting old j2me canvas titles. > > On Monday, July 25, 2016 at 9:02:21 PM UTC+8, Gareth Murfin wrote: >> >> Fixed it, it was my own canvas logic. Also curious if there are any libs >> around with things like drawRegion in the graphics class? And Sprite stuff >> from old midp2 days and things for flipping sprites in code (TRANS_MIRROR) >> >> On Monday, July 25, 2016 at 8:21:32 PM UTC+8, Gareth Murfin wrote: >>> >>> ps DDragon extends Component and has an override for paintBackground >>> >>> On Monday, July 25, 2016 at 8:13:48 PM UTC+8, Gareth Murfin wrote: >>>> >>>> I am trying to port an old arcade game to codename one. I am using the >>>> canvas and have something drawing, but I can only see it when Im literally >>>> resizing the emulator window, other than that it is white. Any ideas?? >>>> >>>> Here is how I add my game to a form and keep it repainting: >>>> >>>> Form f = new Form(""); >>>> f.setLayout(new BorderLayout()); >>>> DDragon game = new DDragon(null, new DDApp()); >>>> f.add(BorderLayout.CENTER,game); >>>> >>>> new UITimer(new Runnable() { >>>> public void run() >>>> { >>>> if (game!=null) >>>> { >>>>game.run(); >>>>game.repaint(); >>>> } >>>> else >>>> { >>>> System.out.println("game still null"); >>>> } >>>>} >>>>}).schedule(10, true, f); >>>> f.show(); >>>> >>> -- 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/4af3cd3f-cdbc-4019-82a0-3d6736c93b82%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Can't see canvas unless I resize emulator
Also interested in anyway to mimic "anchors" when doing a drawImage(), im basically porting old j2me canvas titles. On Monday, July 25, 2016 at 9:02:21 PM UTC+8, Gareth Murfin wrote: > > Fixed it, it was my own canvas logic. Also curious if there are any libs > around with things like drawRegion in the graphics class? And Sprite stuff > from old midp2 days and things for flipping sprites in code (TRANS_MIRROR) > > On Monday, July 25, 2016 at 8:21:32 PM UTC+8, Gareth Murfin wrote: >> >> ps DDragon extends Component and has an override for paintBackground >> >> On Monday, July 25, 2016 at 8:13:48 PM UTC+8, Gareth Murfin wrote: >>> >>> I am trying to port an old arcade game to codename one. I am using the >>> canvas and have something drawing, but I can only see it when Im literally >>> resizing the emulator window, other than that it is white. Any ideas?? >>> >>> Here is how I add my game to a form and keep it repainting: >>> >>> Form f = new Form(""); >>> f.setLayout(new BorderLayout()); >>> DDragon game = new DDragon(null, new DDApp()); >>> f.add(BorderLayout.CENTER,game); >>> >>> new UITimer(new Runnable() { >>> public void run() >>> { >>> if (game!=null) >>> { >>>game.run(); >>>game.repaint(); >>> } >>> else >>> { >>> System.out.println("game still null"); >>> } >>>} >>>}).schedule(10, true, f); >>> f.show(); >>> >> -- 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/c1be26de-d6d7-4899-947d-5439fed82ffa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Can't see canvas unless I resize emulator
Fixed it, it was my own canvas logic. Also curious if there are any libs around with things like drawRegion in the graphics class? And Sprite stuff from old midp2 days and things for flipping sprites in code (TRANS_MIRROR) On Monday, July 25, 2016 at 8:21:32 PM UTC+8, Gareth Murfin wrote: > > ps DDragon extends Component and has an override for paintBackground > > On Monday, July 25, 2016 at 8:13:48 PM UTC+8, Gareth Murfin wrote: >> >> I am trying to port an old arcade game to codename one. I am using the >> canvas and have something drawing, but I can only see it when Im literally >> resizing the emulator window, other than that it is white. Any ideas?? >> >> Here is how I add my game to a form and keep it repainting: >> >> Form f = new Form(""); >> f.setLayout(new BorderLayout()); >> DDragon game = new DDragon(null, new DDApp()); >> f.add(BorderLayout.CENTER,game); >> >> new UITimer(new Runnable() { >> public void run() >> { >> if (game!=null) >> { >>game.run(); >>game.repaint(); >> } >> else >> { >> System.out.println("game still null"); >> } >>} >>}).schedule(10, true, f); >> f.show(); >> > -- 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/04f81e91-1fff-4a08-b38c-2ff1f518c292%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Can't see canvas unless I resize emulator
ps DDragon extends Component and has an override for paintBackground On Monday, July 25, 2016 at 8:13:48 PM UTC+8, Gareth Murfin wrote: > > I am trying to port an old arcade game to codename one. I am using the > canvas and have something drawing, but I can only see it when Im literally > resizing the emulator window, other than that it is white. Any ideas?? > > Here is how I add my game to a form and keep it repainting: > > Form f = new Form(""); > f.setLayout(new BorderLayout()); > DDragon game = new DDragon(null, new DDApp()); > f.add(BorderLayout.CENTER,game); > > new UITimer(new Runnable() { > public void run() > { > if (game!=null) > { >game.run(); >game.repaint(); > } > else > { > System.out.println("game still null"); > } >} >}).schedule(10, true, f); > f.show(); > -- 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/367d827f-9a8a-4170-8f29-1ac16252dfc9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] flushGraphics bug?
or maybe I forgot :) is it a build hint? On 24 July 2016 at 12:10, Shai Almog <shai.al...@gmail.com> wrote: > Then I'm guessing you didn't. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "CodenameOne Discussions" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/codenameone-discussions/EGrDdp6niPw/unsubscribe > . > To unsubscribe from this group and all its topics, 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/8cd64a1d-e62f-44d0-8c89-b2d0889c5641%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/8cd64a1d-e62f-44d0-8c89-b2d0889c5641%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Gareth Murfin (Android Freelancer - www.garethmurfin.co.uk) -- 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/CANOaY6m6uR4Q1Bqp%2BxqmH6iwRbRvZ%2BZDkRcC4seMkmT0nsY7qA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] flushGraphics bug?
not sure what you mean? On 23 July 2016 at 13:02, Shai Almog <shai.al...@gmail.com> wrote: > Is this with the new peers on or off? > > -- > You received this message because you are subscribed to a topic in the > Google Groups "CodenameOne Discussions" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/codenameone-discussions/EGrDdp6niPw/unsubscribe > . > To unsubscribe from this group and all its topics, 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/be05ecef-aa5c-46ce-948e-26d8c4f6b06d%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/be05ecef-aa5c-46ce-948e-26d8c4f6b06d%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Gareth Murfin (Android Freelancer - www.garethmurfin.co.uk) -- 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/CANOaY6%3DVepAcud_72faSD_v0NCH7wHf9zZ-GdYO7Qr4Mn%3Dqufg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] flushGraphics bug?
This is from this week it should he relevant , maybe last week On 21 Jul 2016 17:09, "Steve Hannah" <steve.han...@codenameone.com> wrote: > When did you do the build for this? The line numbers don't correspond > with the current state in git - I'd like to track down exactly what line > 368 of flushGraphics() contains. > > Steve > > On Thu, Jul 21, 2016 at 9:01 AM, Gareth Murfin <gareth.mur...@gmail.com> > wrote: > >> Just got this bug report, looks strange, any ideas? >> >> [EDT] 0:0:39,316 - java.lang.NullPointerException >> [EDT] 0:0:39,321 - java.lang.NullPointerException >> at com.codename1.impl.android.AndroidAsyncView.flushGraphics( >> AndroidAsyncView.java:368) >> at com.codename1.impl.android.AndroidImplementation. >> flushGraphics(AndroidImplementation.java:934) >> at com.codename1.impl.CodenameOneImplementation.paintDirty( >> CodenameOneImplementation.java:547) >> at com.codename1.ui.Display.edtLoopImpl(Display.java:1074) >> at com.codename1.ui.Display.mainEDTLoop(Display.java:996) >> at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120) >> at com.codename1.impl.CodenameOneThread$1.run( >> CodenameOneThread.java:60) >> at java.lang.Thread.run(Thread.java:864) >> >> -- >> 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/315c4ae7-8372-49ea-8b83-f498b60df8f8%40googlegroups.com >> <https://groups.google.com/d/msgid/codenameone-discussions/315c4ae7-8372-49ea-8b83-f498b60df8f8%40googlegroups.com?utm_medium=email_source=footer> >> . >> 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 a topic in the > Google Groups "CodenameOne Discussions" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/codenameone-discussions/EGrDdp6niPw/unsubscribe > . > To unsubscribe from this group and all its topics, 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/CAGOYrKWOrDk%3DakWe6QuDfZoGc1rBt8jGm7j08K%3DtCWvfFdr3TQ%40mail.gmail.com > <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWOrDk%3DakWe6QuDfZoGc1rBt8jGm7j08K%3DtCWvfFdr3TQ%40mail.gmail.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CANOaY6k4xJq8E5-1GjCdkM%2Bq8sySE1rHoukcVfbqV5q0gLnEGw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Re: How to have a toolbar on left and right?
Also how do I specify the width of the toolbar's side menu ? Like so it takes up only 50% when its pulled out? On Monday, July 18, 2016 at 3:54:01 PM UTC+8, Gareth Murfin wrote: > > What units do these use? is it a percentage ? > > On Monday, March 21, 2016 at 11:46:32 AM UTC+8, Shai Almog wrote: >> >> Yes see the theme constants from here: >> https://www.codenameone.com/manual/advanced-theming.html >> >> sideMenuSizeTabPortraitInt >> >> The size of the side menu when expanded in a tablet in portrait mode >> >> sideMenuSizePortraitInt >> >> The size of the side menu when expanded in a phone in portrait mode >> >> sideMenuSizeTabLandscapeInt >> >> The size of the side menu when expanded in a tablet in landscape mode >> >> sideMenuSizeLandscapeInt >> >> The size of the side menu when expanded in a phone in landscape mode >> >> -- 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/08af789b-cf3b-4176-be39-d6830263a5cb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Re: How to have a toolbar on left and right?
What units do these use? is it a percentage ? On Monday, March 21, 2016 at 11:46:32 AM UTC+8, Shai Almog wrote: > > Yes see the theme constants from here: > https://www.codenameone.com/manual/advanced-theming.html > > sideMenuSizeTabPortraitInt > > The size of the side menu when expanded in a tablet in portrait mode > > sideMenuSizePortraitInt > > The size of the side menu when expanded in a phone in portrait mode > > sideMenuSizeTabLandscapeInt > > The size of the side menu when expanded in a tablet in landscape mode > > sideMenuSizeLandscapeInt > > The size of the side menu when expanded in a phone in landscape mode > > -- 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/d58e5376-6344-4b0c-9074-b0dc5c9d5c3b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: New gui builder
Thanks, I got it working. It seems much harder to use than the old one, mainly because you cannot see the hierarchy while you are working, and how do you get to the properties for things like when I select a grid layout? Ive moved back to the old gui editor for now. I think it would be better if you could see all of the info at once instead of hiding it like it currently is, I really need to see the hierarchy at all times. On Wednesday, June 29, 2016 at 1:22:29 PM UTC+8, Shai Almog wrote: > > We don't remove the old GUI files after the conversion but the source > files should be in place and the old GUI files should be ignored. > We considered removing them but decided we'd better not change the > resource file as that's a dangerous direction. > > Make sure your resource editor/plugin is at the latest version. We had an > issue just like that quite a while back. If this still exists with the > latest version of the plugin I'd like to know the stack trace of that null > pointer. > -- 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/c7c58f76-8f59-4331-a5d0-3ab42bc1cf2b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Android keyboard cuts screen in half when you proceed before closing
Apparently this is still not working for the client, the screen of the app gets cut in half when he moves on without shutting the keyboard, even with a delay and a call serially. I have seen a video so it seems true, im wondering if there is an event when the keyboard pops up where i can call validate or something, of course this is probably already happening but something strange happens with regard to repaint on the keyboard when it first appears. On Wednesday, June 22, 2016 at 11:07:19 PM UTC+8, Gareth Murfin wrote: > > That works great, thanks Shai! > > On Wednesday, June 22, 2016 at 12:34:21 PM UTC+8, Shai Almog wrote: >> >> That method does nothing. You need to call stopEditing() on the text >> field to actually close it. >> > -- 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/d52f7456-5378-48e0-9bcb-49239e2891e7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Password field leaves screen unpainted at bottom
On some devices when the keyboard pops up for a password field, numbers flash briefly at the top of the keyboard then vanish, when they vanish they leave the screen unpainted with parts of the screen before it was resized showing. It seems you need to click on a normal text field then click on a password one on some phones numbers will appear and vanish showing the issue, sometimes you need to go back to the normal textfield to get the numbers to disappear to show it. Shall I file an issue Shai or is this known ? -- 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/afc47bce-89cf-4ded-b438-b14572545338%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] New gui builder
I started a very basic project and then did the upgrade to new gui builder, it went ok. Then I double clicked on my .res but it still loads the old gui editor, and IU get a dialog saying " fatal error loading the resource file java.lang.nullpointerexception". Is the new gui builder ready for playing with? And if so how do I get it working ? -- 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/d3a410d6-ff5f-4ead-b5c0-e5a67f47d7f3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Android keyboard cuts screen in half when you proceed before closing
That works great, thanks Shai! On Wednesday, June 22, 2016 at 12:34:21 PM UTC+8, Shai Almog wrote: > > That method does nothing. You need to call stopEditing() on the text field > to actually close it. > -- 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/57a59b04-12b9-4531-883c-be0575db3a67%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Android keyboard cuts screen in half when you proceed before closing
ie, https://dl.dropboxusercontent.com/u/4194619/c5d592ec-ee23-41b4-806c-f35f73ed90fb.png this is happening quite often, and i think i had only seen it happen once before in my life until recently. On Tuesday, June 21, 2016 at 10:50:43 PM UTC+8, Gareth Murfin wrote: > > On many devices if you proceed without closing the keyboard on android > then that area of the screen is black and redundant on the next form. It is > as if something big has change din android keyboard stuff, I expected this > to be the solution but it still happens: > > Display.getInstance().callSerially(new Runnable() { > public void run() { > _("closekb"); > > Display.getInstance().setShowVirtualKeyboard(false);//1.2.4 close > keyboard, it stays open on some devices and ends up taking over half the > screen!!! > } > }); > -- 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/fa6fa1c9-e6be-4730-a0c1-f2c966bb10a2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Android flash when you hit enter on keyboard (and other things)
Hi I tried the go button: tfSurname.putClientProperty("goButton", Boolean.TRUE); //force it to be an enter key on some phones where it was emoji on the wileyFox it changed the icon into a tick but tapping the tick seemed to have no response. On Saturday, June 18, 2016 at 2:27:39 PM UTC+8, Shai Almog wrote: > > 3. Is that while typing or after the typing is done and focus moved to a > different field? > Do those differ? > -- 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/fa462e7b-2a19-44c5-8f12-877bdb5f5141%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Android keyboard cuts screen in half when you proceed before closing
On many devices if you proceed without closing the keyboard on android then that area of the screen is black and redundant on the next form. It is as if something big has change din android keyboard stuff, I expected this to be the solution but it still happens: Display.getInstance().callSerially(new Runnable() { public void run() { _("closekb"); Display.getInstance().setShowVirtualKeyboard(false);//1.2.4 close keyboard, it stays open on some devices and ends up taking over half the screen!!! } }); -- 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/d3ecc489-dfcc-47a0-9a23-d16aad0d8fd4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Keyboard doing strange things to screen (Android)
OK forget that, im going mad now i think it was a false alarm. Not to be confused with the screen flash when keyboard goes away. On Monday, June 20, 2016 at 11:38:02 PM UTC+8, Gareth Murfin wrote: > > Ok not false alarm still happening, ARGH... but i cant see it on any > device of my own. > > On Monday, June 20, 2016 at 11:37:18 PM UTC+8, Gareth Murfin wrote: >> >> False alarm, it was a stray textarea, turned off the focusing and not >> happening now. >> >> >> On Monday, June 20, 2016 at 10:53:07 PM UTC+8, Gareth Murfin wrote: >>> >>> Client is getting some odd stuff where the screen doubles up or is >>> black, where keyboard would normally be: >>> >>> >>> >>> https://www.dropbox.com/s/x1tkqee21iwpbw7/f78b271a-04b2-433a-9d95-6719149fba6a.png?dl=0 >>> >>> and >>> >>> >>> https://www.dropbox.com/s/y6jd5rrx725e3ve/c5d592ec-ee23-41b4-806c-f35f73ed90fb.png?dl=0 >>> >>> As well as my forms now flicker the first time the keyboard is >>> dismissed. Has the keyboard resizing/painting been adjusted some how ? >>> >>> I cant recreate these on my device but I did see them once. >>> >> -- 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/4c52b742-29eb-476b-a9d6-8346ca99a287%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Keyboard doing strange things to screen (Android)
Ok not false alarm still happening, ARGH... but i cant see it on any device of my own. On Monday, June 20, 2016 at 11:37:18 PM UTC+8, Gareth Murfin wrote: > > False alarm, it was a stray textarea, turned off the focusing and not > happening now. > > > On Monday, June 20, 2016 at 10:53:07 PM UTC+8, Gareth Murfin wrote: >> >> Client is getting some odd stuff where the screen doubles up or is black, >> where keyboard would normally be: >> >> >> >> https://www.dropbox.com/s/x1tkqee21iwpbw7/f78b271a-04b2-433a-9d95-6719149fba6a.png?dl=0 >> >> and >> >> >> https://www.dropbox.com/s/y6jd5rrx725e3ve/c5d592ec-ee23-41b4-806c-f35f73ed90fb.png?dl=0 >> >> As well as my forms now flicker the first time the keyboard is dismissed. >> Has the keyboard resizing/painting been adjusted some how ? >> >> I cant recreate these on my device but I did see them once. >> > -- 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/411bd697-04c9-4a7a-ab70-a305e2d6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Keyboard doing strange things to screen (Android)
False alarm, it was a stray textarea, turned off the focusing and not happening now. On Monday, June 20, 2016 at 10:53:07 PM UTC+8, Gareth Murfin wrote: > > Client is getting some odd stuff where the screen doubles up or is black, > where keyboard would normally be: > > > > https://www.dropbox.com/s/x1tkqee21iwpbw7/f78b271a-04b2-433a-9d95-6719149fba6a.png?dl=0 > > and > > > https://www.dropbox.com/s/y6jd5rrx725e3ve/c5d592ec-ee23-41b4-806c-f35f73ed90fb.png?dl=0 > > As well as my forms now flicker the first time the keyboard is dismissed. > Has the keyboard resizing/painting been adjusted some how ? > > I cant recreate these on my device but I did see them once. > -- 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/08b2436e-6141-44cb-81aa-a583f4bb3888%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Keyboard doing strange things to screen (Android)
Client is getting some odd stuff where the screen doubles up or is black, where keyboard would normally be: https://www.dropbox.com/s/x1tkqee21iwpbw7/f78b271a-04b2-433a-9d95-6719149fba6a.png?dl=0 and https://www.dropbox.com/s/y6jd5rrx725e3ve/c5d592ec-ee23-41b4-806c-f35f73ed90fb.png?dl=0 As well as my forms now flicker the first time the keyboard is dismissed. Has the keyboard resizing/painting been adjusted some how ? I cant recreate these on my device but I did see them once. -- 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/e07e654b-8c36-43f0-bc66-ab060aeb808a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Android flash when you hit enter on keyboard (and other things)
1 - sent you test case, will file the issue 2 - thanks will check it 3 - they look like this https://dl.dropboxusercontent.com/u/4194619/rafflerbigdots.png On Friday, June 17, 2016 at 11:53:37 AM UTC+8, Shai Almog wrote: > > 1. If you can reproduce this as a test case please file an issue. > > 2. There is a way to customize the submit buttons: > https://www.codenameone.com/blog/keyboard-keys-android-pipeline.html > Try using the go button option. > > 3. By huge do you mean exceed the boundaries of the text field? > Do you have a screenshot? > -- 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/254cd5d1-c64e-4ce1-bd36-f2967ecf6b7d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Android flash when you hit enter on keyboard (and other things)
Client has found a few small graphical issues on Android build: 1- If I have a screen with a textfield, and tap that and the keyboard comes up, once I am done typing if I hit the arrow on the keyboard (to close it) I see a flash of the bottom of the screen (below keyboard) flashing briefly in the area above the keyboard, before the keyboard vanishes. This is pretty off putting. It appears to me as you hit tick the whole screen resizes to fit into available space for about 2ms, then goes back to normal. I dont think I had really noticed this in the last year, so not sure if its new? 2- probably no way to help with but on their test phone when the keyboard comes up, there is not enter key on bottom right (but instead a button to bring up smileys!) This ONLY happens on one screen.. strangely, that screen has 2 textfields for first and second name - it appears as though the usual "next" button is the emoticon button in this case 3 - password dots are HUGE on their phone (which is a "wileyfox" btw) but they seem ok on my phones -- 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/420afe8e-a7ba-475f-9771-3ddcc96d5707%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: If you add a UDID do you regen certs?
Also in the wizard when it says "would you like to generate new push certificates?" should I say yes if I have added a new udid? On Tuesday, June 14, 2016 at 1:42:54 PM UTC+8, Gareth Murfin wrote: > > If I add a new UDID in the apple site, do I have to regenerate the > certificates pr mobileprovision files before the device will run the app? > Or is there some sort of check online? I am still not clear on this point, > thanks. > -- 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/496c0206-b665-4bf7-b4c4-9b41221252aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] If you add a UDID do you regen certs?
If I add a new UDID in the apple site, do I have to regenerate the certificates pr mobileprovision files before the device will run the app? Or is there some sort of check online? I am still not clear on this point, thanks. -- 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/34331a32-2dad-49a0-86da-4515ff5570e8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: LikeButton
Apologies for this. I was very drunk, I know its no excuse but somehow that likebutton was still on my mind after 2 bottles of wine, and I couldnt shake the days I lost. Anyway Im sorry for being stupid there, I know you guys are doing your best, and I love cn1. So feeling rather ashamed of my drunken posts now :) On Saturday, May 28, 2016 at 4:28:23 PM UTC+8, Chen Fishbein wrote: > > Hi, > Honesty and openness has nothing to do with this, we had no idea this > functionality was broken until you raised this issue. > We are a small team and we need the community help, big part of the help > is identifying the issues and open the bugs in the repository. > Please be patient we are doing our best. > -- 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/a518c35e-2196-44a8-8bbe-f3659890cf3d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: LikeButton
And I say this cause I just spent 5 DAYS working on your LikeButton, which doesnt work!. I asked right at the bstart is it broken/ and I only see that it is becausei m on the gubhub list. Dudes, if you wanna make us love you more than say Xamarin, please be moremopen and honest, everyone who has left cn1 is because of the bugs and poor functionality (Ive chatted to many of them).. You got some good guys here please keep us up to date just tell me right away the like button is broken. As I say literally a thousand or more pound has been wasted on this because you maintained it was OK. On Saturday, May 28, 2016 at 12:36:09 PM UTC+8, Gareth Murfin wrote: > > I love cn1, but I hate wasting a week or 2 before u guys admit the > functionality is broken and out of date, it has cost me literally thousands > of pounds. This is a constant occurrence > and my clients all literally say how much they hate cn1 almost every day. > If you can be honest about what works and what doesnt, its gonna help. My > clients pretty much hate cn1, I have to spend 2 days a week convincing them > why we are not wasting our time, and sometimes even I cannot > explain. > > > On Friday, May 27, 2016 at 3:37:44 PM UTC+8, Chen Fishbein wrote: >> >> It seems like you can do this with a native button, you can try to use >> the PeerComponent to display this button in a Form. >> > -- 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/353201ea-f7c8-4a9d-8519-3994426362e7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: LikeButton
I love cn1, but I hate wasting a week or 2 before u guys admit the functionality is broken and out of date, it has cost me literally thousands of pounds. This is a constant occurrence and my clients all literally say how much they hate cn1 almost every day. If you can be honest about what works and what doesnt, its gonna help. My clients pretty much hate cn1, I have to spend 2 days a week convincing them why we are not wasting our time, and sometimes even I cannot explain. On Friday, May 27, 2016 at 3:37:44 PM UTC+8, Chen Fishbein wrote: > > It seems like you can do this with a native button, you can try to use the > PeerComponent to display this button in a Form. > -- 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/151bb14b-fea6-4139-8c12-fa1a5bd2fb1a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: LikeButton
Got it all done with no errors and I log into fb fine, but then when I hit the like button I just see a spinner going. Also tried the webview approach which works but users had to log in every time. So I am thinking this is not possible at this time (I am assuming the cn1 fb wrappers are out of date, hence there is no way to like a page only a post- I believe things have maybe changed in the real fb sdk recently), I will tell client I will have to write native lib to do this. A good tutorial on adding a fb like button in cn1 that allows you to like a page would be great. On Thursday, May 26, 2016 at 10:03:13 PM UTC+8, Gareth Murfin wrote: > > ok its not as bad as i thought, not checked ipa size that might be what im > remembering that held me back. But yeh, is there a way to like a fb PAGE > and not just a post? > > On Thursday, May 26, 2016 at 8:15:01 PM UTC+8, Gareth Murfin wrote: >> >> All that facebook connect stuff is beyond a nightmare if i recall, after >> lots of trying I took it out. I have the code somewhere in here still but I >> have also commented it out saying it made my IPA huge. How much does the >> .ipa grows by including facebook connect etc? It is suprisingly hard to >> simple make a like happen on fb ;-/ >> >> On Thursday, May 26, 2016 at 7:55:28 PM UTC+8, Gareth Murfin wrote: >>> >>> Ah ok will try, also can you like a page with this? or just a post? >>> >>> On Thursday, May 26, 2016 at 12:30:02 PM UTC+8, Shai Almog wrote: >>>> >>>> A like button will only work if you are authenticated to Facebook. Did >>>> you go thru the FacebookConnect authentication? >>>> >>> -- 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/408291cf-d246-42cd-b345-9c7c75833f90%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: LikeButton
Also how do I specify a page? only seems to let me specify a post? Any tutorials on this.. or is it just out of date now and slightly broken? Is it actually proven to still work. On simulator it just says i need to login buttheres no way to, on device it just keeps spinning. There isnt much I hate more than the fb sdk apart from RIM obviously. On Wednesday, May 25, 2016 at 11:16:32 PM UTC+8, Gareth Murfin wrote: > > So I think I added it all correctly unfortunately I just see the spinning > icon thing, and it goes no where. Im thinking it might be best to embed a > like button using a webview and this > https://developers.facebook.com/docs/plugins/like-button > > On Wednesday, May 25, 2016 at 10:34:05 PM UTC+8, Gareth Murfin wrote: >> >> Went through added website platform and a url and then app domains >> accepted the domain but what domain do I use? I was just entering the >> website address for the app but that doesnt seem to do it. The error in >> simulator is now " The domain of this URL isn't included in the app's >> domains. To be able to load this URL, add all domains and subdomains of >> your app to the App Domains field in your app settings." I realise this >> is mostly FB and not cn1 but I figured there is a chance its something cn1 >> related too. >> >> On Wednesday, May 25, 2016 at 10:21:02 PM UTC+8, Gareth Murfin wrote: >>> >>> I installed the fb app and it reacted (should work without though >>> surely?) but then it said "cant load url : the domain of this url isnt >>> included in the apps domains. to be able to load this url add al l domands >>> and subdomains of your app to the app domains field in your app settings" >>> My App id appears to be correct, so just wondering how to get aorudn this. >>> >>> On Wednesday, May 25, 2016 at 10:02:04 PM UTC+8, Gareth Murfin wrote: >>>> >>>> On Android when I hit a like button I see a circular thing spinning but >>>> it never does anything after that. On the simulator it seemed to work. Any >>>> ideas why it may not work on device? >>>> >>> -- 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/3958d32c-0ca2-4b6b-a2d3-b4a935acde54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: LikeButton
So I think I added it all correctly unfortunately I just see the spinning icon thing, and it goes no where. Im thinking it might be best to embed a like button using a webview and this https://developers.facebook.com/docs/plugins/like-button On Wednesday, May 25, 2016 at 10:34:05 PM UTC+8, Gareth Murfin wrote: > > Went through added website platform and a url and then app domains > accepted the domain but what domain do I use? I was just entering the > website address for the app but that doesnt seem to do it. The error in > simulator is now " The domain of this URL isn't included in the app's > domains. To be able to load this URL, add all domains and subdomains of > your app to the App Domains field in your app settings." I realise this > is mostly FB and not cn1 but I figured there is a chance its something cn1 > related too. > > On Wednesday, May 25, 2016 at 10:21:02 PM UTC+8, Gareth Murfin wrote: >> >> I installed the fb app and it reacted (should work without though >> surely?) but then it said "cant load url : the domain of this url isnt >> included in the apps domains. to be able to load this url add al l domands >> and subdomains of your app to the app domains field in your app settings" >> My App id appears to be correct, so just wondering how to get aorudn this. >> >> On Wednesday, May 25, 2016 at 10:02:04 PM UTC+8, Gareth Murfin wrote: >>> >>> On Android when I hit a like button I see a circular thing spinning but >>> it never does anything after that. On the simulator it seemed to work. Any >>> ideas why it may not work on device? >>> >> -- 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/53b94cf9-cbbe-4988-8437-8f006e68c547%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: LikeButton
Went through added website platform and a url and then app domains accepted the domain but what domain do I use? I was just entering the website address for the app but that doesnt seem to do it. The error in simulator is now " The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings." I realise this is mostly FB and not cn1 but I figured there is a chance its something cn1 related too. On Wednesday, May 25, 2016 at 10:21:02 PM UTC+8, Gareth Murfin wrote: > > I installed the fb app and it reacted (should work without though surely?) > but then it said "cant load url : the domain of this url isnt included in > the apps domains. to be able to load this url add al l domands and > subdomains of your app to the app domains field in your app settings" My > App id appears to be correct, so just wondering how to get aorudn this. > > On Wednesday, May 25, 2016 at 10:02:04 PM UTC+8, Gareth Murfin wrote: >> >> On Android when I hit a like button I see a circular thing spinning but >> it never does anything after that. On the simulator it seemed to work. Any >> ideas why it may not work on device? >> > -- 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/58956583-10ff-4fe9-bf6e-e7d1dabe4904%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: LikeButton
I installed the fb app and it reacted (should work without though surely?) but then it said "cant load url : the domain of this url isnt included in the apps domains. to be able to load this url add al l domands and subdomains of your app to the app domains field in your app settings" My App id appears to be correct, so just wondering how to get aorudn this. On Wednesday, May 25, 2016 at 10:02:04 PM UTC+8, Gareth Murfin wrote: > > On Android when I hit a like button I see a circular thing spinning but it > never does anything after that. On the simulator it seemed to work. Any > ideas why it may not work on device? > -- 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/947ea957-1487-46d1-90d4-855214bde4f1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] LikeButton
On Android when I hit a like button I see a circular thing spinning but it never does anything after that. On the simulator it seemed to work. Any ideas why it may not work on device? -- 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/9cc74ab4-4d44-498b-9df0-c232822f6fbf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Display another dialog when closing one
Going crazy here, for some reason any time I try to show a new dialog the old one opens, even when I put it on a different screen and thread etc, whats happening to cause this, its weird cause its never happened before. On Wednesday, May 25, 2016 at 7:52:28 PM UTC+8, Gareth Murfin wrote: > > I have a dialog with an OK button, when I hit that I dispose of the > dialog, and show the next dialog. Strangely the same dialog comes up, I > have tried uitimers etc and everything I can think of but I cannot get > around this. How do I make the correct dialog come up ? > -- 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/b118da86-9688-4019-a590-29aefed75377%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Display another dialog when closing one
I have a dialog with an OK button, when I hit that I dispose of the dialog, and show the next dialog. Strangely the same dialog comes up, I have tried uitimers etc and everything I can think of but I cannot get around this. How do I make the correct dialog come up ? -- 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/df3512a1-51b1-40ea-ae72-54ad03c3ea5f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Internal storage on JS
Hi Steve, You know how you can pass in pixelRatio=1.5, can I also pass in strings of my own? for example I could include the channel to connect to my irc client by specifying it in the url? Would be very cool. On Friday, May 6, 2016 at 10:05:54 PM UTC+8, Gareth Murfin wrote: > > Ooops super dumb sorry it "just works" ver cool!!! Didnt realise the > war had an index :) > > On Friday, May 6, 2016 at 10:02:57 PM UTC+8, Gareth Murfin wrote: >> >> >> Hi Steve I cant figure out how this works >> >> iPhone 3GS >> >> http://solutions.weblite.ca/codename1/demos/CSSDemo/index.html?pixelRatio=1> >> "> >> CSSDemo >> <http://solutions.weblite.ca/codename1/demos/CSSDemo/index.html?pixelRatio=1>/ >> >> is your webapp ? >> >> where did index.html come from, and whats pixelratio? Is there anything >> I can explore about this. >> >> Thanks >> Gaz >> >> On Friday, May 6, 2016 at 7:23:00 AM UTC+8, Steve Hannah wrote: >>> >>> You can embed it in an iframe. See this page for an example: >>> http://solutions.weblite.ca/codename1/demos/CSSDemo.html >>> >>> I have 3 iframes on this page all including the app at different >>> densities. >>> >>> Steve >>> >>> On Thu, May 5, 2016 at 3:32 PM, Gareth Murfin <gareth...@gmail.com> >>> wrote: >>> >>>> Awesome thanks for joining the chat steve, after running ccleaner all >>>> the errors actually went away, works great on opera and canary. My final >>>> questions for now are about improving the loading screen, I think I read >>>> somewhere how to customise that, so I can google that. Other than that I >>>> was wondering if you can embed the app inside another html document ? Not >>>> a >>>> huge deal but it would be good for various reasons, almost like the applet >>>> days lol :) >>>> >>>> >>>> On Friday, May 6, 2016 at 5:51:17 AM UTC+8, Gareth Murfin wrote: >>>>> >>>>> one funny thing is it seems to have that error even when im not >>>>> reading or writing, unless its the log file its writing to >>>>> >>>>> On Friday, May 6, 2016 at 5:50:30 AM UTC+8, Gareth Murfin wrote: >>>>>> >>>>>> Im using the .war on a tomcat installation on amazon. I tried >>>>>> clearing local storage but it still seems to happen. Im actually using >>>>>> chrome canary not sure if that matters, my ordinary chrome is infected >>>>>> and >>>>>> crashes when i visit url too. I will email you a link to the app maybe >>>>>> you >>>>>> can see something from inspector. >>>>>> >>>>>> On Friday, May 6, 2016 at 5:12:55 AM UTC+8, Steve Hannah wrote: >>>>>>> >>>>>>> Hmm. Are you running it in the HTML preview or from your own >>>>>>> distribution (.war or .zip)? In the HTML preview, your browser may >>>>>>> share >>>>>>> the quota with all other CN1 JS apps because they are all hosted from >>>>>>> the >>>>>>> same appengine domain. >>>>>>> >>>>>>> Try clearing your local storage for this domain. >>>>>>> http://superuser.com/a/655198 >>>>>>> >>>>>>> (Because we use LocalForage for the local storage, it uses a >>>>>>> different mechanism on different browsers. On some browsers it uses >>>>>>> IndexDB, on others it falls back to local storage (and may even use >>>>>>> WebSQL >>>>>>> under the covers in some cases --- therefore I'm not sure where you'll >>>>>>> find >>>>>>> this storage, but that link should list them all). >>>>>>> >>>>>>> Steve >>>>>>> >>>>>>> On Thu, May 5, 2016 at 2:07 PM, Gareth Murfin <gareth...@gmail.com> >>>>>>> wrote: >>>>>>> >>>>>>>> Chrome, literally just trying to store a few bits of text, it >>>>>>>> doesnt remember them. >>>>>>>> >>>>>>>> I must say though I am blown away by how good the JS port is!! I >>>>>>>> got my "proxy" working (websocket to socket