Questions tagged [library-project]

A project that will be compiled as a library

A project that will be compiled as a library.

In Android:

A library project is a standard Android project, so you can create a new one in the same way as you would a new application project.

To create a new library project:

1 - Select File > New > Project.
2 - Select Android > Android Application Project, and click Next.
3 - Enter the basic settings for the project, including Application Name, Project Name, Package Name, and SDK settings.
4 - In the Configure Project page, select the Mark this project as a library option to flag the project as a library.
5 - Set the other options as desired and click Next.
6 - Follow the instructions to complete the wizard and create a new library project.

You can also convert an existing application project into a library. To do so, simply open the Properties for the project and select the is Library checkbox

182 questions
0
votes
2 answers

Need to launch the Library project from my developed App

I have included the ePubReader Android Project as a library in my App named "Test" and trying to launch the ePubReader via "Test" using Intent as follows: Test App: findViewById(R.id.button1).setOnClickListener(new View.OnClickListener() { …
Anandaraja_Srinivasan
  • 568
  • 1
  • 10
  • 25
0
votes
2 answers

Creating library project and integrating into existing project in android

I have an application that has got two basic screens, a home page and a sliding drawer menu fragment to the left of home page like the facebook sliding drawer. Now I am planning to create another page to the right of the home page that appears by…
0
votes
1 answer

Using library project doubles size of project

I am developing an android app which is available as a free trial version and as a paid pro version. Of course, both are sharing large amounts of code so I moved the core functionality into an android library project. I created two independend…
Hokascha
  • 1,709
  • 1
  • 23
  • 41
0
votes
0 answers

Android library project with no Activities but with resources. Best approach?

So currently i have a library project that contains no Activities whatsoever, but it does have resource files, like layouts for compound views and strings that are accessible from dialogFraments and normal classes. Currently this library project…
Maxrunner
  • 1,955
  • 4
  • 24
  • 41
0
votes
1 answer

Not finding library activities declarations in the manifest

I have some project as a library named LibProj. It has a lot of activities that I want to use in MainProj project but I'm getting Activity Not Found error. I have done these steps. one of them is shown below. Intent intent = new…
Hayk Nahapetyan
  • 4,452
  • 8
  • 42
  • 61
0
votes
4 answers

How do you switch your library projects in eclipse

I have following problem: I am working on many different apps more or less at the same time (switching between apps every couple of hours). Each of them is using its own packaged (git submodule) action bar sherlock. In order to compile and run each…
stoefln
  • 14,498
  • 18
  • 79
  • 138
0
votes
1 answer

Maven compiling with wrong version of android

When I run the command mvn clean install on a library project I am using, I get an error from maven saying that a command could not be run. When I run the command it gives me a bunch of compiler errors related to the fact that maven is compiling…
Stephen
  • 174
  • 4
  • 14
0
votes
1 answer

Using a Library Project

I have a android application, say 'OldApp', which uses some native methods within itself, and I have to use it as a library for a new app, say 'NewApp'. This is the first time i work with this request and i have a doubt: the OldApp has some classes,…
SegFault
  • 2,020
  • 4
  • 26
  • 41
0
votes
2 answers

ActionBarSherlock not import

I have a problem with actionbarsherlock that it drives me crazy! I have a new workspace, I imported my project and the library projects. There is also actionbarsherlock library project. My project doesn't generate R file, I suppose because there…
Tenaciousd93
  • 3,438
  • 4
  • 33
  • 56
0
votes
1 answer

Can I use project libraries in the library project?

I have a main project, it has some libs (like library-x, library-y, library-z) and a library project. In the library project I import the same libraries with the same versions of the main project (for example library-x and library-y). When I compile…
Tenaciousd93
  • 3,438
  • 4
  • 33
  • 56
0
votes
1 answer

Android,How to use nested libraries?

I have a library project in eclipse(for example L)and it has a class for example M.If a project has a reference to L, all things work fine and I can create inctances of M.Now I copy jar file that created automatically after clean/build in bin…
hasanghaforian
  • 13,858
  • 11
  • 76
  • 167
0
votes
0 answers

Creating a listener in an activity for a project that has a reference project

This is the structure I work with: Project A is a library project MainActivityA Activity A1 Activity A2 Activity A3 Project B references Project A MainActivityB I created a listener interface in MainActivityB (onMyCueListener) and I want to…
ilomambo
  • 8,290
  • 12
  • 57
  • 106
0
votes
2 answers

How to have code in my Library Project operate on configuration data in my android application?

I have 10 apps based of of one Library Project. I have an activity in the Library Project that shows a list of images. The images are different for every App, and are in the individual project. How can I create a data structure of the image data so…
pixelearth
  • 13,674
  • 10
  • 62
  • 110
0
votes
0 answers

How Should I Handle Multiple Locations for a Library Project in Android?

I'm developing an open source Android app. I'd like to use multiple development platforms. The first is my Gentoo box, where I use ant and emacs for development (because I've used emacs for years and Gentoo currently lacks support for a version of…
Trebor Rude
  • 1,904
  • 1
  • 21
  • 31
0
votes
1 answer

Why can I use another Android project as library project without setting is as a library project?

Ok I know how to set an Android project as a library project and adding it to another Android project as a library reference. However after I did this, I removed the checkmark "Is library", so the first project wasn't a library project and could be…
Darwind
  • 7,284
  • 3
  • 49
  • 48