Guys,

I've got a similar question in line of adding new APIs that I need to
deploy for application developers, and wonder what's the best way to
do it.

We are delivering a platform to our customer's apps team and as part
of the platform we need to add some custom APIs to access specific
hardware resources, these are currently implemented through JNI and
have associated JAR files. The test applications directly link in
these JAR files to make use of the new APIs, but I'm wondering what's
a better way of deploying these new APIs without having developers
specifically including JAR files??

Deva, could you elaborate a little more about the dalvik executable
and how that works, thanks

Regards
-- Ashwin



On Tue, Mar 9, 2010 at 9:58 AM, Deva R <[email protected]> wrote:
> hi,
> as this's regarding android app development, you might get fast response at
> 'android-developers'
>
> here's my 2 pennies:
> - if you want to create a new app, use SDK,and compile your .java source to
> dalvik executable. (.dex)
>  note android has dalvik VM, so, regular .class wont be supported.
>
> - if you want to modify exisiting android component, download complete
> android filesystem source, modify, rebuild the component and use.
>
>
> On Tue, Mar 9, 2010 at 12:26 PM, Anandi <[email protected]> wrote:
>>
>> Hi all,
>>
>> I want to add one sample api in local copy of android on my machine. I
>> don't want it to be distributed on the open source.
>>
>> For eg : I have mathlib.java file . This mathlib class has a native
>> method add.
>>
>> Now i am not able to understand, where in the directory structure
>> should i keep this java file.
>>
>> do i need to create .class and .h files manually for this or will
>> build system take care of it?
>>
>> as per my understanding i'll need to have corresponding cpp
>> implementation for this api. so, where do i keep this cpp file?
>>
>> Please suggest the steps to do this. Thanks in advance.
>>
>> Anu
>>
>> --
>> unsubscribe: [email protected]
>> website: http://groups.google.com/group/android-porting
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>

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

Reply via email to