including actionbarsherlock library in a project

138 views
Skip to first unread message

totti

unread,
Aug 17, 2011, 9:50:50 PM8/17/11
to ActionBarSherlock
hi,
i've just got started with android a couple of weeks ago, my problem
is about including the library in a projetct, here are the steps im
following :
- i create a new project targeting api 13 (as said here
https://groups.google.com/group/actionbarsherlock/browse_thread/thread/709d2055a474e2d1#)
from existing source (library/)
- i create another project(as i've seen this project also must target
api 13) and i add the first project as an android library.
--> every thing works fine but i can't run my app on a device
targetting api 7(makes sense), i've read that this actionbar can be
used even on android 1.6...im i missing something here...
all help is appreciated (sorry for my bad english).

Profete162

unread,
Aug 18, 2011, 2:56:35 AM8/18/11
to ActionBarSherlock
From here: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

android:targetSdkVersion
An integer designating the API Level that the application is
targetting.
With this attribute set, the application says that it is able to run
on older versions (down to minSdkVersion), but was explicitly tested
to work with the version specified here

So, no issue to run on android 1.6

On Aug 18, 3:50 am, totti <youssef...@gmail.com> wrote:
> hi,
> i've just got started with android a couple of weeks ago, my problem
> is about including the library in a projetct, here are the steps im
> following :
> - i create a new project targeting api 13 (as said herehttps://groups.google.com/group/actionbarsherlock/browse_thread/threa...)

totti

unread,
Aug 18, 2011, 4:14:28 PM8/18/11
to ActionBarSherlock
thanks for your reply, that helped me a lot.
The problem was that my project (which uses the library project) had
minSDKversion = 13(now = 7), so it would not run on a device
targetting sdkVersion=7.
also i can't use an emulator targetting api 13 (too slow and does'nt
seem to be working) so that's why i had to make it work on a api 7
device.
hope it helps someone.
for now i can create the project and add the library, is there any
kind of beginner tutorial on how to use the action bar?
thanks in advance.

Jake Wharton

unread,
Aug 18, 2011, 11:03:47 PM8/18/11
to actionba...@googlegroups.com
The samples in the repo are a good place to start. There are a lot of common use cases demonstrated very simply.

Each AndroidManifest.xml of each project also is a good place to look for proper configuration of a project.

Sorry for the delay in getting back to you, I'm on a mini-vacation until Tuesday.
Reply all
Reply to author
Forward
0 new messages