Hello,
I posted this on SO the day before yesterday (*) but since there have been
no replies posting here, too:
I have an Android project which uses an Android library project as a
dependency. Building it with ant works fine, I'd just like to have the
library project use a different bin
I've done this -- keeping ant builds completely separate from
Eclipse's -- by hacking on the project's and the SDK's build.xml
files.
Not an ant expert either (last I used was some ten years ago), but it
wasn't too difficult either.
The modification that deals with library references (in the
Thanks a lot for your suggestion, it seems to work. I've put it in
custom_rules.xml. I had to wrap it in project element as per this post
http://stackoverflow.com/questions/8528373/android-custom-build-using-ant
which results in a Duplicated project name in import warning. It
nevertheless
According to this
posthttp://android-developers.blogspot.com.br/2011/10/changes-to-library-projects-in-android.htmlwe
cannot distribute an Android library and its resources as a single jar
file because of The nature of Android resources, with their compiled IDs
Are there any plans to
On Thu, Jul 12, 2012 at 7:31 PM, Ericsen escio...@gmail.com wrote:
According to this post we cannot distribute an Android library and its
resources as a single jar file because of The nature of Android resources,
with their compiled IDs Are there any plans to allow this?
Yes, they have
On Fri, Mar 23, 2012 at 10:33 AM, Nikolay Elenkov nikolay.elen...@gmail.com
wrote:
Library projects now (since ADT15?) produce a jar. Linked source
folders are now longer used, so there is no code merging.
Thanks Nikolay for confirming that.
Don't refer to A.java directly. Put an
Hi,
I am trying to migrate to the newly released SDK and ADT 17 from my earlier
setup of SDK 12. (I couldn't use the intermediate SDK releases because of
some problems that were fixed only in SDK 17). One of the problems I am
facing now is that Projects which use an Android Library Project are
On Fri, Mar 23, 2012 at 1:50 PM, Harshad harshad...@gmail.com wrote:
From what I understand, in the newer SDKs, the Library project needs to be
compilable by itself, while in earlier versions that was not necessary. In
earlier versions, the source code from the library projects was merged
I've created an android library. When i reference this library in
android project it creates R file in android project and there is no R
file in library jar. Is it possible to create android library with R
file and resources like GoogleAdMobAdsSDK?
--
You received this message because you are
Per the documentation the Content Provider authority must be unique
and describes nothing about the name needing to be unique.
A Content Provider works fine in a library if it is the only
application on the device with the library installed.
The behavior I see with multiple apps when pointing
Is there something I need to do so that my own Android Library's
source code is findable by Android projects working with it within the
same workspace? The debugger goes to a .class version of it, and no
use of the link to source function offered thereby placates it.
No pointing out of this
1:
Add the library project as a dependency to the app project:
Package Explorer / Right-click the app project / Properties / Java Build
Path / Projects, under Required projects on the build path.
2:
Switch to the Order and Export tab and move the library project up, so
it's above Library
Oh my goodness - you're my hero.
I've had this same issue and it was driving me crazy. There is a bug
reported for it so I thought I was stuck waiting for a fix.
http://code.google.com/p/android/issues/detail?id=23685can=5colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
But now I can debug
I've found the above in the release notes of library projects
Developers asked us for the ability to distribute a library as a
single jar file that included both compiled code and resources...
http://android-developers.blogspot.com/2011/10/changes-to-library-projects-in-android.html
Can I
Not today. They are part-way there now -- a library project generates
a JAR that the host project then uses, instead of linked source
folders (in Eclipse) or equivalent techniques. However, that JAR
cannot be used outside of the library project.
With luck, R16 will support distribution of library
Hi,
I wish to build an in-house library in Android.
I wish to do somethings like this:
public class BaseActivity extends Activity {
public void displayMessage(String text)
{
Toast.makeText(this, text, Toast.LENGTH_LONG);
}
}
But I cannot do somethings like this:
public class MyActivity extends
hi all,
this is my situation: i have a library project, and a project
referencing it. I know that is very simple to redefine any resource in
my project, because in cases where a resource ID is defined in both
the application and the library, the tools ensure that the resource
declared in the
Hi,
I have a project depending on an Android library. The library builds
just fine, and I can see the library project is linked to my
application but I cannot reference anything in it because it won't
build. The R.java file from the lib is NOT being added to my
application project, instead it is
On Tue, Jul 5, 2011 at 7:55 AM, Guillaume guillaume.dele...@gmail.comwrote:
Please offer any ideas you might have to help!
Clean, refresh, and rebuild both projects ... several times.
-
TreKing
I have an app which I am trying to turn into a library and create 2 new apps
that consume it. I have to move all code differences between the 2 apps out
of the library and into the separate apps due to the fact that I sold source
code to the owner of the app. This way I can give them them
On Tue, May 3, 2011 at 2:20 PM, Aaron aaron.chan...@gmail.com wrote:
I have an app which I am trying to turn into a library and create 2 new
apps that consume it. I have to move all code differences between the 2
apps out of the library and into the separate apps due to the fact that I
sold
Either
A) Your customer list activity remains in the library, handling differences
via some other mechanism.
I can't do A because my clients are competitors to each other and therefore
I can't allow one competitor to see any custom work by another client who
doesn't own a source license.
B)
On Tue, May 3, 2011 at 3:10 PM, Aaron aaron.chan...@gmail.com wrote:
A) Your customer list activity remains in the library, handling differences
via some other mechanism.
I can't do A because my clients are competitors to each other and therefore
I can't allow one competitor to see any
Every time I launch Eclipse there is an Android Library Update
message in the status bar and it rebuilds all my apps. I this
supposed to happen? It takes a long time.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group,
Does anyone on this list know of a Windows Azure library for Android? I've
looked around but only found http://www.windowsazure4j.org/ which has a
dom4j dependency (and an number of transitives dependencies on that, with
some licenses that I can't use).
Thanks,
Shane
--
You received this
you have to ask this question in there website
On Sat, Mar 5, 2011 at 3:56 AM, Shane Isbell shane.isb...@gmail.com wrote:
Does anyone on this list know of a Windows Azure library for Android? I've
looked around but only found http://www.windowsazure4j.org/ which has a
dom4j dependency (and an
On Fri, Mar 4, 2011 at 2:37 PM, Nasif Noorudeen nas...@gmail.com wrote:
you have to ask this question in there website
They don't provide such a library. That's why I'm asking here.
Shane
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
Hi all,
My Android project has multiple Android Library dependencies. Two of them
use the ORMlite JAR so they each have that JAR in their libs directory so we
can build the individual projects with Eclipse. However, when I try to build
the overall Android project with ant, the -dex step
It's not possible at this time to exclude them.
I believe the error is actually only a warning, in which case you could
ignore it?
On Wed, Feb 23, 2011 at 6:51 AM, Ian ian.d...@gmail.com wrote:
Hi all,
My Android project has multiple Android Library dependencies. Two of them
use the ORMlite
I've attached the output of my ant debug run at the command line.
Unfortunately it exits with a build failure so I cannot ignore and continue.
On Wed, Feb 23, 2011 at 11:52 AM, Xavier Ducrohet x...@android.com wrote:
It's not possible at this time to exclude them.
I believe the error is
ah that is annoying. As a workaround you could create another library
that has no code/resources but only the jar file and make both of the
library that needs the jar file depend on it.
Xav
On Wed, Feb 23, 2011 at 9:59 AM, Ian Dees ian.d...@gmail.com wrote:
I've attached the output of my ant
It looks as if Android library projects simply don't work in Eclipse.
On my first try, I got everything to build but then got runtime errors
from Verify Exceptions. Bad bytecodes in other words.
So I reconstructed the main project and library projects from scratch.
Half-way through that process,
Android Library projects do work in eclipse, but the automatic setup is a
bit fragile.
From the errors you have though it sounds like the setup isn't the problem.
Did you follow the exact instructions at
http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject
If you can
On Fri, Feb 18, 2011 at 2:40 PM, Xavier Ducrohet x...@android.com wrote:
Did you follow the exact instructions at
http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject
While we're on the topic of the Library Project not working correctly, I did
followed those exact
hmm I'm not seeing this at all.
There was a problem a long time ago, if you had a broken project in your
workspace it could fail, but this has been fixed.
If you have any other unrelated projects in your workspace can you close
them and see if that fixes it?
On Fri, Feb 18, 2011 at 12:53 PM,
On Fri, Feb 18, 2011 at 5:14 PM, Xavier Ducrohet x...@android.com wrote:
hmm I'm not seeing this at all.
There was a problem a long time ago, if you had a broken project in your
workspace it could fail, but this has been fixed.
If you have any other unrelated projects in your workspace can
Hello,
this is Eclipse related (Helios). The basic question here is:
How would you include system independent java classes into a Android
Library project?
Context: I have a graphics engine which is loosely coupled with the
Android system (engine classes do not include Android packages, mostly
The Android library projects are a bit particular in the sense that the main
project doesn't actually reference the library projects in a way that JDT
(the Java plug-in for eclipse) recognize.
This means that the main project doesn't know about the project referenced
by the library projects. It's
I am trying to make a license checker for my application using the official
android documentation. Having done everything mentioned there my application
now doesn't run even on my emulator, on running it gives an error,
Android Library Projects cannot be launched.
Also, on making a .apk file i
Hello All,
I'm working on a project with multiple applications with a shared
codebase. The activities in the applications have different
behaviors, so I can't use the android shared library facility, because
I'd like to have each application be able to extend an Activity from
the core library.
On Mon, Nov 29, 2010 at 3:18 PM, Matthew Reynolds
matthewcreyno...@gmail.com wrote:
I'm working on a project with multiple applications with a shared
codebase. The activities in the applications have different
behaviors, so I can't use the android shared library facility, because
I'd like to
Hello,
i'm using Android Project Library (http://goo.gl/7vvxI). In Android
docs, it copys all items from android library project
AndroidManifest.xml in application AndroidManifest.xml
like in example, AndroidManifest.xml of library project
manifest
...
application
...
activity
Is there any way to control the name of the link that Eclipse makes
when it integrates a library project? I have inconsistency going on
depending on the machine, and I don't understand why.
The project structure is really simple, basically there's a library
called _engine and a set of other
I think you don't have the same version of ADT on your different machines.
We released 0.9.8* a few weeks ago which changed how we handle
libraries in Eclipse.
There's a migration document here:
http://developer.android.com/guide/developing/eclipse-adt.html#libraryMigrating
* actual current
Hello all,
I have a legacy application and need to split it into a library
project (common code) and two application projects (paid and free
applications). I don't use Eclipse for development, and also don't use
Ant builds provided (generated) by Android SDK (there are several
reasons for that),
Has anyone been able to get an APK that uses an android library to
compile using ant?
This works fine from eclipse but from the command line I always get a
null pointer exception:
Buildfile: build.xml
[setup] Android SDK Tools Revision 6
BUILD FAILED
java.lang.NullPointerException
make sure you have the libs project in your library project (even if
it's empty)
This is fixed for the next version.
On Tue, Jun 15, 2010 at 12:25 PM, b2amedina b2amed...@gmail.com wrote:
Has anyone been able to get an APK that uses an android library to
compile using ant?
This works fine
I meant libs _folder_ in your library project.
On Tue, Jun 15, 2010 at 12:35 PM, Xavier Ducrohet x...@android.com wrote:
make sure you have the libs project in your library project (even if
it's empty)
This is fixed for the next version.
On Tue, Jun 15, 2010 at 12:25 PM, b2amedina
Great to see the new Android Library Project feature in ADT 0.9.7.
http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject
However, some things aren't clear to me yet:
1. In the library project, what does versionCode, versionName,
packageName now mean? I assume nothing???
On Sat, May 22, 2010 at 2:49 AM, Mark Carter m...@carter.name wrote:
Great to see the new Android Library Project feature in ADT 0.9.7.
http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject
However, some things aren't clear to me yet:
1. In the library project, what
Hi,
I'd like to create a own Android Library, as in a JAR file with
specific functionality which I can later re-use in future projects...
This Library will also include basic Archtiecture components...
Now I was wondering what type of Project should I be using for this in
Eclipse ?
Should it be a
I use a Java Project for a library.
Seems if you use an Android project in Eclipse as library, you will have big
troubles.
Just use the Java project and remove the standard JRE from the build path
and add the android.jar in the build path. That should do the tick.
BR,
Adrian Vintu
Hi everyone,
A few applications I am working on currently would greatly benefit
from a UI widget that is a large calendar that would use most of the
screen area and hopefully could launch activities or grab data when a
specific date is clicked AND its appearance is modifiable (e.g. change
color
53 matches
Mail list logo