[Android Apps and Games] jroets:
Problems on Galaxy Nexus

I've got a Galaxy Nexus with Android 4.0.2 (US). I can get the vnc server to work, but I'm having two issues with it that are making it a bit of a pain:

1) Using the launcher, whenever I try to (re)start or stop the server, I get a message "Unfortunlate, VNCPrefs has stopped". Looking at my logcat, I see an exception, which I have pasted below. This prevents me from being able to stop the service, for example.

2) With the service running, and I am inside an app, when I tap on an input field, the keyboard does not come up. I understand this may be on purpose, as I can type on my PC's keyboard when connected with a VNC client; but I would like the option to show the device's keyboard too, for when the server is running on the device but I have the device in hand. Maybe this is already a setting??

Here is the log with the exception described above:

I/ActivityManager( 181): START {cmp=com.mrk2012.android.preferences/.Start_Stop

} from pid 2758

D/dalvikvm( 181): GC_FOR_ALLOC freed 723K, 9% free 20308K/22215K, paused 62ms

I/WindowManager( 181): createSurface Window{41a9a378 Starting com.mrk2012.andro

id.preferences paused=false}: DRAW NOW PENDING

V/VNCPrefs( 2758): oncreate start/stop server

V/VNCPrefs( 2758): intent:: Intent { flg=0x800000 cmp=com.mrk2012.android.prefer

ences/.Start_Stop }

V/PhoneStatusBar( 264): setLightsOn(true)

E/su ( 2948): sudb - Opening database

E/su ( 2948): sudb - Database opened

E/su ( 2948): sudb - Database closed

D/su ( 2948): 10070 com.mrk2012.android.preferences executing 0 /system/bin

/sh using shell /system/bin/sh : sh

I/WindowManager( 181): createSurface Window{41b5cc98 Toast paused=false}: DRAW

NOW PENDING

V/VNCPrefs( 2758): Timer fired.

V/VNCPrefs( 2758): updateNotification service

D/AndroidRuntime( 2758): Shutting down VM

W/dalvikvm( 2758): threadid=1: thread exiting with uncaught exception (group=0x4

0a691f8)

E/AndroidRuntime( 2758): FATAL EXCEPTION: main

E/AndroidRuntime( 2758): java.lang.RuntimeException: Unable to start activity Co

mponentInfo{com.mrk2012.android.preferences/com.mrk2012.android.preferences.Star

t_Stop}: java.lang.RuntimeException: java.io.FileNotFoundException: /data/data/c

om.mrk2012.android.preferences/vncs: open failed: ETXTBSY (Text file busy)

E/AndroidRuntime( 2758): at android.app.ActivityThread.performLaunchActiv

ity(ActivityThread.java:1955)

E/AndroidRuntime( 2758): at android.app.ActivityThread.handleLaunchActivi

ty(ActivityThread.java:1980)

E/AndroidRuntime( 2758): at android.app.ActivityThread.access$600(Activit

yThread.java:122)

E/AndroidRuntime( 2758): at android.app.ActivityThread$H.handleMessage(Ac

tivityThread.java:1146)

E/AndroidRuntime( 2758): at android.os.Handler.dispatchMessage(Handler.ja

va:99)

E/AndroidRuntime( 2758): at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 2758): at android.app.ActivityThread.main(ActivityThrea

d.java:4340)

E/AndroidRuntime( 2758): at java.lang.reflect.Method.invokeNative(Native

Method)

E/AndroidRuntime( 2758): at java.lang.reflect.Method.invoke(Method.java:5

11)

E/AndroidRuntime( 2758): at com.android.internal.os.ZygoteInit$MethodAndA

rgsCaller.run(ZygoteInit.java:784)

E/AndroidRuntime( 2758): at com.android.internal.os.ZygoteInit.main(Zygot

eInit.java:551)

E/AndroidRuntime( 2758): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 2758): Caused by: java.lang.RuntimeException: java.io.FileNotF

oundException: /data/data/com.mrk2012.android.preferences/vncs: open failed: ETX

TBSY (Text file busy)

E/AndroidRuntime( 2758): at com.mrk2012.android.preferences.Start_Stop.on

Create(Start_Stop.java:99)

E/AndroidRuntime( 2758): at android.app.Activity.performCreate(Activity.j

ava:4465)

E/AndroidRuntime( 2758): at android.app.Instrumentation.callActivityOnCre

ate(Instrumentation.java:1049)

E/AndroidRuntime( 2758): at android.app.ActivityThread.performLaunchActiv

ity(ActivityThread.java:1919)

E/AndroidRuntime( 2758): ... 11 more

E/AndroidRuntime( 2758): Caused by: java.io.FileNotFoundException: /data/data/co

m.mrk2012.android.preferences/vncs: open failed: ETXTBSY (Text file busy)

E/AndroidRuntime( 2758): at libcore.io.IoBridge.open(IoBridge.java:406)

E/AndroidRuntime( 2758): at java.io.FileOutputStream.<init>(FileOutputStr

eam.java:88)

E/AndroidRuntime( 2758): at java.io.FileOutputStream.<init>(FileOutputStr

eam.java:128)

E/AndroidRuntime( 2758): at java.io.FileOutputStream.<init>(FileOutputStr

eam.java:117)

E/AndroidRuntime( 2758): at com.mrk2012.android.preferences.Start_Stop.on

Create(Start_Stop.java:91)

E/AndroidRuntime( 2758): ... 14 more

E/AndroidRuntime( 2758): Caused by: libcore.io.ErrnoException: open failed: ETXT

BSY (Text file busy)

E/AndroidRuntime( 2758): at libcore.io.Posix.open(Native Method)

E/AndroidRuntime( 2758): at libcore.io.BlockGuardOs.open(BlockGuardOs.jav

a:98)

E/AndroidRuntime( 2758): at libcore.io.IoBridge.open(IoBridge.java:390)

E/AndroidRuntime( 2758): ... 18 more

D/dalvikvm( 2758): GC_CONCURRENT freed 442K, 5% free 14420K/15047K, paused 5ms+7

ms

W/ActivityManager( 181): Force finishing activity com.mrk2012.android.prefere

nces/.Start_Stop

D/dalvikvm( 181): GC_FOR_ALLOC freed 86K, 8% free 20498K/22215K, paused 71ms

I/dalvikvm-heap( 181): Grow heap (frag case) to 20.312MB for 230416-byte alloca

tion

D/dalvikvm( 181): GC_FOR_ALLOC freed 247K, 9% free 20475K/22471K, paused 43ms

I/WindowManager( 181): createSurface Window{41b43af8 paused=false}: DRAW NOW P

ENDING

W/ActivityManager( 181): Activity pause timeout for ActivityRecord{41c81938 com

.mrk2012.android.preferences/.Start_Stop}

V/PhoneStatusBar( 264): setLightsOn(true)

V/VNCPrefs( 2758): widget intents