Code Monkey home page Code Monkey logo

crosswalkdemo's People

Contributors

dougdiego avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

crosswalkdemo's Issues

Android runtime permissions

Hello,

I am new to Android programming, and I can't figure out how to request permissions only when the user wants to upload a file. Right now I request WRITE_EXTERNAL_STORAGE permission when the app loads, but I don't think this is ok.

I have tried to override the UIClient's openFileChooser method, to request the permission there, but I found that this is called after the "choose file" popup appears, and without permission no files are shown.

Do you know of a better solution?

Thanks.

No Soft keyboard in kitkat?

In the emulator, I run the app with API 19 on three different emulated devices (Nexus 5X and Galaxay Nexus and Nexus S) and none of them show the keyboard when I click on a text box on a web page. Above API 19, it seems to work as expected.

Is there something I am missing?

I see these messages when I click the text input in the android monitor log:

08-15 19:31:23.540 2243-2243/com.calendri.calendriandroid D/cr_Ime: [InputMethodManagerWrapper.java:42] restartInput
08-15 19:31:23.540 2243-2243/com.calendri.calendriandroid D/cr_Ime: [InputMethodManagerWrapper.java:50] showSoftInput
08-15 19:31:23.540 2243-2243/com.calendri.calendriandroid D/cr_Ime: [InputMethodManagerWrapper.java:77] updateSelection: SEL [0, 0], COM [-1, -1]

No cached version of org.xwalk:xwalk_core_library_beta:15.44.384.7 available for offline mode.

Hi,

I got this error when I tried to build the project, do you happen to know how to resolve it?

Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not resolve org.xwalk:xwalk_core_library_beta:15.44.384.7.
Required by:
CrosswalkDemo-master:app:unspecified
> No cached version of org.xwalk:xwalk_core_library_beta:15.44.384.7 available for offline mode.
> No cached version of org.xwalk:xwalk_core_library_beta:15.44.384.7 available for offline mode.

FAILURE: Build failed with an exception on Chromebook using Cloud9IDE

I'm using the Cloud9IDE on my Chromebook.

I cloned the repo, changed the url in MainActivity.java to my website and ran ./gradlew assembleRelease as the README.md file stated and got the following error.

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/ubuntu/workspace/CrosswalkDemo/app/build.gradle' line: 17

  • What went wrong:
    A problem occurred evaluating project ':app'.

    SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Error Inflating XWalk

Hi

Thanks for the demo project, however i am getting following error at runtime. Any idea?

02-02 10:52:37.938: E/AndroidRuntime(6861): FATAL EXCEPTION: main
02-02 10:52:37.938: E/AndroidRuntime(6861): Process: com.example, PID: 6861
02-02 10:52:37.938: E/AndroidRuntime(6861): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.CrosswalkActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class org.xwalk.core.XWalkView
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2215)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2265)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread.access$800(ActivityThread.java:145)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.os.Handler.dispatchMessage(Handler.java:102)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.os.Looper.loop(Looper.java:136)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread.main(ActivityThread.java:5081)
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Method.invokeNative(Native Method)
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Method.invoke(Method.java:515)
02-02 10:52:37.938: E/AndroidRuntime(6861): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
02-02 10:52:37.938: E/AndroidRuntime(6861): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-02 10:52:37.938: E/AndroidRuntime(6861): at dalvik.system.NativeStart.main(Native Method)
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class org.xwalk.core.XWalkView
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.createView(LayoutInflater.java:620)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
02-02 10:52:37.938: E/AndroidRuntime(6861): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:343)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.Activity.setContentView(Activity.java:1929)
02-02 10:52:37.938: E/AndroidRuntime(6861): at com.example.CrosswalkActivity.onCreate(CrosswalkActivity.java:22)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.Activity.performCreate(Activity.java:5231)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2169)
02-02 10:52:37.938: E/AndroidRuntime(6861): ... 11 more
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: java.lang.reflect.InvocationTargetException
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Constructor.constructNative(Native Method)
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.createView(LayoutInflater.java:594)
02-02 10:52:37.938: E/AndroidRuntime(6861): ... 23 more
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:260)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.XWalkView.(XWalkView.java:168)
02-02 10:52:37.938: E/AndroidRuntime(6861): ... 26 more
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: java.lang.reflect.InvocationTargetException
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Constructor.constructNative(Native Method)
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:252)
02-02 10:52:37.938: E/AndroidRuntime(6861): ... 27 more
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: java.lang.RuntimeException: java.lang.SecurityException: ConnectivityService: Neither user 10091 nor current process has android.permission.ACCESS_NETWORK_STATE.
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.internal.XWalkViewInternal.init(XWalkViewInternal.java:286)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.internal.XWalkViewInternal.(XWalkViewInternal.java:197)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.internal.XWalkViewBridge.(XWalkViewBridge.java:45)
02-02 10:52:37.938: E/AndroidRuntime(6861): ... 30 more
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: java.lang.SecurityException: ConnectivityService: Neither user 10091 nor current process has android.permission.ACCESS_NETWORK_STATE.
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.os.Parcel.readException(Parcel.java:1465)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.os.Parcel.readException(Parcel.java:1419)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.net.IConnectivityManager$Stub$Proxy.getActiveNetworkInfo(IConnectivityManager.java:813)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.net.ConnectivityManager.getActiveNetworkInfo(ConnectivityManager.java:560)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.chromium.net.NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate.activeNetworkExists(NetworkChangeNotifierAutoDetect.java:44)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.chromium.net.NetworkChangeNotifierAutoDetect.getCurrentConnectionType(NetworkChangeNotifierAutoDetect.java:154)

adding both 32 and 64 bit cross walk do not work

i tried a lot to implement it for both 32 and 64 bit in the android studio but could not get success
basically, i have added both 32 and 64 bit code in the gradle file like below

implementation 'org.xwalk:xwalk_core_library:21.51.546.7'

implementation 'org.xwalk:xwalk_core_library:21.51.546.7-64bit'

and have implement all the logic to add both .aar files by following the procedure explained in the like below

url for adding both 32 and 64 bit

i also tried by adding both in the dependencies manually

but it is working in the debug mode but do not in the release mode, when i run the project in the release mode it give me blow error

Program type already present: SevenZip.CRC

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.