I build the library on api 13 but if i import it in my project with
api 8, i cant find my generated R file.
I changed the api level of my project to 13 and now i can run my
project under api level 8 to 13.
On 29 Nov., 14:00, Jake Wharton <jakewhar...@gmail.com> wrote:
> You have to compile against API 13 in order to provide the library access
> to classes and styles from Android 3.2. You can still set the
> minSdkVersionin your manifest as low as API 4. You only need to take
> care that you do
> not use methods from newer API levels than your minimum when developing
> your app.
>
> Take a look at the sample projects for more information as each one targets
> API 13 but will run just fine on API 4.
>
> ---
> Jake Whartonhttp://about.me/jakewharton
If I understood correctly ActionBarSherlock 3.4.0 will compile only in
case if we set Android Target Platform of version 3.2+. It means that
developer is obliged to build his application also with API 13.
Does it mean that such application will work fine for the phones with
Android 2.1 in case developer will use only ActionBarSherlock classes
and won't use Android framework classes from version 3.2?
Could you please confirm that?
Thanks in advance.
On Nov 29, 4:00 pm, Jake Wharton <jakewhar...@gmail.com> wrote:
> You have to compile against API 13 in order to provide the library access
> to classes and styles from Android 3.2. You can still set the
> minSdkVersionin your manifest as low as API 4. You only need to take
> care that you do
> not use methods from newer API levels than your minimum when developing
> your app.
>
> Take a look at the sample projects for more information as each one targets
> API 13 but will run just fine on API 4.
>
> ---
> Jake Whartonhttp://about.me/jakewharton
If you read
http://developer.android.com/guide/publishing/versioning.html#minsdkversion
You can specify a minimum SDK version as well as a target. This will allow
you to allow target level 8 devices to run your application while targeting
those at API level 13.
Hope that helps
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="13" />
Have a look at the samples too. They all work 1.6+. The styled sample also uses platform-specific code for animation.
---
Jake Wharton
http://about.me/jakewharton
Now it is clear for me.
I would suggest to add my question and your answer to the FAQ list on
the official ActionBarSherlock website, because I didn't find the
appropriate answer anywhere.
--
Dmitry Ogievich
On Dec 2, 1:14 am, Jake Wharton <jakewhar...@gmail.com> wrote:
> Have a look at the samples too. They all work 1.6+. The styled sample also
> uses platform-specific code for animation.
>
> ---
> Jake Whartonhttp://about.me/jakewharton
> On Dec 1, 2011 5:11 PM, "Graham Smith" <gra...@wiseman-designs.com> wrote:
>
>
>
>
>
>
>
> > Here is an example of what could be in your manifest:
>
> > <uses-sdk
> > android:minSdkVersion="4"
> > android:targetSdkVersion="13" />
>
> > -----Original Message-----
> > From: Graham Smith [mailto:gra...@wiseman-designs.com]
> > Sent: 01 December 2011 22:05
> > To: actionba...@googlegroups.com
> > Subject: RE: ActionBarSherlock for API 8
>
> > I am not Jake but I can answer.
>
> > If you read
> >http://developer.android.com/guide/publishing/versioning.html#minsdkv...
That would be fantastic. Unfortunately that is one thing that I just haven't had time to do. Please send the link if you do. I would love to share it with other users as well.
---
Jake Wharton
http://about.me/jakewharton
// Build Label: htc_wwe/htc_ace/ace:2.3.5/GRJ90/$:user/release-keys// Build Changelist: 199157.1// Build Time: 1320908049000// java.lang.NullPointerException// at com.actionbarsherlock.internal.view.menu.ActionMenuPresenter.flagActionItems(ActionMenuPresenter.java:395)// at com.actionbarsherlock.internal.view.menu.ActionMenuPresenter.setWidthLimit(ActionMenuPresenter.java:168)// at com.actionbarsherlock.internal.widget.ActionBarView.setMenu(ActionBarView.java:401)// at com.actionbarsherlock.internal.ActionBarSherlockCompat.preparePanel(ActionBarSherlockCompat.java:476)// at com.actionbarsherlock.internal.ActionBarSherlockCompat.dispatchInvalidateOptionsMenu(ActionBarSherlockCompat.java:274)// at com.actionbarsherlock.app.SherlockFragmentActivity.invalidateOptionsMenu(SherlockFragmentActivity.java:139)// at com.actionbarsherlock.app.SherlockFragmentActivity.supportInvalidateOptionsMenu(SherlockFragmentActivity.java:146)// at android.support.v4.app.Fragment.setHasOptionsMenu(Fragment.java:803)// at com.olivoip.dialer.ui.calllog.CallLogListFragment.onActivityCreated(CallLogListFragment.java:78)// at android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1508)// at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:947)// at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)// at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)// at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467)// at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:472)// at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141)// at android.support.v4.view.ViewPager.populate(ViewPager.java:1068)// at android.support.v4.view.ViewPager.populate(ViewPager.java:914)// at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1436)// at android.view.View.measure(View.java:8553)// at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3261)// at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017)// at android.widget.LinearLayout.measureVertical(LinearLayout.java:386)// at android.widget.LinearLayout.onMeasure(LinearLayout.java:309)// at android.view.View.measure(View.java:8553)// at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3261)// at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)// at android.view.View.measure(View.java:8553)// at android.widget.LinearLayout.measureVertical(LinearLayout.java:531)// at android.widget.LinearLayout.onMeasure(LinearLayout.java:309)// at android.view.View.measure(View.java:8553)// at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3261)// at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)// at android.view.View.measure(View.java:8553)// at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3261)// at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)// at android.view.View.measure(View.java:8553)// at android.view.ViewRoot.performTraversals(ViewRoot.java:915)// at android.view.ViewRoot.handleMessage(ViewRoot.java:1991)// at android.os.Handler.dispatchMessage(Handler.java:99)// at android.os.Looper.loop(Looper.java:150)// at android.app.ActivityThread.main(ActivityThread.java:4385)// at java.lang.reflect.Method.invokeNative(Native Method)// at java.lang.reflect.Method.invoke(Method.java:507)// at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)// at dalvik.system.NativeStart.main(Native Method)