--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
dlopen("/data/data/com.example.HelloJni/lib/libabc.so", RTLD_LAZY);
> Please never ever hard-code a path like that. There are Java APIs to get
> the path to your data.
Could you please suggest us those APIs & how they are used to get the
path of the libs?
That will be very useful for most of us.
thanks a lot
Latha
On Nov 19 2009, 3:47 am, Dianne Hackborn <hack...@android.com> wrote:
> On Sat, Oct 31, 2009 at 4:38 AM, srandroidbeginer <srou...@gmail.com> wrote:
> > dlopen("/data/data/com.example.HelloJni/lib/libabc.so", RTLD_LAZY);
>
> Please never ever hard-code a path like that. There are Java APIs to get
> the path to your data. I can guarantee that if you use a hard-coded path
> that your app will break in certain situations in the future.
>
> --
> Dianne Hackborn
> Android framework engineer