Hello,
1 month ago I managed to get a basic Pascal application running and
communicating with the Java side via pipes.
Now I started creating a larger application, and it seams that it
works fine, but I keep getting strange message in logcat. Could
someone please confirm if these message mean that Android is trying to
kill my Pascal program? Luckly it seams that it fails.
W/ResourceType( 349): getEntry failing because entryIndex 636 is
beyond type entryCount 109
W/ResourceType( 349): Failure getting entry for 0x7f02027c (t=1
e=636) in package 0: 0x80000001
W/ResourceType( 349): getEntry failing because entryIndex 332 is
beyond type entryCount 109
W/ResourceType( 349): Failure getting entry for 0x7f02014c (t=1
e=332) in package 0: 0x80000001
D/PhoneWindow( 1232): DebugMonitor
class=com.pascal.turbochessclock.TurboChessClock4Android focus=true
I/ActivityManager( 89): Displayed activity
com.pascal.turbochessclock/.TurboChessClock4Android: 1220 ms (total
1220 ms)
D/HtcWidgetScanner( 1225): action -
android.intent.action.PACKAGE_REMOVED
D/HtcWidgetScanner( 1225): packageUid - 10071
W/ResourceType( 349): getEntry failing because entryIndex 636 is
beyond type entryCount 109
W/ResourceType( 349): Failure getting entry for 0x7f02027c (t=1
e=636) in package 0: 0x80000001
W/ResourceType( 349): getEntry failing because entryIndex 332 is
beyond type entryCount 109
W/ResourceType( 349): Failure getting entry for 0x7f02014c (t=1
e=332) in package 0: 0x80000001
D/HtcWidgetScanner( 1225): action -
android.intent.action.PACKAGE_ADDED
D/HtcWidgetScanner( 1225): packageUid - 10071
D/PackageInstallationReceiver( 204): Removing.../data/local/tmp/
com.pascal.turbochessclock.apk
E/PackageInstallationReceiver( 204): Remove /data/local/tmp/
com.pascal.turbochessclock.apk Fail!
W/System.err( 204): java.io.IOException: Error running exec().
Commands: [/system/xbin/su, 0, /system/bin/rm, /data/local/tmp/
com.pascal.turbochessclock.apk] Working Directory: null Environment:
null
W/System.err( 204): at
java.lang.ProcessManager.exec(ProcessManager.java:196)
W/System.err( 204): at java.lang.Runtime.exec(Runtime.java:225)
W/System.err( 204): at java.lang.Runtime.exec(Runtime.java:313)
W/System.err( 204): at java.lang.Runtime.exec(Runtime.java:246)
W/System.err( 204): at
com.htc.android.psclient.PackageInstallationReceiver.removeTempPackageFile(PackageInstallationReceiver.java:
34)
W/System.err( 204): at
com.htc.android.psclient.PackageInstallationReceiver.access
$000(PackageInstallationReceiver.java:8)
W/System.err( 204): at
com.htc.android.psclient.PackageInstallationReceiver
$1.run(PackageInstallationReceiver.java:24)
W/System.err( 204): Caused by: java.io.IOException: No such file or
directory
W/System.err( 204): at java.lang.ProcessManager.exec(Native
Method)
W/System.err( 204): at
java.lang.ProcessManager.exec(ProcessManager.java:194)
W/System.err( 204): ... 6 more
D/vending ( 412): [40] LocalAssetCache.updateOnePackage(): No local
info for com.pascal.turbochessclock
D/vending ( 412): [41] LocalAssetCache.updateOnePackage(): No local
info for com.pascal.turbochessclock
Also, any idea where I could post a feature request to have official
support for running native programs in Android?
thanks!
Felipe Monteiro de Carvalho
On Dec 6 2010, 2:33 pm, Felipe Monteiro de Carvalho
<
felipemonteiro.carva...@gmail.com> wrote:
> On Dec 3, 6:25 pm, Dianne Hackborn <
hack...@android.com> wrote:
>
> > Why don't you just put them in your files directory use returned by the
> > various Context APIs like Context.getFilesDir()?
>
> Thank you very much!!! =)
>
> If anyone is interested, the code which succeeds in executing a Pascal
> application and getting it's pipes output was placed here:
>
>
http://p-tools.svn.sourceforge.net/viewvc/p-tools/PascalNotes4Android...