Android 1.6

38 views
Skip to first unread message

Daniele Fornaciari

unread,
Jul 6, 2011, 8:26:40 AM7/6/11
to epublib
Hi,
I started some days ago to work iwth you library on Android, do you
know why it's crash on Android 1.6, but works great on 2.2?

Thanks.
Daniele

Paul Siegmann

unread,
Jul 6, 2011, 8:29:20 AM7/6/11
to epublib
Hi Daniele,

I have no idea why it doesn't work on Android 1.6.
I've only tested it on Android 2.1 myself.

I'm assuming epublib uses some class that is not available on Android
1.6.

Can you switch to a more recent version of Android ?
If not, can you send the stacktrace of the error ?

regards,
Paul

On Jul 6, 2:26 pm, Daniele Fornaciari <goo...@booklet-market.com>
wrote:

Daniele Fornaciari

unread,
Jul 6, 2011, 3:55:18 PM7/6/11
to epublib
Thnaks

This is Stack Copy:

Thread [<3> main] (Suspended (exception VerifyError))
EpubReader.readResources(ZipInputStream, String) line: 134
EpubReader.readEpub(ZipInputStream, String) line: 60
EpubReader.readEpub(InputStream, String) line: 55
EpubReader.readEpub(InputStream) line: 38
startActivity.onCreate(Bundle) line: 61
Instrumentation.callActivityOnCreate(Activity, Bundle) line: 1123
ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord,
Intent) line: 2364
ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord,
Intent) line: 2417
ActivityThread.access$2100(ActivityThread, ActivityThread
$ActivityRecord, Intent) line: 116
ActivityThread$H.handleMessage(Message) line: 1794
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123
ActivityThread.main(String[]) line: 4203
Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 521
ZygoteInit$MethodAndArgsCaller.run() line: 791
ZygoteInit.main(String[]) line: 549
NativeStart.main(String[]) line: not available [native method]
Message has been deleted

Daniele Fornaciari

unread,
Jul 6, 2011, 4:38:33 PM7/6/11
to epublib
I think it's due to javax.xml.xpath that is a API Level 8 and Android
1.6 is a API Level 4.
Do you thinks there is a workaround?

Daniele

Paul Siegmann

unread,
Jul 6, 2011, 5:37:15 PM7/6/11
to epublib
Hi Daniele,

Turns out that there was an XPathFactory created that was never used.
I've checked in a version that no longer uses any of the xpath
classes.

Could you give it a try ?

regards,
Paul

On Jul 6, 10:38 pm, Daniele Fornaciari <goo...@booklet-market.com>

Daniele Fornaciari

unread,
Jul 7, 2011, 2:51:19 AM7/7/11
to epublib
Thnaks, I will try it in 10 hour at this time I'm in the office to
work ;(

I will give you an answer as soon as possible.

Daniele

Daniele Fornaciari

unread,
Jul 7, 2011, 3:29:02 PM7/7/11
to epublib
The crash is the same ;(

Paul Siegmann

unread,
Jul 10, 2011, 7:23:36 AM7/10/11
to epublib
Hi Daniela

It's very hard for me to figure out which classes are missing without
the classnames in the stacktrace.

Could you look for a java.lang.NoClassDefFoundError in the stacktrace
and tell me which classes are missing ?

regards,
Paul

On Jul 7, 9:29 pm, Daniele Fornaciari <goo...@booklet-market.com>
Reply all
Reply to author
Forward
0 new messages