HellerCommaA / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

SL4A crashes when WiFi is off #663

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
Samsung Galaxy Nexus

What steps will reproduce the problem?
1. Turn off WiFi (or just go out of Wifi reach)
2. Try to run "hello_world.py" (either background of foreground)

What is the expected output? What do you see instead?

Expecting the script to run. Instead, SL4A crashes with the message 
"Unfortunately, SL4A has stopped". 

What version of the product are you using? On what operating system?
SL4A R6 + Python for Android r1 (bur also tried later version of python for 
android) on Stock Android 4.1.1

Please provide any additional information below.

When wifi is on and connected, everything works well.

Original issue reported on code.google.com by afain...@gmail.com on 30 Sep 2012 at 9:52

Attachments:

GoogleCodeExporter commented 9 years ago
same on the xperia x10 with cyanogenmod 7

Original comment by KolyaOpa...@gmail.com on 7 Dec 2012 at 7:15

GoogleCodeExporter commented 9 years ago
Same issue on Samsung Galaxy W with stock Android 2.3.6

Original comment by sid...@gmail.com on 12 Dec 2012 at 8:07

GoogleCodeExporter commented 9 years ago
a simple fix is to add this line to your hosts file: 127.0.0.1 localhost
alt least that fixed it on cyanogenmod 7
here is a tutorial how to do that on a rooted device 
http://www.sacoskun.com/2009/06/configure-hosts-file-in-android.html

Original comment by KolyaOpa...@gmail.com on 12 Dec 2012 at 8:22

GoogleCodeExporter commented 9 years ago
The line "127.0.0.1 localhost" was already present in my hosts file.

A post on 
https://groups.google.com/forum/?fromgroups#!topic/android-scripting/akC4a_mDldU
 is suggesting the hosts file entry "127.0.0.1 localhost.localdomain localhost".

However, that didn't solve the issue on my device either.
(Samsung Galaxy W with stock Android 2.3.6)

Original comment by sid...@gmail.com on 12 Dec 2012 at 9:02