[codenameone-discussions] Fix SSL handshake failed in BrowserComponent

2020-07-13 Thread Fuad Nassar
My BrowserComponent displaying HTML content to add online payment in my 
app. 
when i uses Test merchant ID there are no problems, but when using real 
merchant ID, i got this error:

url:https://cap.attempts.securecode.com/acspage/cap?RID=8=A
Received exception: SSL handshake failed
java.lang.Throwable: SSL handshake failed
at javafx.scene.web.WebEngine$LoadWorker.describeError(WebEngine.java:1436)
at 
javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java:1375)
at javafx.scene.web.WebEngine$LoadWorker.access$1200(WebEngine.java:1253)
at 
javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngine.java:1240)
at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2434)
at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2278)
at com.sun.webkit.network.URLLoader.twkDidFail(Native Method)
at com.sun.webkit.network.URLLoader.notifyDidFail(URLLoader.java:868)
at com.sun.webkit.network.URLLoader.lambda$didFail$100(URLLoader.java:851)
at 
com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at 
com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at 
com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
java.lang.Throwable: SSL handshake failed
at javafx.scene.web.WebEngine$LoadWorker.describeError(WebEngine.java:1436)
at 
javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java:1375)
at javafx.scene.web.WebEngine$LoadWorker.access$1200(WebEngine.java:1253)
at 
javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngine.java:1240)
at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2434)
at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2278)
at com.sun.webkit.network.URLLoader.twkDidFail(Native Method)
at com.sun.webkit.network.URLLoader.notifyDidFail(URLLoader.java:868)
at com.sun.webkit.network.URLLoader.lambda$didFail$100(URLLoader.java:851)
at 
com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at 
com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at 
com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)



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


[codenameone-discussions] Re: Increase smoothing of ImageViewer

2020-07-13 Thread Fuad Nassar
i want to make more easy to scrolling (Reduced touch path)

On Thursday, July 9, 2020 at 5:22:22 AM UTC+3, Shai Almog wrote:
>
> Hi
> You probably shouldn't change either one of these. I
>
> 'm not sure what you mean by "smoothing". Do you mean panning within the 
> image, the transition between one image to the next or the process of 
> dragging the finger. 
>
> On Wednesday, July 8, 2020 at 6:03:51 PM UTC+3 codenam...@gmail.com wrote:
>
>> hi,
>> i want to increase smoothing for ImageViewer cmb
>> i tried these functions bun not work
>> gui_Image_Viewer.setScrollAnimationSpeed(100);
>> gui_Image_Viewer.setScrollOpacityChangeSpeed(100);
>>
>>
>>

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


[codenameone-discussions] Increase smoothing of ImageViewer

2020-07-08 Thread Fuad Nassar
hi,
i want to increase smoothing for ImageViewer cmb
i tried these functions bun not work
gui_Image_Viewer.setScrollAnimationSpeed(100);
gui_Image_Viewer.setScrollOpacityChangeSpeed(100);


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


[codenameone-discussions] Where i can found CountryCodePicker ?

2020-06-10 Thread Fuad Nassar
hi,
I can see that uber clone book uses CountryCodePicker class to give user 
choice to select code country number, I want to use same this class in my 
app
Where I can found this class?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/078d640e-86ee-4e06-9fca-8e5e35df2c84o%40googlegroups.com.


[codenameone-discussions] Increase the performance of list shop items

2020-05-04 Thread Fuad Nassar
hi,
I want to create something like this page
https://lh3.googleusercontent.com/hNSeIFqosY6NEyhSgu7JAhdK0ujVggz7uAnAeNyo0CeGJLkqNBe-9nxwUyWwiaiAfK4=w1366-h629-rw

*My purposes:*
 create like the above list with high performance and low need to storage 
content (not downloading images) and make easy to scroll and load items 
without loss time or waiting.


I use *InfiniteScrollAdapter *to display infinite items *but there are 
these problems:*
1) all images should be download to storage/cach before showing them to the 
user.
2) should waiting some seconds to load more content (when scroll reach the 
end)

*Suggested solutions*

1) display url image in browser component & html background code like this:



body {
  background-image: 
url("https://s3.amazonaws.com/images.seroundtable.com/google-css-images-1515761601.jpg";);
  background-size: 100% 100%
}





not using imageURL because it also needs to download images before display 
it to the user.

2) load content automatically when scroll reach half distance (before reach 
max scrolling)
*---*

*How i can do these 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ed657018-c6cd-4fda-9a05-2361b209e092%40googlegroups.com.


Re: [codenameone-discussions] Re: Apple reject app if contains Google Map

2020-04-11 Thread Fuad Nassar
and this code was used to implement google map
>
>
>
>
>
>
>
>
>
> *MapContainer map = new MapContainer();Container
> root = LayeredLayout.encloseIn(BorderLayout.center(map));
> addMarkers(res, map, "price_d");root.setScrollable(false);
>   gui_Con_Map.add(BorderLayout.CENTER, root);
>  map.zoom(initCoord, 12);map.setShowMyLocation(true);*
>
> *addFabListener(res, map);  *


>
On Sat, Apr 11, 2020 at 8:17 AM Shai Almog  wrote:

> The problem isn't google maps. You can use that just fine.
> The problem is the navigation code you have in your app which launches
> only Google Maps or Waze. It should support Apple Maps too. How did you
> implement navigation?
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/afacc56c-b490-4e3c-b022-9b6df3561bdd%40googlegroups.com
> 
> .
>

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


Re: [codenameone-discussions] Re: Apple reject app if contains Google Map

2020-04-11 Thread Fuad Nassar
yeah, I have this reject to another app but it fixed by deleting android
mention in-app description

On Fri, Apr 10, 2020 at 7:41 PM Dave Dyer  wrote:

> Good luck with that.  Apple wouldn't approve my app until I removed the
> work "android" from the product description.
> I'm sure this kind of BS will eventually be ruled illegal, but meantime
> apple rules.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/8f0886c5-e896-4184-8440-d776f6902ae4%40googlegroups.com
> 
> .
>

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


[codenameone-discussions] Apple reject app if contains Google Map

2020-04-10 Thread Fuad Nassar
Our app uses a google map cn1 lib to display some of locations and all 
thing work as fine
 but when sent it to App Store preview we got this rejected message


"Guideline 4.0 - Design

We continue to find that your app's location feature is not integrated with 
the built-in mapping functionality, which limits users to a third-party 
maps app.

Next Steps

To resolve this issue, please revise your app to give users the option to 
launch the native Apple Maps app."


we don't have any feature to open google map app/website, just we use the 
latest version of google map cn1 lib.

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


[codenameone-discussions] Re: add ( ios.forceIncludePush ) hint to codename one

2020-04-09 Thread Fuad Nassar
yeah, I know you are very busy.
Thank you for all of your efforts.

On Thursday, April 9, 2020 at 9:29:26 AM UTC+3, Shai Almog wrote:
>
> Hi,
> we have some plans to add a free quota push option but it constantly gets 
> postponed with our ongoing tasks. 
>

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


[codenameone-discussions] add ( ios.forceIncludePush ) hint to codename one

2020-04-08 Thread Fuad Nassar
hi,
 the ios.includePush build hint not work as fine in free & basic account, 

I need a build hint to do these things on Xcode project :

1) Uncomment these comments
//#define INCLUDE_CN1_PUSH it's found in CodenameOne_GLAppDelegate.m & 
CodenameOne_GLViewController.m 
//#define INCLUDE_CN1_PUSH2   it's found in IOSNative.m
//#define INCLUDE_CN1_PUSH3   it's found in CodenameOne_GLAppDelegate.h
~> ( just delete // )

2)add this capabilities:
   -push notification
   -background modes( remote notification )
~> ( maybe ios.plistInject hint can help to do this )

Thank you in advance.
*On the other hand, I have a good news for cn1
after publishing my cn1 course on udemy I got 1565 Arab student for it 
within tow day only.
course link: www.udemy.com/course/codenameone

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


[codenameone-discussions] Invoke codename code from ios.afterFinishLaunching hint

2020-02-25 Thread Fuad Nassar
hi,
i read this question about Invoke codename code from native interface 
,
 
and tried that with success callback from native interface, but in my case 
the Objective-c code is in 
ios.afterFinishLaunching hint, so i tried add these hints but app has 
failure in cn1 server.

ios.glAppDelegateHeader=#include "com_test_NativeCallback.h" #include 
"cn1_globals.h" #include "CodenameOne_GLViewController.h"
ios.afterFinishLaunching=com_test_NativeCallback_callback___int(CN1_THREAD_GET_STATE_PASS_ARG
 
5);

if i delete the above tow hints, the app will build in success, on the 
onther hand, i tried to replace #include to #import but get same failure.

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


[codenameone-discussions] Re: [bug] CodeScanner doesn't work in ios

2020-02-25 Thread Fuad Nassar

Thank you shai, 
actually the *problem *has *fixed by add* these hint
*ios.NSCameraUsageDescription=Some functionality of the application 
requires access to your camera*


On Saturday, February 15, 2020 at 8:17:00 AM UTC+2, Shai Almog wrote:
>
> Only the cn1lib will work, that code doesn't exist anymore in Codename One 
> core. There might be a regression with 13.1 please file an issue and we'll 
> look into 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/14503311-6071-457c-a8c7-6d863daa3bbe%40googlegroups.com.


[codenameone-discussions] [bug] CodeScanner doesn't work in ios

2020-02-14 Thread Fuad Nassar
Device: ios 13.1
our app need a scan qr code in ios device,so we tried to use this code to 
scan qr-code but that does not work for both package (codescan)

import com.codename1.codescan.CodeScanner;
import com.codename1.codescan.ScanResult;
 if (CodeScanner.getInstance() != null) {
CodeScanner.getInstance().scanQRCode(new ScanResult() {
public void scanCompleted(String contents, String 
formatName, byte[] rawBytes) {
Dialog.show("Completed", contents, "OK", null);
}

public void scanCanceled() {
Dialog.show("Cancelled", "Scan Cancelled", "OK", 
null);
}
public void scanError(int errorCode, String message) {
Dialog.show("Error", message, "OK", null);
}
});
} else {
Dialog.show("Wearing", "CodeScanner == null", "OK", null);
}
the result when run on ios(13.1): app does not do anything and scan does 
not be started

we know the above code was deprecated, so we tried add cn1-codescan.cn1lib 
with same above code just change imports to
import com.codename1.ext.codescan.CodeScanner;
import com.codename1.ext.codescan.ScanResult;
the result when run on ios(13.1): app was closed like is a pretty crash
we also tried *ZXing-cn1.cn1lib* but also there's no any doing. 

*how we can scan qr code in ios with easy way?*

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


[codenameone-discussions] Re: [bug] launch gui builder in intellij

2020-02-07 Thread Fuad Nassar
in my case, the original project was build in netbeans and in the last 
version of our app we tried to use intellij by created new project with 
same name and replace some folder from netbeans to intellij like "src" 
,"res" ,"lib", "settings file (hints)","native" and project work for all 
things as fine.
but gui builder have some isuess and its not like gui builder in netbeans:  
*1) cann't open .gui file that generated in netbeans*
*2) cann't change place of component after drag and drop.*

On Saturday, February 8, 2020 at 12:08:54 AM UTC+2, Fuad Nassar wrote:
>
> IDE: *intellij*
> Desktop OS: *Windows*
>
>
> *intellij *does *not launch *the *"new gui builder"* for .gui file in 
> windows 
> *but* on *mac **work *as fine.
>
>

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


[codenameone-discussions] [bug] launch gui builder in intellij

2020-02-07 Thread Fuad Nassar
IDE: *intellij*
Desktop OS: *Windows*


*intellij *does *not launch *the *"new gui builder"* for .gui file in 
windows 
*but* on *mac **work *as fine.

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


[codenameone-discussions] setShowMyLocation() in goole map not enable gps always

2020-02-02 Thread Fuad Nassar
IDE: NetBeans
Desktop Windows/Mac
Device: Android pie

my app use GoogleMap cn1 library and i use map.setShowMyLocation(true); 
function to display myLocation button
but after run app on real device the gps will not enable always 
automatically (just first time)
i already fixed this problem by editing on GoogleMap cn1 library and 
replace InternalNativeMapsImpl.java class to a new one with some editing
 
what i wont?
*i hope fix this problem and enable gps automatically always*

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/35baeb41-0c33-405a-9163-92d7638510ca%40googlegroups.com.
/*
 * Copyright (c) 2014, Codename One LTD. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.codename1.googlemaps;

import com.codename1.impl.android.CodenameOneActivity;
import com.codename1.impl.android.AndroidNativeUtil;
import android.Manifest;

import com.codename1.io.Util;
import com.google.android.gms.maps.MapView;
import com.google.android.gms.maps.GoogleMap;
import com.codename1.impl.android.AndroidNativeUtil;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Timer;
import java.util.TimerTask;

import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;
import com.google.android.gms.maps.model.LatLng;
import android.graphics.BitmapFactory;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.view.ViewGroup;
import android.os.Bundle;
import com.codename1.impl.android.AndroidImplementation;
import com.codename1.impl.android.LifecycleListener;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap.OnMyLocationButtonClickListener;
import com.google.android.gms.maps.MapsInitializer;
import android.os.Looper;
import android.view.View;
import com.google.android.gms.maps.model.PolylineOptions;
import com.google.android.gms.maps.model.Polyline;
import android.graphics.Point;
import com.codename1.io.Log;
import com.codename1.ui.Display;
import com.google.android.gms.maps.model.CameraPosition;
import  android.widget.RelativeLayout;
import android.view.WindowManager;
import android.graphics.Point;
import android.content.Context;
import android.widget.Toast;
import com.codename1.impl.android.IntentResultListener;
import android.provider.Settings;
import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.IntentSender;
import android.content.pm.PackageManager;
import android.location.LocationManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.widget.Toast;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.net.Uri;
import android.location.Location;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.ResultCallback;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.location.LocationServices;
import com.google.android.gms.location.LocationSettingsRequest;
import com.google.android.gms.location.LocationSettingsResult;
import com.google.android.gms.location.LocationSettingsStates;
import com.google.android.gms.location.LocationSettingsStatusCodes;

public class InternalNativeMapsImpl implements LifecycleListener {
private int mapId;
private MapView view;
private GoogleMap mapInstance;
private static int uniqueIdCounter = 0;
private HashMap markerLookup = new HashMap();
private HashMap listeners = new HashMap();
private static boolean supported = true;

[codenameone-discussions] Re: Switch to next image in ImageViewer every 3 sec

2020-01-27 Thread Fuad Nassar
i tried this but does not work in simulator and android device, i can see 
the change are done on then next image not on display image. 

On Tuesday, January 28, 2020 at 4:13:18 AM UTC+2, Shai Almog wrote:
>
> imodel.setSelectedIndex(...)

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


[codenameone-discussions] Switch to next image in ImageViewer every 3 sec

2020-01-27 Thread Fuad Nassar
*i used ImageViewer in my app and i want to display images for user as 
automatically change.*
*my code is *

   

String[] imageURLs = {
  "
http://awoiaf.westeros.org/images/thumb/9/93/AGameOfThrones.jpg/300px-AGameOfThrones.jpg
",
"
http://awoiaf.westeros.org/images/thumb/3/39/AClashOfKings.jpg/300px-AClashOfKings.jpg
",
"
http://awoiaf.westeros.org/images/thumb/2/24/AStormOfSwords.jpg/300px-AStormOfSwords.jpg
",
"
http://awoiaf.westeros.org/images/thumb/a/a3/AFeastForCrows.jpg/300px-AFeastForCrows.jpg
",
"http://awoiaf.westeros.org/images/7/79/ADanceWithDragons.jpg;
}; 
ImageList imodel = new ImageList(imagess); 
ImageViewer iv = new ImageViewer(imodel.getItemAt(0));
  new UITimer(() -> {
if (i < 4) {

*///... here i should change selected index, how i can do 
this ?*

i++;
} else {
i = 0;
}
}).schedule(3000, true, hi);



  class ImageList implements ListModel {

String[] images_str;
private int selection;

//public void setImages(String[] images_str) {
//this.images_str = images_str;
//}
private Image[] images;
private EventDispatcher listeners = new EventDispatcher();

public ImageList(String[] images_str) {
this.images_str = images_str;
this.images = new EncodedImage[images_str.length];
}

public Image getItemAt(final int index) {
if (images[index] == null) {
images[index] = placeholder;

Util.downloadUrlToStorageInBackground(images_str[index], "list" + index, 
(e) -> {
try {
images[index] = 
EncodedImage.create(Storage.getInstance().createInputStream("list" + 
index)).scaledWidth(Display.getInstance().getDisplayWidth());
listeners.fireDataChangeEvent(index, 
DataChangedListener.CHANGED);
} catch (IOException err) {
err.printStackTrace();
}
});
}
return images[index];
}

public int getSize() {
return images_str.length;
}

public int getSelectedIndex() {
return selection;
}

public void setSelectedIndex(int index) {
selection = index;
}

public void addDataChangedListener(DataChangedListener l) {
listeners.addListener(l);
}

public void removeDataChangedListener(DataChangedListener l) {
listeners.removeListener(l);
}

public void addSelectionListener(SelectionListener l) {
}

public void removeSelectionListener(SelectionListener l) {
}

public void addItem(Image item) {
}

public void removeItem(int index) {
}
};



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


[codenameone-discussions] Re: Integration with Tab payment method

2020-01-02 Thread Fuad Nassar
oky thanks i will try that

On Thursday, January 2, 2020 at 4:17:54 AM UTC+2, Shai Almog wrote:
>
> The best approach here is to download the sources without the changes and 
> try to integrate the lib into there. Then look at the changes you had to do 
> to the build and try to replicate them exactly in the build cloud. 
>

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


[codenameone-discussions] Re: Integration with Tab payment method

2020-01-01 Thread Fuad Nassar
According https://github.com/Tap-Payments/goSellSDK-android#proguard-rules
Requirements
--

To use the SDK the following requirements must be met:

   1. Android Studio 3.3 or newer
   2. Android SDK Tools 26.1.1 or newer
   3. Android Platform Version: API 28: Android 9.0 (Pie) revision 6 or 
   later
   4. **Build gradle:3.5.0

Installation
--

Include
 
goSellSDK library as a dependency module in your project
--

   1. Clone goSellSDK library from Tap repository
   
   g...@github.com:Tap-Payments/goSellSDK-Android.git
   
   2. Add goSellSDK library to your project settings.gradle file as 
   following
   
   include ':library', ':YourAppName'
   
   3. Setup your project to include goSellSDK as a dependency Module.
  1. File -> Project Structure -> Modules -> << your project name >>
  2. Dependencies -> click on + icon in the screen bottom -> add Module 
  Dependency
  3. select goSellSDK library
   
Installation
 
with JitPack
--

JitPack  is a novel package repository for JVM and 
Android projects. It builds Git projects on demand and provides you with 
ready-to-use artifacts (jar, aar).

To integrate goSellSDK into your project add it in your root build.gradle at 
the end of repositories:

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

Step 2. Add the dependency

dependencies {
implementation 'com.github.Tap-Payments:goSellSDK-Android:2.4.8'
}

Proguard 
Rules
--

Proguard rules for SDK Library are:

-keepattributes Signature
-keepclassmembernames,allowobfuscation interface * {
@retrofit2.http.* ;
}
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

#
# OkHttp
#
-dontwarn okhttp3.**
-dontwarn okhttp2.**
-dontwarn okio.**
-dontwarn javax.annotation.**
-dontwarn org.conscrypt.**
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase

Note
--

Regarding to this Issue " Google throws this exception on Activity's 
onCreate method after v27, their meaning is if an Activity is translucent 
or floating, its orientation should be relied on parent(background) so, 
Activity can't make decision on itself. Even if you remove 
android:screenOrientation="portrait" from the floating or translucent 
Activity In android Oreo (API 26) you can not change orientation for 
Activity that offer translucent.

Your Activity that launches the SDK has to set orientation to Portrait, 
becuase our SDK is just a child to your actvity in case of translucent mode.

On Wednesday, January 1, 2020 at 4:23:44 AM UTC+2, Shai Almog wrote:
>
> This seems to be a problem with their SDK. Is it meant to work with API 
> level 28? Maybe it needs a newer version of the build tools?
>

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


[codenameone-discussions] Integration with Tab payment method

2019-12-30 Thread Fuad Nassar
hi shai,

i tried to adding Tab SDK 
 for my 
android app to accepted payment method from arab country users
in tab documentation i found that i should do some things like:

1) change 
*classpath 'com.android.tools.build:gradle:3.0.1' *
*TO *
*classpath 'com.android.tools.build:gradle:3.2.1'*

 2)add this to *build.gradle* file
*compileOptions { *
*sourceCompatibility JavaVersion.VERSION_1_8*
*targetCompatibility JavaVersion.VERSION_1_8 *
*}*

*which build hints can help me for 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3e792146-300c-4822-b48e-84916ee80342%40googlegroups.com.


[codenameone-discussions] Re: Use CSS & theme.res together in same project!

2019-12-24 Thread Fuad Nassar
Thank you soo much. I will keep following cn1 blogs 
 for the next week.

On Tuesday, December 24, 2019 at 4:44:15 AM UTC+2, Shai Almog wrote:
>
> There is no feature to control the shadow color in RoundRectBorder. I've 
> added a shadow color property to the RoundRectBorder class which should be 
> there for the weekly update.
> But doing this in the UI is more challenging so if you want that you'd 
> need to customize it from code.
>

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


[codenameone-discussions] Re: Use CSS & theme.res together in same project!

2019-12-23 Thread Fuad Nassar
i feel you will say "sorry, this does not been supported until now, you 
should use this black f..king shadow" 

On Monday, December 23, 2019 at 4:14:20 PM UTC+2, Fuad Nassar wrote:
>
> round rect border -_-
>
> On Monday, December 23, 2019 at 4:16:01 AM UTC+2, Shai Almog wrote:
>>
>> On a border? A round or round rect border?
>>
>

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


[codenameone-discussions] Re: Use CSS & theme.res together in same project!

2019-12-23 Thread Fuad Nassar
round rect border -_-

On Monday, December 23, 2019 at 4:16:01 AM UTC+2, Shai Almog wrote:
>
> On a border? A round or round rect border?
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/835bc93d-076f-4d3c-81cc-3e2df3949b59%40googlegroups.com.


[codenameone-discussions] Re: Use CSS & theme.res together in same project!

2019-12-22 Thread Fuad Nassar
from theme.res file 
i created a simple style and used it by UIID 

On Sunday, December 22, 2019 at 4:04:37 AM UTC+2, Shai Almog wrote:
>
> This very much depends on the type of shadow you created. How did you 
> create the shadow?
>

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


[codenameone-discussions] Re: Use CSS & theme.res together in same project!

2019-12-20 Thread Fuad Nassar

>
> Okay that's work
>
Is there an *easy way* to *change color of shadow* from black[default 
> color] *to yellow?*
>

On Saturday, December 21, 2019 at 7:10:42 AM UTC+2, Shai Almog wrote:
>
> CSS generates a new theme.css file every time you build the project. You 
> can have another res file but it can't be named theme.res. You can add its 
> styles via theme layering as explained here: 
> https://www.codenameone.com/manual/advanced-theming.html
>

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


[codenameone-discussions] Use CSS & theme.res together in same project!

2019-12-20 Thread Fuad Nassar
IDE: NetBeans
Desktop OS: Windows 10
Simulator 

*Enable CSS* file from cn1 settings *lead to failed* loading* theme.res* 
file
 
*can i use both two files in same project ? *
..
*if yes, why i got failed **in loading theme file* *?*

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


[codenameone-discussions] Re: What will happen to push notification service in ios app after expiration of Pro Account Subscription. ????

2019-12-09 Thread Fuad Nassar
i have same needed :/   react-native developers can using fcm to add push 
notification without buy any cost.
he will told you that you should pay on each month for send notification.

and he will told that using fcm for push notification can lead to gdpr 
problems. 

to this moment i believe this absurdity will skip in future after studding 
codename one more way to collect money from programers with smart ideas.
like: build an "Yaffa virtual machine" program that give programer building 
apps on offline with 1$/month not 399$ as in enterprise account.





*   "one million user pay 1$ is better than one person pay one millon"*


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


[codenameone-discussions] Re: problem when try to enable gps in android

2019-10-24 Thread Fuad Nassar
*Thank you it's working *
i will write here the steps to Turn on location services without navigating 
to settings page 

nativeInterface 
>
 
import com.codename1.system.NativeInterface;

public interface nativeInterface extends NativeInterface {

 public void enableGPSAPI();
}


nativeInterfaceImpl 

import com.codename1.impl.android.CodenameOneActivity;
import com.codename1.impl.android.AndroidNativeUtil;
import com.codename1.impl.android.IntentResultListener;
import android.provider.Settings;
import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.IntentSender;
import android.content.pm.PackageManager;
import android.location.LocationManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.widget.Toast;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.ResultCallback;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.location.LocationServices;
import com.google.android.gms.location.LocationSettingsRequest;
import com.google.android.gms.location.LocationSettingsResult;
import com.google.android.gms.location.LocationSettingsStates;
import com.google.android.gms.location.LocationSettingsStatusCodes;

public class nativeInterfaceImpl extends CodenameOneActivity {

final CodenameOneActivity cn1activity = (CodenameOneActivity) 
AndroidNativeUtil.getActivity();

Context context = AndroidNativeUtil.getContext();
Activity activity = AndroidNativeUtil.getActivity();
private static final int REQUEST_CHECK_SETTINGS = 0x1;
private static GoogleApiClient mGoogleApiClient;
private static final int ACCESS_FINE_LOCATION_INTENT_ID = 3;
private static final String BROADCAST_ACTION = 
"android.location.PROVIDERS_CHANGED";


public void enableGPSAPI() {
initGoogleAPIClient();
checkPermissions();
}

/* Initiate Google API Client  */
private void initGoogleAPIClient() {
//Without Google API Client Auto Location Dialog will not work
mGoogleApiClient = new GoogleApiClient.Builder(activity)
.addApi(LocationServices.API)
.build();
mGoogleApiClient.connect();
}

/* Check Location Permission for Marshmallow Devices */
private void checkPermissions() {
if (Build.VERSION.SDK_INT >= 23) {
if (ContextCompat.checkSelfPermission(activity,
android.Manifest.permission.ACCESS_FINE_LOCATION)
!= PackageManager.PERMISSION_GRANTED) {
requestLocationPermission();
} else {
showSettingDialog();
}
} else {
showSettingDialog();
}

}

/*  Show Popup to access User Permission  */
private void requestLocationPermission() {
if (ActivityCompat.shouldShowRequestPermissionRationale(activity, 
android.Manifest.permission.ACCESS_FINE_LOCATION)) {
ActivityCompat.requestPermissions(activity,
new 
String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},
ACCESS_FINE_LOCATION_INTENT_ID);

} else {
ActivityCompat.requestPermissions(activity,
new String[]{Manifest.permission.ACCESS_FINE_LOCATION},
ACCESS_FINE_LOCATION_INTENT_ID);
}
}
//
///* Show Location Access Dialog */

private void showSettingDialog() {
com.google.android.gms.location.LocationRequest locationRequest = 
com.google.android.gms.location.LocationRequest.create();

locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);//Setting 
priotity of Location request to high
locationRequest.setInterval(30 * 1000);
locationRequest.setFastestInterval(5 * 1000);//5 sec Time interval 
for location update
LocationSettingsRequest.Builder builder = new 
LocationSettingsRequest.Builder()
.addLocationRequest(locationRequest);
builder.setAlwaysShow(true); //this is the key ingredient to show 
dialog always when GPS is off

PendingResult result
= 
LocationServices.SettingsApi.checkLocationSettings(mGoogleApiClient, 
builder.build());
result.setResultCallback(new 
ResultCallback() {
@Override
public void onResult(LocationSettingsResult result) {
final Status status = result.getStatus();

[codenameone-discussions] problem when try to enable gps in android

2019-10-24 Thread Fuad Nassar


*hint*

> android.gradleDep=;implementation 
> 'com.google.android.gms:play-services-location:10.0.1';


>  
* class nativeInterfaceImpl*

private void showSettingDialog() {

com.google.android.gms.location.LocationRequest locationRequest = 
> com.google.android.gms.location.LocationRequest.create();


> locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);//Setting 
> priotity of Location request to high

locationRequest.setInterval(30 * 1000);

locationRequest.setFastestInterval(5 * 1000);//5 sec Time interval 
> for location update

LocationSettingsRequest.Builder builder = new 
> LocationSettingsRequest.Builder()

.addLocationRequest(locationRequest);

builder.setAlwaysShow(true);

//... 
} 


*error msg*

file or directory '/tmp/build4005083318529358370xxx/main/src/release/java', not 
found
> Compiling with JDK Java compiler API.
> /tmp/build4005083318529358370xxx/main/src/main/java/com/yallagym/nativeInterfaceImpl.java:122:
>  error: cannot access zza
> com.google.android.gms.location.LocationRequest locationRequest = 
> com.google.android.gms.location.LocationRequest.create();
>   
>^
>   class file for com.google.android.gms.common.internal.safeparcel.zza not 
> found
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 1 error
> :compileReleaseJavaWithJavac FAILED
> :compileReleaseJavaWithJavac (Thread[Daemon worker,5,main]) completed. Took 
> 16.386 secs.
>
> FAILURE: Build failed with an exception.
>
>
 are there a solution?

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


[codenameone-discussions] Re: The links that have pages with gif animations are not shown

2019-06-29 Thread Fuad Nassar
https://media.giphy.com/media/WprtU5zQoOPvdo260u/giphy.gif 

-- 
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/de107e0b-a1b2-4888-b9c3-f0a5256c0a3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: The links that have pages with gif animations are not shown

2019-06-29 Thread Fuad Nassar
https://media.giphy.com/media/WprtU5zQoOPvdo260u/giphy.gif 

>
>
> [image: sp2.gif]
> and set this code in main.class
>   Form hi = new Form("Gif", new BorderLayout());
> try {
> hi.add(CENTER, new 
> ScaleImageLabel(GifImage.decode(getResourceAsStream("/sp2.gif"), 950272)));
> } catch (IOException err) {
> log(err);
> }
> hi.show();
>
> and after tested that on the real android device (8.0.0.158v) the black 
> screen is keeping show before loading gif img like this 
>
> [image: isuess.jpg]
>
> i don't like to keep this black screen and i want to get any way can help 
> to fix this.
>
> some ideas (but i don't know if that possible):
> 1) load gif image before open app 
> 2) use native code 
> 3) get a gif image from theme file 
> 4) replace black screen to first frame for gif image
> 5) reduce size of gif image( This can help, but is not a fix to the 
> problem)
>
>
>
>
> On Saturday, June 29, 2019 at 6:49:38 AM UTC+3, Shai Almog wrote:
>>
>> https://www.codenameone.com/blog/animated-gif-support.html
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/38237dc3-9aae-44dc-8543-0fafa19bc50f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: The links that have pages with gif animations are not shown

2019-06-29 Thread Fuad Nassar
I used same these cn1lib and add this image in src file


[image: sp2.gif]
and set this code in main.class
  Form hi = new Form("Gif", new BorderLayout());
try {
hi.add(CENTER, new 
ScaleImageLabel(GifImage.decode(getResourceAsStream("/sp2.gif"), 950272)));
} catch (IOException err) {
log(err);
}
hi.show();

and after tested that on the real android device (8.0.0.158v) the black 
screen is keeping show before loading gif img like this 

[image: isuess.jpg]

i don't like to keep this black screen and i want to get any way can help 
to fix this.

some ideas (but i don't know if that possible):
1) load gif image before open app 
2) use native code 
3) get a gif image from theme file 
4) replace black screen to first frame for gif image
5) reduce size of gif image( This can help, but is not a fix to the problem)




On Saturday, June 29, 2019 at 6:49:38 AM UTC+3, Shai Almog wrote:
>
> https://www.codenameone.com/blog/animated-gif-support.html
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7db9d347-80c3-485e-ad04-66c4140b9efd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: The links that have pages with gif animations are not shown

2019-06-28 Thread Fuad Nassar
I have like this problem and I know that depends on the size of the gif 
image but what the solution for that.
 I need to load and show 1000kb GifImage without seeing black screen  Or 
anything fishy. 

On Tuesday, July 24, 2018 at 3:51:45 AM UTC+3, rdvg...@gmail.com wrote:
>
> Excuse me, I discovered the problem
>
> Thanks.
>
>
> On Monday, July 23, 2018 at 7:20:11 PM UTC-5, rdvg...@gmail.com wrote:
>>
>> Hi,
>>
>> Hello,
>>  
>> I have an app that shows an ad matrix (buttons). For each ad there is a 
>> different link. When a link with a gif animation is activated, only a black 
>> screen is displayed, otherwise the page will be displayed without any 
>> problem.
>>
>>
>> 
>>
>>
>> My code.
>>
>> private void muestraOfertas(Container cnOfertas, Vector vAnuncios) {
>>
>> cnOfertas.removeAll();
>> cnOfertas.setScrollableY(true);
>> Container cntB = new Container();
>> int size = Display.getInstance().convertToPixels(15);
>> int ancho = Display.getInstance().getDisplayWidth();
>> ancho = (int) (ancho - (ancho * 0.03d));
>> boolean ciclo = true;
>> int c = 2;
>> while (ciclo) {
>> c++;
>> size = (int) (ancho / c);
>> int r = ancho % c;
>> if (r <= 0 || c >= vAnuncios.size()) {
>> ciclo = false;
>> }
>> };
>> vAnuncios = priorizaCampanas(vAnuncios);
>> Button bt[];
>> bt = new Button[vAnuncios.size()];
>> for (int i = 0; i < vAnuncios.size(); i++) {
>> Campana1 cM1 = (Campana1) vAnuncios.elementAt(i);
>> bt[i] = new Button();
>> bt[i].setUIID("Label");
>> Image img;
>> if (cM1.getRutaLogo().equals("") || 
>> cM1.getRutaLogo().equals("null")) {
>> img = res.getImage("promo.png").scaled(size, size);
>> } else {
>> EncodedImage lugar = 
>> EncodedImage.createFromImage(Image.createImage(size, size, 0xffcc), 
>> true);
>> img = URLImage.createToStorage(lugar, 
>> Integer.toString(cM1.getCampana()), cM1.getRutaLogo());
>> }
>> bt[i].setIcon(img);
>> cntB.addComponent(bt[i]);
>>
>> *bt[i].addActionListener(new ActionListener() {*
>> *public void actionPerformed(ActionEvent ae) {*
>> *Display.getInstance().execute(cM1.getEnlace());*
>> *}*
>> *});*
>> }
>> Container cnCentro = new Container(new 
>> BoxLayout(BoxLayout.Y_AXIS)).add(cntB);
>> cnOfertas.add(BorderLayout.CENTER, cnCentro);
>> }
>>
>> How can i solve this problem?
>>
>> regards
>>
>

-- 
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/ef35644a-690a-48d1-b4e0-401893f978c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Push Notification without value

2019-03-05 Thread Fuad Nassar
sorry shai,
really I loved codename one but our customers don't like a paid, there's 
many app not large and can't bear it this price,
there are many cross platforms give developers  at least many ways to 
create push notification with free, and this a bad thing when we tell our 
customers that you should be paid 79$/month to create push notification.

thank you shai for all thing 

On Monday, March 4, 2019 at 7:29:26 PM UTC-8, Shai Almog wrote:
>
> Hi,
> sure we help everyone create push with firebase in the 79USD subscription 
> tier. That's how this works.
>

-- 
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/85f6bfba-1b26-489c-9748-a410c431d06b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Push Notification without value

2019-03-04 Thread Fuad Nassar
hi,
can you help me to create a push notification with firebase? 
 i will give you some money for this 

you can contact me via this e-mail:
codenameone2...@gmail.com


On Friday, February 8, 2019 at 2:33:36 AM UTC-8, tobias...@googlemail.com 
wrote:
>
> Hi,
>
> when i send a notification from the server , the push method is called, 
> but the value ( ---> push(String value) ) is always empty...
>
> the json i send : 
>
> {"notification":
> {"newsId":0,"link":"","title":"title","body":"body"},
>   "to":"cn1-fcm-dlZDF..."}
>
> the "to" note is correct course the device receives the answer ...
>
> IDE: Eclipse
> Desktop WIN
> Simulator y
> Device Android
>

-- 
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/f83ba1c4-f09a-4f0b-a1d3-bbf8bf758e31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: add some tag to android gradle file

2019-03-02 Thread Fuad Nassar

not working, really i started to feel that there's issues under this topic 
because i read the dvanced-topics 
 
and under Gradle Dependencies section i see that you added these hints as 
an example 

android.gradleDep=compile 'io.intercom.android:intercom-sdk:3.+'
android.playServices=9.8.0
android.sdkVersion=25


 i tried to add same these hints with a clean project but build failed 
again 

-- 
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/6c7d3d0d-b02d-441f-837d-28d0274dd5e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] add some tag to android gradle file

2019-02-26 Thread Fuad Nassar
hi,

*how I can add those tags to the Gradle file? *


dependencies{

implementation "com.github.parse-community.Parse-SDK-Android:parse:1.19.0"

}

 repositories {
 mavenCentral()
 jcenter()
 maven { url 'https://jitpack.io' }
  }

 
I tried to add these hints, but the app was failed in cn1 server


android.gradleDep=implementation 
'com.github.parse-community.Parse-SDK-Android:parse:1.19.0';
android.repositories=mavenCentral()jcenter()maven { url 'https://jitpack.io' 
};





-- 
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/8188803f-8085-4adf-84e2-10e9ff5ae2df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: show dialog when callback for native interface

2019-02-15 Thread Fuad Nassar
thanks, it's work 

On Friday, February 15, 2019 at 9:29:14 PM UTC-8, Shai Almog wrote:
>
> Wrap it in callSerially as the callback is probably in the OS native 
> thread. 
>

-- 
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/e509991b-23e4-4ec3-bb8c-947e99d80fd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] show dialog when callback for native interface

2019-02-15 Thread Fuad Nassar
Device:Android KitKat 4.4.2

hi,
i have something like this class for callback native interface
package com.mycompany;
public class NativeCallback {

public static void callback() {
// do stuff
}

}

and need to show as this Dialog in my static method, without crash my app
*Dialog.show("Title", "body", "Ok", null);*



note: i try to write like this 
 package com.mycompany;
 ///...
public class NativeCallback {
public static void callback() {
   Dialog dlg = new Dialog("At Bottom");
   dlg.setLayout(new BorderLayout());
   dlg.add(new SpanLabel("Dialog Body text", "DialogBody"));
   int h = Display.getInstance().getDisplayHeight();
   dlg.setDisposeWhenPointerOutOfBounds(true);
   dlg.show(h /8 * 7, 0, 0, 0);
}
}


but that does not work and led to crash my app
*how i can do 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/52b8ab7b-8eed-4b3f-aa18-15bb7c4cfb3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] how to fix hidden words in SpanLabel

2019-02-08 Thread Fuad Nassar
hi,
i tried to use Gui builder to create a *container *that *contains *some 
component 
one of this component is *span button* and all thing work as fine 
but *when set large text in Sb the text will become like this*

[image: Capture.PNG]
*is there any solution to this problem? *
..
Thanks in Advance ^^

-- 
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/71b76332-63fd-4b98-88ea-9ec4cfb77a41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] PropertyCross demo

2019-01-23 Thread Fuad Nassar



how i can delete or change the progress icon in PropertyCross demo


[image: Capture.PNG]

-- 
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/912716ca-1f9c-4667-8e44-6833594e75a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] How to Change Color in image.png when (Selected ,Unselected)?

2019-01-12 Thread Fuad Nassar
hi,

I have icon (as png img) like airbnb  

icon
and i set it for Tab icon
now i want to control select and unselect style with change color (red, 
gray)
how i can do it?
,, 
Note: i have seen fontello  
Blog 
and wondered if it is possible to convert any icon.png to (hex and font 
files) to use it in FontImage!

-- 
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/d83c41a7-143a-4494-abb0-078272a0f87d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Membership & free ios tester (Without certificate)?!

2018-12-17 Thread Fuad Nassar
i read this article :
https://developer.apple.com/support/compare-memberships/
and wondered if i can *test* my* ios app* in devices *without a developer 
account!* 
,,
if there way,,, *how i can do 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/ce3f9119-58b6-4af2-a606-2698e8c54e3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: theme.res file in iphone

2018-12-05 Thread Fuad Nassar
 yes by using these functions 

> // 1)
> /**
>  *
>  * @param Url :  direct link that can be downloading theme.res file 
>  * @param name : name theme file  to saving that in FileSystemStorage  
> e.g theme.res
>  * @return path in FileSystemStorage for theme downloaded
>  */
> public static String downloadTheme(String Url,String name,boolean 
> progress){
> String pathTheme 
> =FileSystemStorage.getInstance().getAppHomePath()+name;
>Util.downloadUrlToFile(Url, pathTheme, progress);
>  return pathTheme;
> }
>
>
> // 2)
>  public static Resources initFirstTheme(String pathTheme) {
> try {
> Resources theme =  getTheme(pathTheme);
> 
> UIManager.getInstance().setThemeProps(theme.getTheme(theme.getThemeResourceNames()[0]));
> Resources.setGlobalResources(theme);
> return theme;
> } catch(Exception e){
> Log.e(e);
> }
> return null;
> }
>
>
> // 3)
> /**
>  *
>  * @param pathTheme in FileSystemStorage
>  * @return theme
>  */
> public static Resources getTheme(String pathTheme){
>InputStream resource = null;
> Resources theme = null;
>
> try {
> resource = 
> FileSystemStorage.getInstance().openInputStream(pathTheme);  
> } catch (IOException ex) {
>  ///...
> }
> 
> 
> try {
> if (resource != null) {
>  theme = Resources.open(resource);
> } else {
>  ///...
> }
> } catch (IOException ex) {
>///...
> }
> 
>
>  return theme; 
> }
>
>

-- 
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/73c4be6a-6dd2-42c1-b8e6-3090999fbd4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: theme.res file in iphone

2018-12-05 Thread Fuad Nassar

>
>  yes by using these functions 
>
 
// 1)
/**
 *
 * @param Url :  direct link that can be downloading theme.res file 
 * @param name : name theme file  to saving that in FileSystemStorage  
e.g theme.res
 * @return path in FileSystemStorage for theme downloaded
 */
public static String downloadTheme(String Url,String name,boolean 
progress){
String pathTheme =FileSystemStorage.getInstance().getAppHomePath()+name;
   Util.downloadUrlToFile(Url, pathTheme, progress);
 return pathTheme;
}


// 2)
 public static Resources initFirstTheme(String pathTheme) {
try {
Resources theme =  cn1Resources.getTheme(pathTheme);

UIManager.getInstance().setThemeProps(theme.getTheme(theme.getThemeResourceNames()[0]));
Resources.setGlobalResources(theme);
return theme;
} catch(Exception e){
Log.e(e);
}
return null;
}


// 3)
/**
 *
 * @param pathTheme in FileSystemStorage
 * @return theme
 */
public static Resources getTheme(String pathTheme){
   InputStream resource = null;
Resources theme = null;
   
try {
resource = 
FileSystemStorage.getInstance().openInputStream(pathTheme);  
} catch (IOException ex) {
 ///...
}


try {
if (resource != null) {
 theme = Resources.open(resource);
} else {
 ///...
}
} catch (IOException ex) {
   ///...
}


 return theme; 
}



 

-- 
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/ecd6880f-d994-4002-a050-604668c5e45c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: theme.res file in iphone

2018-12-04 Thread Fuad Nassar
 i have a simple idea that will build any project including size theme.res 
more 50mb  with a free account ^^ 
This would increase the powering of codename one and it will bring more 
developers for 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/f71c9943-440d-4395-8113-241f8c00f7b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] theme.res file in iphone

2018-12-02 Thread Fuad Nassar
Hi ,
 If I reverse engineer on the ios app, can I find the theme.res file?
or it will convert to another file!!
thanks in advance ..

-- 
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/9d2639b3-bb4b-4808-998e-dca105236d6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: BrowserComponent delete loading msg

2018-11-19 Thread Fuad Nassar

>
> thank you it works ^^
>   *i have simple idea to develop codename one you can make it and get more 
> money
> the idea is building app which can connect to codename one website
>
this is very useful for downloading apps more faster from the dashboard

-- 
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/545b3e87-55c1-4051-9430-ed7505191822%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] BrowserComponent delete loading msg

2018-11-19 Thread Fuad Nassar
IDE: NetBeans
Device Android 4.4 kitkat

BrowserComponent bc = new BrowserComponent();
bc.setPage("hello  word  ^^", null);
gui_Container.add(bc);

hi,
i work with BrowserComponent  to show above html code but when send app to 
android device i get this msg 

[image: 46451743_1428998483903169_1353467374631649280_n.jpg]

is there way to remove 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/fc2ac3ef-7c11-416c-9ace-c04794b58eb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: how i can add android pakege to netbeans[NBAndroid]

2018-11-07 Thread Fuad Nassar
i want to use Speech To Text in codename one as this discussion 
 
the 
class used some imports for an android package 
like:
import android.speech.RecognitionListener;
import android.speech.RecognizerIntent;
import android.speech.SpeechRecognizer;

how I can do this?

On Wednesday, November 7, 2018 at 6:41:13 AM UTC+2, Shai Almog wrote:
>
> You don't need and shouldn't use NBAndroid with Codename One. Check out 
> this video about using native interfaces in Codename One: 
> https://www.codenameone.com/how-do-i---access-native-device-functionality-invoke-native-interfaces.html
>  
> 
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f2605c72-5838-4240-97e4-32501a0d3a63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] how i can add android pakege to netbeans[NBAndroid]

2018-11-06 Thread Fuad Nassar
i using  NetBeans IDE and windows 64 
i want to use native android interface so i need to import android package 
but that's not found as default.
i show this video: https://www.youtube.com/watch?v=89Xv-namTXc which 
explain (*using NBandroid*) but the link was *damaged*.
*is there any way to add android package to netbeans?*

-- 
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/e980cc99-cb28-4357-9415-a2af4df87854%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: "Create an Uber Clone" BOOK does It exists as a pdf file?

2018-10-15 Thread Fuad Nassar
my country isn't under Kindle Unlimited thank you Shai and I hope to accept 
my order in Amazon for buying the paper book

On Monday, October 15, 2018 at 7:18:39 AM UTC+3, Shai Almog wrote:
>
> https://www.amazon.com/Create-Uber-Clone-Days-mobile-ebook/dp/B07FRXZRRV/
>
> [image: Screen Shot 2018-10-15 at 7.17.40.png]
>
>

-- 
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/5adec8b3-9300-4eda-a208-1e3733eef630%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: problem with capture video

2018-10-04 Thread Fuad Nassar


 final Form hi = new Form("Hi World");
hi.setLayout(new BorderLayout());

Button bCapture = new Button("Capture Media");
bCapture.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ect) {
try {
final MediaPlayer mpPlayer = new MediaPlayer();
String value = Capture.captureVideo();
System.out.println("Captured Video " + value);
if (value != null) {
System.out.println("Playing Video");
InputStream is = 
FileSystemStorage.getInstance().openInputStream(value);
String strMime = "video/mp4";
System.out.println("Input Stream" + is.available());
mpPlayer.setName("bla");
mpPlayer.setDataSource(is, strMime, new Runnable() {
public void run() {
System.out.println("reset the clip for playback");
}
});
hi.addComponent(BorderLayout.CENTER, mpPlayer);
hi.revalidate();
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
);
hi.addComponent(BorderLayout.NORTH, bCapture);

hi.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/da3c02bf-a3d4-4627-8015-4d925ac8131a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: problem with capture video

2018-10-04 Thread Fuad Nassar


 final Form hi = new Form("Hi World");
hi.setLayout(new BorderLayout());

final Button bCapture = new Button("Capture Media");
bCapture.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ect) {
try {
final MediaPlayer mpPlayer = new MediaPlayer();
String value = Capture.captureVideo();
System.out.println("Captured Video " + value);
if (value != null) {
System.out.println("Playing Video");
InputStream is = 
FileSystemStorage.getInstance().openInputStream(value);
String strMime = "video/mp4";
System.out.println("Input Stream" + is.available());
mpPlayer.setName("bla");
mpPlayer.setDataSource(is, strMime, new Runnable() {
public void run() {
System.out.println("reset the clip for playback");
}
});
hi.addComponent(BorderLayout.CENTER, mpPlayer);
hi.revalidate();
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
);
hi.addComponent(BorderLayout.NORTH, bCapture);

hi.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/e066a86f-9db4-48a8-a4f2-1fa39e56e211%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] problem with capture video

2018-10-04 Thread Fuad Nassar
hi, 
I try to use this code to capture and show video 


[image: Capture.PNG]



and then when running it under ( 4.4.4 Android Version ) I get something 
like this message "the camera was stopped" (in finally  process failed)
but when I use (6.1 Version) I get this message "Allow appname to access 
photo, media, and files on your device?"(in finally process done) 
my question: why this difference of result and what I can do to solve and 
dispose of these messages.

-- 
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/fc5c89a2-3693-4efe-9fd4-3ccd56cd89cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] problem with capture video

2018-10-04 Thread Fuad Nassar
hi, 
I try to use this code to capture and show video 

[image: Capture.PNG]
and then when running it under ( 4.4.4 Android Version ) I get something 
like this message "the camera was stopped" (in finally  process failed)
but when I use (6.1 Version) I get this message "Allow appname to access 
photo, media, and files on your device?"(in finally process done) 
my question: why this difference of result and what I can do to solve and 
dispose of these messages.

-- 
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/9949df18-cf5a-489a-bcee-a11c661ff9db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: problem when create Android certificate

2018-09-23 Thread Fuad Nassar
Thank you Mr. shai the problem was solved ,, i have anther question about 
cn1 

i read this blog https://www.codenameone.com/manual/appendix-uwp.html 
and I wonder if I can build app for something like this devices ( HoloLens 
, internet of things ) using codename one ?


On Saturday, September 22, 2018 at 7:21:54 AM UTC+3, Shai Almog wrote:
>
> It looks like you have an illegal character in your  XML file making it 
> unreadable to NetBeans. Did you edit it?
>
> The UI removal was announced here 
> https://www.codenameone.com/blog/removing-old-preferences.html
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c1d033e2-dfed-45df-9417-a98805694587%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: layout resource file in codename one

2018-09-21 Thread Fuad Nassar


On Friday, September 21, 2018 at 7:44:15 AM UTC+3, Shai Almog wrote:
>
> I'm sorry I guess I don't understand the question?
> If you developed it in Codename One then it exists. What are you asking?
>
> i need know if the other people developed this before or no ,and thank you 
to respond
 

-- 
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/46902e8d-871a-4c01-b0be-08560639f246%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] layout resource file in codename one

2018-09-19 Thread Fuad Nassar
Recently I've developed something beutiful things in cn1 such as,

• layout resource file in codename one
• splite string "" or "\ n" or anything
• sqlite tool (and solve some problem)

◘ This things you can found in my library in: 
https: //github.com/fuadnassar90/codenameone

◘ and this demo is expline use layout in codename one:
https://github.com/fuadnassar90/codenameone-demos/blob/master/ArabicStories.rar

My question is whether this stuff is actually present in codename one if 
yes what the place i can find 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/5d757ebb-4a40-43bd-bb7d-97c0f67c7805%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.