hello , In the attached image whenever i am click on any cancel button particular row will be deleted .But I am stuck here nothing happen only item will rwmove from the list but it can't remove from the array adapter. Can anyone help me so i can come out from this problem .I attached here my code also
On Thu, Feb 16, 2012 at 4:24 AM, Mark Cz <ome...@gmail.com> wrote: > Hi, > I am having an android application that is using an external jar that > has in addition to regular classes an html file.
> The final apk root directory looks something like this
Thanks Mark.
But I don't want to use the assets directory, since it's not my
project. I am just giving the developers a jar with an html file
inside. Of course I can give them two files, a jar to put in their
classpath and a html file to put in their assets directory, but i want
to avoid that.
Anyhow I found a solution to read the file.
I am reading the apk file using
getPackageManager().getApplicationInfo(getPackageName(),
0).sourceDir;
And then by using java.util.zip.ZipFile I retrieve the html file, and
copy it to context.getFilesDir().getPath().
On Feb 16, 3:22 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> On Thu, Feb 16, 2012 at 4:24 AM, Mark Cz <ome...@gmail.com> wrote:
> > Hi,
> > I am having an android application that is using an external jar that
> > has in addition to regular classes an html file.
> > The final apk root directory looks something like this
On Thu, Feb 16, 2012 at 9:39 AM, Mark Cz <ome...@gmail.com> wrote: > But I don't want to use the assets directory, since it's not my > project. I am just giving the developers a jar with an html file > inside. Of course I can give them two files, a jar to put in their > classpath and a html file to put in their assets directory, but i want > to avoid that. > Anyhow I found a solution to read the file. > I am reading the apk file using > getPackageManager().getApplicationInfo(getPackageName(), > 0).sourceDir; > And then by using java.util.zip.ZipFile I retrieve the html file, and > copy it to context.getFilesDir().getPath().
Personally, I would not rely upon that long-term, though it may work today.
Once the ADT supports distributing Android library projects as JARs, you could put the file in res/raw/ in your Android library project and distribute it that way.
On Thu, Feb 16, 2012 at 6:39 AM, Mark Cz <ome...@gmail.com> wrote: > Thanks Mark. > But I don't want to use the assets directory, since it's not my > project. I am just giving the developers a jar with an html file > inside. Of course I can give them two files, a jar to put in their > classpath and a html file to put in their assets directory, but i want > to avoid that. > Anyhow I found a solution to read the file. > I am reading the apk file using > getPackageManager().getApplicationInfo(getPackageName(), > 0).sourceDir; > And then by using java.util.zip.ZipFile I retrieve the html file, and > copy it to context.getFilesDir().getPath().
> On Feb 16, 3:22 pm, Mark Murphy <mmur...@commonsware.com> wrote: > > On Thu, Feb 16, 2012 at 4:24 AM, Mark Cz <ome...@gmail.com> wrote: > > > Hi, > > > I am having an android application that is using an external jar that > > > has in addition to regular classes an html file.
> > > The final apk root directory looks something like this
> > Warescription: Three Android Books, Plus Updates, One Low Price!
> -- > 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 > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
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.
I would do that when the adt would support creating a library jar with
res/assets directory. I am sure many 3rd party developers will thank
Google for that.
On Feb 16, 11:18 pm, Dianne Hackborn <hack...@android.com> wrote:
> Please don't do that. The correct way to retrieve the content of your .apk
> is with Resources and AssetManager.
> On Thu, Feb 16, 2012 at 6:39 AM, Mark Cz <ome...@gmail.com> wrote:
> > Thanks Mark.
> > But I don't want to use the assets directory, since it's not my
> > project. I am just giving the developers a jar with an html file
> > inside. Of course I can give them two files, a jar to put in their
> > classpath and a html file to put in their assets directory, but i want
> > to avoid that.
> > Anyhow I found a solution to read the file.
> > I am reading the apk file using
> > getPackageManager().getApplicationInfo(getPackageName(),
> > 0).sourceDir;
> > And then by using java.util.zip.ZipFile I retrieve the html file, and
> > copy it to context.getFilesDir().getPath().
> > On Feb 16, 3:22 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> > > On Thu, Feb 16, 2012 at 4:24 AM, Mark Cz <ome...@gmail.com> wrote:
> > > > Hi,
> > > > I am having an android application that is using an external jar that
> > > > has in addition to regular classes an html file.
> > > > The final apk root directory looks something like this
> > > Warescription: Three Android Books, Plus Updates, One Low Price!
> > --
> > 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
> > android-developers+unsubscribe@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
> 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.