Giter Club home page Giter Club logo

Comments (10)

Nutomic avatar Nutomic commented on May 22, 2024

I reverted that change, because it caused problems on gingerbread. I might do it so that it only applies on honeycomb and up, but I plan to do a native Android ui with a proper file picker, so it shouldn't matter then.

from syncthing-android.

YtvwlD avatar YtvwlD commented on May 22, 2024

Which problems would it cause on Gingerbread? (/sdcard is the internal storage - it refers to /storage/sdcard0 in more modern versions of Android - I don't know when it started, but it was at least in Froyo.)

And it wouldn't cause problems with ~/.config/:

dos.writeBytes(getApplicationInfo().dataDir + "/" + BINARY_NAME + " " +
"-home " + getApplicationInfo().dataDir + "\n");

(lines 133/134 in src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java)

from syncthing-android.

Nutomic avatar Nutomic commented on May 22, 2024

I have no idea what exactly the problem is, but I got 8 crash reports like this through play store:

com.nutomic.syncthingandroid.service.SyncthingService$NativeExecutionException: Syncthing binary returned error code 3
stdout:
stdout:
stdout: 19:11:45 FATAL: No home directory found - set $HOME (or the platform equivalent).
stdout:

at com.nutomic.syncthingandroid.service.SyncthingService$NativeSyncthingRunnable.run(SyncthingService.java:168)
at java.lang.Thread.run(Thread.java:1019)

But Gingerbread still doesn't work, see #18

from syncthing-android.

YtvwlD avatar YtvwlD commented on May 22, 2024

i would understand this as $HOME hasn't been set. As I remember /sdcard is available on Android. (I think as of 1.6, but surely as of 2.2.)

from syncthing-android.

Nutomic avatar Nutomic commented on May 22, 2024

Right, but using the data folder fixed that error, so there must have been a problem with the path. I don't have a 2.3 device myself, so I can only guess what the problem is.

from syncthing-android.

YtvwlD avatar YtvwlD commented on May 22, 2024

Sadly (or happily), I don't have a 2.3 device either. (But I used to have one.) (And I used to have a 2.2 device.)

from syncthing-android.

Nutomic avatar Nutomic commented on May 22, 2024

I had an HTC Desire running cm7 (and all kinds of roms before that). But that doesn't really help now :P

from syncthing-android.

YtvwlD avatar YtvwlD commented on May 22, 2024

Well, this happens for Honeycomb, too (see #30).

from syncthing-android.

Nutomic avatar Nutomic commented on May 22, 2024

ICS+ makes up about 97% of users according to the Play Store (with a single Honeycomb device), so this hasn't been so apparent yet. Great to get it finally fixed :)

stats

from syncthing-android.

Nutomic avatar Nutomic commented on May 22, 2024

I implemented a file browser, so you won't have to type in the path any more.

It will be in 0.4.0.

from syncthing-android.

Related Issues (20)

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.