If you want to use the framework APIs, which have lots of native code behind
them, you need to run dalvik with the native code included in it.  I believe
the command is app_process -- you can look at some of the shell commands
like "am" and "pm" to see how they are launched.

Note that this is not a typical way to launch the platform code, so if you
aren't careful you will find various things that don't work or behave
strangely; for the most part the platform really wants to be running and a
processes launched and controlled by the activity manager.

On Sat, Sep 5, 2009 at 7:46 AM, bazookier <[email protected]> wrote:

>
> I use adb shell to type dalvikvm to run java program whose java
> calling stack invoked the native_get method of
> android.os.SystemProperties.
>
> From ddms, the warning is:09-05 09:52:31.715: WARN/dalvikvm(990): No
> implementation found for native Landroid/os/
> SystemProperties;.native_get (Ljava/lang/String;)Ljava/lang/String;
>
> So in java code, what library shuold be loaded or any other ways to
> solve this problem?
>
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to