Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9205553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:58:36+00:00 2026-06-17T23:58:36+00:00

My project supports API8+. In one method I use an ArrayDeque, which is only

  • 0

My project supports API8+. In one method I use an ArrayDeque, which is only available in API9. Therefore it is annotated with “@TargetApi(9)”, plus I check the Build.VERSION.SDK_INT before using it.

Now, obviously I have an import java.util.ArrayDeque which throws an error when built against API8. Will it be fine once I built it against the higher targeted API version, but run on a API8-device??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:58:37+00:00Added an answer on June 17, 2026 at 11:58 pm

    Will it be fine once I built it against the higher targeted API version, but run on a API8-device??

    Yes, assuming that you are correct about this:

    I check the Build.VERSION.SDK_INT before using it

    You would have problems running this on an API Level 4 or lower device, perhaps, as this sort of backwards compatibility was more annoying way back then. But API Level 8 should be fine, so long as you never use this class on devices older than API Level 9.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Your job is to design a Project Plan class library which supports the tracking
I have a project that I'm currently working on but it currently only supports
I am doing a project which supports both landscape mode and portrait mode,but now
I am currently working on a project which supports multi-language. I have created a
On September 28, 2009 the Apache POI project released version 3.5 which officially supports
My project leader insists on using Visual Studio 2005 which only targets the .NET
I'm using a barcode scanner library within my iOS project that currently only supports
An up coming project for a client involves using their MLS provider (which supports
I am trying to use Google Analytics iOS in my project, that supports iOS
I'd like to use spring support for sending mails. My project is built with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.