java - How to install and use db4o for Android? - Stack Overflow

java - How to install and use db4o for Android? - Stack Overflow

I have to admit that I'm new to Java and Android. db4o seems to be an excellent DB framework to replace SQLite http://developer.db4o.com/Platforms/Java/Android.aspx. I want to use it for my Android application. I don't know how to: Import/Install/Attach/Upload db4o to Android phone. Where should I put the JAR file db4o-7.12.132.14217-all-java5.jar so that it was uploaded to Android phone and it could be called from the application? Please kindly advise! Many thanks!!!

EDIT

In addition to the answer, here goes the official documentation: http://developer.db4o.com/Documentation/Reference/db4o-7.4/net2/reference/html/reference/platform_specific_issues/android.html

share | edit | flag

 
  

1 Answer

up vote 4 down vote accepted

Put it anywhere you like, maybe make a new directory 'libs' in your application root and add it there. Then go to Project->Properties->Java Build Path->Add External JARs, and select this file.

The imports should now work. Eclipse will prompt you with the lightbulb in the left margin when you start using the classes, to add an import automatically.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值