Hi,
Thanks for the help.
The problem is that I don't know where the libraries go to when I move the
app to SD on my HTC for me to use System.load().
So the only workaround I found is to check for the existance of the .so
file in the predefined folder /data/data/your_package_name/lib.
If it is
On Thu, May 16, 2013 at 6:19 PM, Filipe Madureira
filipe.ma...@gmail.com wrote:
Hi,
Thanks for the help.
The problem is that I don't know where the libraries go to when I move the
app to SD on my HTC for me to use System.load().
IIRC, the encrypted packages stored on SD card are loopback
On Thu, May 16, 2013 at 6:29 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
On Thu, May 16, 2013 at 6:19 PM, Filipe Madureira
filipe.ma...@gmail.com wrote:
Hi,
Thanks for the help.
The problem is that I don't know where the libraries go to when I move the
app to SD on my HTC for me to
On Thu, May 16, 2013 at 9:16 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
On Thu, May 16, 2013 at 6:29 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
On Thu, May 16, 2013 at 6:19 PM, Filipe Madureira
filipe.ma...@gmail.com wrote:
Hi,
Thanks for the help.
The problem is that I
You may want to take a look here:
http://developer.android.com/guide/topics/data/install-location.html
In particular:
*
*
Beginning with API Level 8, you can allow your application to be installed
on the
Thanks for the help.
Using the hint on getApplicationInfo().nativeLibraryDir I could confirm
it is a problem on this specific HTC. Probably a bug.
On AVD and on a Samnsung it works correctly and I confirmed the existence
of the lib files in getApplicationInfo().nativeLibraryDir.
On the HTC they
Hi,
I had only used Bing up till now ;)
Thanks for your great tutorial on this new thing called Google.
I tryed it, but still did not find the answer.
The libs are under the /data/data/your_package_name/lib folder.
When I move the App I start getting java.lang.UnsatisfiedLinkError:
Terça-feira, 14 de Maio de 2013 17:41:56 UTC+1, Filipe escreveu:
Hi
I have a project in Eclipse that uses some jni libraries that I load using
System.loadLibrary(myNativeLib).
This works great, but if I move my app to the SDCard it stops working,
because it can't load the library.
That's what bing got me :)
http://stackoverflow.com/questions/2826412/how-to-load-jni-from-sd-card-on-android-2-1
On Wednesday, May 15, 2013 12:00:50 PM UTC+3, Filipe wrote:
Hi,
I had only used Bing up till now ;)
Thanks for your great tutorial on this new thing called Google.
I tryed
I found this one using Google:
https://groups.google.com/forum/?fromgroups=#!topic/android-ndk/0uY4qgam1Ws
It says:
You must use System.load() if you want to specify the full path name
of the file, System.loadLibrary() is only for ones in the default
location.
Also *you should not be able
That's actually the same person making pretty much the same reply :-)
On Thursday, May 16, 2013 1:02:10 AM UTC+3, bob wrote:
I found this one using Google:
https://groups.google.com/forum/?fromgroups=#!topic/android-ndk/0uY4qgam1Ws
It says:
You must use System.load() if you want to
No. What errors do you get in LogCat?
On Tuesday, May 14, 2013 5:41:56 PM UTC+1, Filipe wrote:
Hi
I have a project in Eclipse that uses some jni libraries that I load using
System.loadLibrary(myNativeLib).
This works great, but if I move my app to the SDCard it stops working,
Filipe wrote:
I have a project in Eclipse that uses some jni [sic] libraries that I load
using System.loadLibrary(myNativeLib).
Those libraries are native to what platform?
This works great, but if I move my app to the SDCard it stops working,
because it can't load the library.
http://code.google.com/p/android/issues/detail?id=20686
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
I'm having same issues while loading many android webview dynamically in
viewpager
http://stackoverflow.com/questions/10942929/viewpager-webview-memory-issue/10943022#10943022
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
This issue will come up whether or not you are using Android. JNI can
be used on any JVM that supports it and will have the same semantics
and requirements. Android is in no way special to what you're asking.
You should try consulting a JNI specification or reading something
like this:
Hello !
It seems for me, that your question is not really ndk and android
related,
instead more or less something related to Reflection and the Dynamic
Invocation API.
Good luck ! Frank
On 13 Jan., 11:11, M J fakeacc...@googlemail.com wrote:
Hey guys,
I nned your help. I am currently
Hey,
hmmm, I do not think so. I just want to know how to call a Java method
from C without having the jobject. Can I cache it when I previously
got it as parameter?
On 16 Jan., 09:11, FrankG frankgru...@googlemail.com wrote:
Hello !
It seems for me, that your question is not really ndk and
Sorry to revisit such an old post, but the answer by fadden is
precisely what I needed to know, and one that took some effort to dig
up. The issue about non-system classes not being loaded will come up
if you are implementing callbacks from C into the JVM; there seem to
be plenty of other
On Monday, August 9, 2010 10:53:37 AM UTC-4, AlreadyAMember wrote:
During this loop in C in case of an error I would like to
callback the java UI thread and pop up a dialog from C , the KEY is
C has to block and wait.
So if I create a thread and set up a handler in Java to show the
If you can do with Java solution, then on Java side after calling
handler.sendMessage() call wait() once the dialog is dismissed call
notify() (of course making sure to wait() notify() on the same object).
Alternatively you could use CyclicBarrier or CountDownLatch in the
java.util.concurrent
On Friday, August 19, 2011 12:27:04 PM UTC-4, Sudheer wrote:
If you can do with Java solution, then on Java side after calling
handler.sendMessage() call wait() once the dialog is dismissed call
notify() (of course making sure to wait() notify() on the same object).
Alternatively you
hmm I don't know but am I right if I think that the code written in C+
+ will be the same for both of processores. And OS will be the same
too. And as I know the android app is compilated by virtual machine
which is running under the android. So I don'tunderstand why deppends
on type of processor.
Native code is... well native.
An .so packaged within an application contains machine code and runs
directly on the processor (unlike .dex code).
-- Kostya
12.01.2011 13:36, Richard Sámela пишет:
hmm I don't know but am I right if I think that the code written in C+
+ will be the same
I believe that there are devices (e.g. some tablets) out there that
use MIPS processors rather than ARM. Correct me if I am wrong, but I
do not believe that code compiled for an ARM device will work on a
MIPS device.
On Jan 11, 11:35 am, Kumar Bibek coomar@gmail.com wrote:
Yes, It will work
Then I manage to do what I want by using obj in CallVoidMethod. I am
sure to tried it before but debug is hard with JNI.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
On Nov 7, 9:47 am, lomoflicker evrenbin...@gmail.com wrote:
1)
Do cached global environments get deleted or somehow get corrupted
when activities change ?
Not by the VM.
2) SIGKILL vs SIGTERM.
I know the differences of both. Can android native threads handle
these signals ?
Nothing can
If it is a platform extension and part of the system,
that putting the shared lib in the apk will not help.
In this the lib must be unter /system/lib.
Good luck !
Frank
On 22 Jul., 07:13, Rajesh Pelluru mail2pell...@gmail.com wrote:
Hi,
If your app uses native code then you need to
Hi,
I am able 2 run the code in the emulator but when i try 2 put it on a
device i am getting an error which says: cannot find .so file.
I have included the.so file in /data/data/package/lib. but still i am
not able 2solve the error
On Jul 22, 10:13 am, Rajesh Pelluru mail2pell...@gmail.com
Hi,
I am able 2 run the code in the emulator but when i try 2 put it on a
device i am getting an error which says: cannot find .so file.
I have included the.so file in /data/data/package/lib. but still i am
not able 2solve the error
On Jul 22, 1:19 pm, FrankG frankgru...@googlemail.com wrote:
On Apr 26, 6:17 am, Budugu 369 budugu...@gmail.com wrote:
Is it possible to redirect the stdout of JNI code to Java code and
vice versa with stdin
I'm not entirely sure what you're asking, but the answer is probably
no.
There's a semi-documented sort-of-supported system property that will
Hi fadden,
Thank you very much for your answer. It cleared my thoughts on this
subject.
P.S. Sorry for the late reply but it took me some time to analyze your
answer.
Cheers,
On Dec 2, 9:47 pm, fadden fad...@android.com wrote:
On Dec 2, 4:06 am, bacchus aeternal.de...@gmail.com wrote:
By
Hi Suchand,
Somehow the table you wanted to present got deformated.
Could you please provide me a web reference to it?
Thanks in advance.
Cheers
On Dec 1, 5:15 am, Suchand Ghosh chand4andr...@gmail.com wrote:
I think you r looking for:
Mapping types
The following table shows the mapping
Hi fadden,
Sorry for not being clearer on my first post.
I'm trying to understand better (through code reading) the startup
process of Android.
By startup, I mean to understand how the Android Runtime is setup and
Dalvik is started.
Throughout the code reading process I've found VMRuntime.
On Dec 2, 4:06 am, bacchus aeternal.de...@gmail.com wrote:
By startup, I mean to understand how the Android Runtime is setup and
Dalvik is started.
Throughout the code reading process I've found VMRuntime.
VMRuntime doesn't have a whole lot to do with that. It just has some
utility
On Nov 30, 9:15 pm, Suchand Ghosh chand4andr...@gmail.com wrote:
Here, these types are interchangeable. You can use jint where you normally
use an int, and vice-versa, without any
typecastinghttp://en.wikipedia.org/wiki/Typecastrequired.
...sometimes. On current Android systems, int and long
On Nov 30, 9:08 am, bacchus aeternal.de...@gmail.com wrote:
I'm looking for specific information about Android JNI Call Bridge.
The one that exists does not suffices my needs.
The JNI call bridge is a bit of code that converts an array of 32-
bit values into C-style arguments. It takes into
I think you r looking for:
Mapping types
The following table shows the mapping of types between Java and native code.
Native Type Java Language Type Description Type signature unsigned char
jboolean unsigned 8 bits Z signed char jbyte signed 8 bits B unsigned short
jchar unsigned 16 bits C
The method you are calling is not static, but you are not calling it
with an instance object. You are calling it with the class object
instead. Probably you want to make the method you are calling static.
zhangho wrote:
JNI problem : from c Languege call Java
i think from c Languege call
very thanks.
i'm already slove this problem atGetStaticMethodID()
CallStaticIntMethod() method.
On 10月16日, 午前7:54, Michael MacDonald googlec...@antlersoft.com
wrote:
The method you are calling is not static, but you are not calling it
with an instance object. You are calling it with
(1) This discussion should be on android-ndk.
(2) Make sure you have CheckJNI enabled (setprop dalvik.vm.checkjni
true) if you're not on the emulator.
(3) The logcat output will have some information about the crash that
you should include.
On Sep 15, 3:33 am, caval cavalzh...@gmail.com wrote:
Thanks for your tip, but the options does not work.may be I should check
android JNI spec firstly.
2009/9/16 fadden fad...@android.com
(1) This discussion should be on android-ndk.
(2) Make sure you have CheckJNI enabled (setprop dalvik.vm.checkjni
true) if you're not on the emulator.
(3)
I do have the same problem. Seems android sdk's problem..
On 5月14日, 上午6时16分, fadden fad...@android.com wrote:
On May 12, 6:53 pm, fadden fad...@android.com wrote:
Are you including any of your own native code? If not, this is likely
a bug in the core libraries.
...and so it is.
On May 12, 6:53 pm, fadden fad...@android.com wrote:
Are you including any of your own native code? If not, this is likely
a bug in the core libraries.
...and so it is.
OSNetworkSystem.java declares:
static native InetAddress getHostByNameImpl(String addr,
boolean
On May 11, 4:58 pm, AndyK akisp...@gmail.com wrote:
I'm trying to write a simple application that will utilize a Socks5
proxy server to connect to a web server (www.google.com). I am using
an instance of 'java.net.Proxy' of type 'SOCKS' in my application and
am using my implementation of
I got it:
http://groups.google.com/group/android-developers/browse_thread/thread/d80b1157cda06a79/7f6a3fee79713011
On Feb 26, 11:19 pm, yichu chuuw...@gmail.com wrote:
Hi Jerry,
Could you share how to fix thisjni_onloadproblem? I got the same
error but don't know how to solve it. Thanks :)
As has been noted before, native code JNI development is not
currently supported on the SDK, and probably is better off discussed
in the android-platform or android-discuss boards.
See http://source.android.com/discuss for more information.
--~--~-~--~~~---~--~~
Of the top of my head, I think you need to createThreadEtc with the
flag to indicate that your thread will call into Java.
On Jan 9, 2:00 pm, redlight9...@gmail.com redlight9...@gmail.com
wrote:
i am trying to make callbacks to my android application from a native
C thread using JNI. however
On Jan 9, 2:00 pm, redlight9...@gmail.com redlight9...@gmail.com
wrote:
i am trying to make callbacks to my android application from a native
C thread using JNI. however when i call FindClass it returns a NULL
value. i need to get the jclass value returned by FindClass() to
call
Thanks.
I tried System.loadLibrary(mylib);
I got exception of unsatisfied link.
I tried both my lib (libmylib.so) and some libs under /system/lib.
Both Dev1 and G1 phones.
On Jan 7, 7:13 pm, Dave Sparks davidspa...@android.com wrote:
You can download the Android source code from
Since native code is not currently supported in the SDK, could you please
move this to one of the platform lists? Thanks.
Btw if you read the platform lists, there is now in the main tree a complete
example of implementing a native code library and a Java glue library that
uses JNI to call it.
Sorry, I cannot figure out a way to move this thread to the platform
list.
So I have to post here for now. And maybe more people will go this
list and try to find a answer about JNI?
And I searched the platform list by keyword jni, but didn't find the
complete example.
Anyone can help to give a
Please just post on the platform list. This is not the place to discuss
JNI.
On Thu, Jan 8, 2009 at 1:28 PM, blues bluescapt...@gmail.com wrote:
Sorry, I cannot figure out a way to move this thread to the platform
list.
So I have to post here for now. And maybe more people will go this
You can download the Android source code from source.android.com and
build your JNI libraries against the gcc toolchain for testing.
On Jan 5, 5:19 pm, blues bluescapt...@gmail.com wrote:
I have read all the post about JNI. And I know JNI is not offcially
supported and google is working on the
What about the development of a hardware driver or middle wire on android?
2008/9/30 hackbod [EMAIL PROTECTED]
To be clear: native code is not a supported part of the 1.0 SDK. If
you use it, your application will most likely break with future
platform updates.
On Sep 29, 8:48 am, Josh
middle wire.. sounds funny.
On Sun, Oct 5, 2008 at 11:52 PM, Neil. He [EMAIL PROTECTED] wrote:
What about the development of a hardware driver or middle wire on android?
2008/9/30 hackbod [EMAIL PROTECTED]
To be clear: native code is not a supported part of the 1.0 SDK. If
you use it, your
I haven't specifically tested with 1.0, but with 0.9r1 it was
certainly possible. The issue of it being supported, however, is more
difficult. There is no distribution mechanism for native code,
furthermore the /system image is not writable on normal phones. So
unless there is a way to load
To be clear: native code is not a supported part of the 1.0 SDK. If
you use it, your application will most likely break with future
platform updates.
On Sep 29, 8:48 am, Josh Guilfoyle [EMAIL PROTECTED] wrote:
I haven't specifically tested with 1.0, but with 0.9r1 it was
certainly possible.
58 matches
Mail list logo