Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Adding extraneous files to APK?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mark Winchester  
View profile  
 More options Feb 15, 11:22 am
From: Mark Winchester <mwinches...@gmail.com>
Date: Wed, 15 Feb 2012 08:22:48 -0800 (PST)
Local: Wed, Feb 15 2012 11:22 am
Subject: Adding extraneous files to APK?
I've got some so files that I'm building from pre-existing code.  I'm
trying to use it, as is, but I've run into a problem.  The source
relies on two extraneous files that are expected to exist in the same
directory as the so.  If I push the files to the correct location,
with the adb, everything works as expected.  I thought that putting
the files in the "assets" folder of the project would work, but that
was not the case.  Is there a way to add these files to the project,
so that they are installed with the libraries?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Murphy  
View profile  
 More options Feb 15, 12:02 pm
From: Mark Murphy <mmur...@commonsware.com>
Date: Wed, 15 Feb 2012 12:02:24 -0500
Local: Wed, Feb 15 2012 12:02 pm
Subject: Re: [android-developers] Adding extraneous files to APK?

On Wed, Feb 15, 2012 at 11:22 AM, Mark Winchester <mwinches...@gmail.com> wrote:
> I've got some so files that I'm building from pre-existing code.  I'm
> trying to use it, as is, but I've run into a problem.  The source
> relies on two extraneous files that are expected to exist in the same
> directory as the so.  If I push the files to the correct location,
> with the adb, everything works as expected.  I thought that putting
> the files in the "assets" folder of the project would work, but that
> was not the case.  Is there a way to add these files to the project,
> so that they are installed with the libraries?

No. You can rewrite the pre-existing code in question to have a
configurable location for the files.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 4.1 Available!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JackN  
View profile  
 More options Feb 15, 12:27 pm
From: JackN <j...@jacknorth.com>
Date: Wed, 15 Feb 2012 09:27:05 -0800 (PST)
Local: Wed, Feb 15 2012 12:27 pm
Subject: Re: Adding extraneous files to APK?
I put files into assetts folder. Are you referring to them correctly

On Feb 15, 9:02 am, Mark Murphy <mmur...@commonsware.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peeyush Varshney  
View profile  
 More options Feb 15, 12:45 pm
From: Peeyush Varshney <varshney.peey...@gmail.com>
Date: Wed, 15 Feb 2012 23:15:45 +0530
Local: Wed, Feb 15 2012 12:45 pm
Subject: Re: [android-developers] Adding extraneous files to APK?

Is it Apps specific? if it is common then you can keep into prebuilt folder
and do the changes in .mk file..

On Wed, Feb 15, 2012 at 9:52 PM, Mark Winchester <mwinches...@gmail.com>wrote:

--
Thank & Regards
Peeyush Varshney

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Winchester  
View profile  
 More options Feb 16, 10:21 am
From: Mark Winchester <mwinches...@gmail.com>
Date: Thu, 16 Feb 2012 07:21:40 -0800 (PST)
Local: Thurs, Feb 16 2012 10:21 am
Subject: Re: Adding extraneous files to APK?
Can I access files in "assets" like they were files located in ./
assets/ from my native code?  When I shell into the emulator, I
noticed that the files aren't pushed out to the /data/data/blah...
folder with the library files.

-Mark

On Feb 15, 11:27 am, JackN <j...@jacknorth.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Murphy  
View profile  
 More options Feb 16, 10:50 am
From: Mark Murphy <mmur...@commonsware.com>
Date: Thu, 16 Feb 2012 10:50:28 -0500
Local: Thurs, Feb 16 2012 10:50 am
Subject: Re: [android-developers] Re: Adding extraneous files to APK?

On Thu, Feb 16, 2012 at 10:21 AM, Mark Winchester <mwinches...@gmail.com> wrote:
> Can I access files in "assets" like they were files located in ./
> assets/ from my native code?  When I shell into the emulator, I
> noticed that the files aren't pushed out to the /data/data/blah...
> folder with the library files.

AFAIK, no. However, you can use JNI to call back into your app and get
at the data from Java code, passing the results to the native code.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikolay Elenkov  
View profile  
 More options Feb 16, 10:59 am
From: Nikolay Elenkov <nikolay.elen...@gmail.com>
Date: Fri, 17 Feb 2012 00:59:25 +0900
Local: Thurs, Feb 16 2012 10:59 am
Subject: Re: [android-developers] Re: Adding extraneous files to APK?

On Fri, Feb 17, 2012 at 12:50 AM, Mark Murphy <mmur...@commonsware.com> wrote:
> On Thu, Feb 16, 2012 at 10:21 AM, Mark Winchester <mwinches...@gmail.com> wrote:
>> Can I access files in "assets" like they were files located in ./
>> assets/ from my native code?  When I shell into the emulator, I
>> noticed that the files aren't pushed out to the /data/data/blah...
>> folder with the library files.

> AFAIK, no. However, you can use JNI to call back into your app and get
> at the data from Java code, passing the results to the native code.

Or, to make your life simpler, just copy the assets to regular files
under /data/data/yourapp on first run. Then you can open them
with regular C functions.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »