Giter VIP home page Giter VIP logo

Comments (7)

aetha avatar aetha commented on September 15, 2024

I'm getting this exact same problem on Android 7.0, latest stock ROM on a Nvidia Shield tablet.

I used adb logcat to get more info, and I'm seeing NetworkOnMainThreadException being thrown. I think this might be why:

https://developer.android.com/about/versions/nougat/android-7.0-changes.html#other

Due to a bug in previous versions of Android, the system did not flag writing to a TCP socket on the main thread as a strict-mode violation. Android 7.0 fixes this bug. Apps that exhibit this behavior now throw an android.os.NetworkOnMainThreadException

A quick fix would be to just disable this strict mode. I think this code would do it(?)
StrictMode.setThreadPolicy(StrictMode.ThreadPolicy.Builder().permitNetwork().build());

from slide-android.

Cheerfultrout avatar Cheerfultrout commented on September 15, 2024

@aetha just tried that with my fork of the project, and it works on android 7.0+ now. (There are some other issues that I'm working on still, but at least it doesn't crash)

from slide-android.

TheArcaneBrony avatar TheArcaneBrony commented on September 15, 2024

@Cheerfultrout download?
EDIT: Nvm, got it to compile!
If anyone in the future needs the APK, just ask!

from slide-android.

WinterJava avatar WinterJava commented on September 15, 2024

Someone can share the apk that works in android 7?

from slide-android.

JaredTamana avatar JaredTamana commented on September 15, 2024

@TheArcaneBrony @WinterJava Please learn to build from git clones instead of relying on releases. It will help you a lot here on GitHub

from slide-android.

WinterJava avatar WinterJava commented on September 15, 2024

what program i should use? i need the apk

from slide-android.

Cheerfultrout avatar Cheerfultrout commented on September 15, 2024

I used Android Studio for the whole process, from cloning the repo, patching, and building the apk, see if you can get it to work in there? Should be various turorials online for how to.

from slide-android.

Related Issues (4)

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.