Android :: MinSdkVersion Is Lower Than The TargetSdkVersion?
Oct 12, 2010I am getting the warning: Attribute minSdkVersion (3) is lower than the project target API level (8)
How will this affect my app?
I am getting the warning: Attribute minSdkVersion (3) is lower than the project target API level (8)
How will this affect my app?
Here's my situation: I have an app that's been compiled using 1.5 SDK and minSdkVersion=3. Now I want to add 2 icons: one for high density screens like Droid and another one for low density screens like G1.
For this, I added the high density icon to new directory drawable-hdpi- v4/. I then compiled using 1.6 sdk and added targetSdkVersion="4" to the manifest. minSdkVersion is still 3.
This is working in limited testing, but I'm not sure if I have done everything correctly.
I have many questions:
1. By specifying v4 in drawable-hdpi-v4, the icon will not be displayed to 1.5 or below OS's. But what about users with 2.0 or higher SDK's? Will they get the non-hdpi icon, since they will have v6 or v7 ?
2. The documentation for targetSdkVersion states, "Specifying this target version allows the platform to disable compatibility settings that are not required for the target version (which may otherwise be turned on in order to maintain forward-compatibility)". Does this mean that my app will not be forward compatible as soon as I specify a targetSdkVersion? What exactly is being turned off?
3. Even if I leave out the targetSdkVersion="4", the app runs ok. So do I really need it?
4. Should I be using the latest SDK (2.1) and setting that as the targetsdkversion and compiling against that? Or some other combination of targetsdkversion and compiling sdk? I'm not using any API's that are not in 1.5..
5. Is any of this related to why some of my HTC Eris users have complained that they can no longer find my app in Market after upgrading to 2.1?
I have a program that should work on Android 1.5, but when it's run on newer devices with higher resolution screens, it should support the full resolution and not emulate a lower resolution screen. As far as I can tell from the documentation, this should be simple.
I just specify
code:.........
The problem is that if I tell Eclipse to compile for 1.5, it refuses to accept this. It reports an error (targetSdkVersion is an unknown tag) and refuses to compile or run. If I tell it to compile for 1.6 it works fine, of course. But if I then try to install on a 1.5 AVD, the program immediately crashes with a java.lang.VerifyError. I'm clearly missing something simple. How do I get it to compile an apk that works under 1.5, but still includes the targetSdkVersion tag?
I have noticed that my desire's in call volume reduces while im speaking to someone. For example, when im speaking to someone, the volume of the conversation goes lower and lower, but when I move the phone, the volume comes back.
View 1 Replies View RelatedMy Android application uses minSdkVersion=3 and targetSdkVersion=8. I used 8 because that is the highest level of API the application was tested on; however, it was written for level 3 and does not use any features beyond that level (except one for level 4 using reflection). Could using targetSdkVersion=8 be causing: the Android Market to filter the application for some devices? My intention is for the application to be available for ALL devices >= level 3 with NO filtering. problems in the application since targetSdkVersion=8 will, according to google: "disable compatibility settings that are not required for the target version (which may otherwise be turned on in order to maintain forward-compatibility) or enable newer features that are not available to older applications".
View 1 Replies View RelatedWhat does targetSdkVersion do?
There isn't much detail on what targetSdkVersion actually does.
I've read:[url]
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. Specifying this target version allows the platform to disable compatibility settings that are not required for the target version (which may otherwise be turned on in order to maintain forward-compatibility) or enable newer features that are not available to older applications. This does not mean that you can program different features for different versions of the platform—it simply informs the platform that you have tested against the target version and the platform should not perform any extra work to maintain forward-compatibility with the target version.
Introduced in: API Level 4
I'm curious because it appears that switching from:
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/> to <uses-sdk android:minSdkVersion="3"/> is the change that started the
android.view.InflateException ... java.lang.OutOfMemoryError: bitmap size exceeds VM budget
errors I was randomly seeing in setContentView. When I remove the targetSdkVersion it runs much better.
Now I'm having trouble remembering what adding targetSdkVersion got me in the first place.
My application retrieve icons of installed apps on the phone. But for the dialer, the icon is different when I target a minSdkVersion = 3 or minSdkVersion = 4. I did not found different icon for an other application.
I am testing on a motorola milestone. and I use ActivityInfo.loadIcon() to load icons.
Can someone explain this behavior ?
A few days ago I was trying to fix this issue: I have a header (three ImageButton's) and a ListView. If I use the dpad, pressing DOWN to focus the ListView, the ListView shows as selected the seventh or eighth row, not the first one.
What I need to do is that the first element of the ListView get the focus (or selection) when I use the dpad, from another screen component, but instead, the seventh or eighth is selected.
I had minSdkVersion=3 in my manifest. When I changed it to minSdkVersion=4 it worked as expected (first row selected). Don't know why, but there is a difference between both.
I'm developing an Android application that I'd like to be compatible with 1.5 (SDK version 4).
I'm testing the application on 2.2 (SDK version 8).
To do this, I'm including in the manifest file the line <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="8" />
I thought this would allow me to use the newest manifest elements and APIs, but I'm getting a compile error whenever I try to use them. For example, I try to define the element installLocation to allow the app to be installed on the SD card, but Eclipse gives me the error
No resource identifier found for attribute 'installLocation' in package 'android'
Is there something else I have to do to get this to work? If I can't get this to work, what benefit is defining targetSdkVersion?
I wrote a basic soundboard app, and it runs fine there's nothing wrong with it. I want to upload it to the Market, but every time I try I get an error message:
Market requires the minSdkVersion to be set to a positive 32-bit integer in AndroidManifest.xml
That is already in there, I'm using 1.5 so I have my minSdkVersion set at 3. I don't understand what the problem is, and I've asked a lot of devs that never know what to tell me. I don't want to use a different platform because my phone currently uses 1.5. Others have suggested putting the <uses-sdk> line under the <manifest> line, but that hasn't helped at all.
Here is what my manifest looks like:
code:....................
I recently upgraded my Android app to support multiple resolutions. Previously, my Android.manifest file had a line:
To support multiple density and resolution devices, I changed this to:
CODE:............
I then added a couple of new directories, like drawable-hdpi-v4 and drawable-long-hdpi-v4 that includes the high-res versions of the graphics. That's about it.
Ever since releasing this update, there have been a decent number of users complaining about various problems:
the app icon doesn't appear (I did not create a high res version of the icon)
the home screen widget no longer works, even if they delete and re-add it (this code did not change with the update). I've had a user send me their error log, which shows:
CODE:................
There is one questionable section in my existing widget code that may be relevant:
CODE:..........
And perhaps most troublesome: the sqlite database is no longer accessible/writeable for some users so their data is no longer available. I did add the WRITE_EXTERNAL_STORAGE permission to the manifest. This is only happening to certain users and it tends to be HTC Eris users. In that error log I see things such as:
CODE:.........
It's as if the update has caused a new process and it can't access the old process's data, or something.
I have the following clear message :
Market requires the minSdkVersion to be set in AndroidManifest.xml.
But my manifest has the line : <uses-sdk minSdkVersion="2" /> and I also tried even <uses-sdk minsdkversion="2" />... I try to put this line : as the first child of manifest, as the last child and also right after application.. Is there a hidden rule I don't know ...
Does anyone know where I can find the app that lowers brightness below the normal minimum?
View 1 Replies View RelatedI have an app on the market that requires sdk 2.0. I want to rewrite and publish it using 1.6 to find a wider audience.
The question is: if I update my already published app with an sdk downgrade to 1.6 will it then show up to users with phones at 1.6? I know currently the market search shows my app only to those that have 2.0 phones.
Can i resize an image to a lower resolution as i am getting an OutOfMemoryException when trying to display image with 2048x1536 resolution or more?
View 2 Replies View RelatedI'm developing an Android app which will target 2.1/2.2 devices, so I have my project set up to use the 2.2 SDK (API level 8), but allow for installation on devices with at least API level 7. The problem is that during my daily development, I'm not always paying close attention to which API level of the methods/classes/constants that I'm using, which makes it very easy to break code on older devices. I have got dynamic classloading working, and as much as I dislike having a ton of extra factory classes and interfaces in my project, I'm willing to deal with that solution. Currently, the only way I have to check an older API level is to set my project's settings to the given level, rebuild, see what breaks, and then refactor. It's quite a pain. What I would really like is the ability to scan my code and check compatibility for a given API level without changing my global project build settings. Is there some easy way to do this?
View 1 Replies View RelatedI am thinking about getting a tablet instead of a netbook (Eken M001 has 1.6) which i need for mostly working out my routes in the morning since I work for a delivery company. Right now I have to come home to use autoroute on my PC but this takes me an hour to get home and back again taking an hour out of my journey so a tablet would be a perfect alternative. I live in the UK so need an autorouter for me that works offline. Does any such app exist or should I get a netbook?
Basically I just need to enter a bunch of postcodes and it tell me the quickest order in which to goto them to save time in my day but going home to get them is kinda against the whole point of saving time.
As stated in the title, it looks like my Android device shows a `lower' (mobile) network availability than a `traditional'(i.e. not smartphone-like) phone.Why?Am I the only guy experiencing this?
View 5 Replies View RelatedI have people complaining my application gets FC when they launch it (meanwhile others never had a single problem). Here is my full activity source. Since it happens on devices I don't own I can not fix it. From what they tell me it doesn't work on: Motorola Blackflip, Motorola Dext, Motorola CLIQ XT. Guess Motorola doesn't like my app after all...
Could it be that I allow a minSdkVersion="3"? I tested 1.5 on the emulator and worked fine... code...
My HTC Ara Android system seems to be running high. It is at 50%, and it rises. I turned off the sync, wifi, etc. I dont have any wedgits running, and no downloaded items. Is there anyway I can lower it? It seems to be eating away my battery. The cell stand by is pretty high too.
View 1 Replies View RelatedI know there are 20 million battery threads but I don't think anyone covered this issue. My battery was at 77% and I have a long day ahead of me so I figured I'd plug it into the wall while I used it to check twitter. Roughly 30 minutes later the battery is 72%. Is this a problem with something I'm doing or does viewing twitter use battery faster then it can charge?
View 3 Replies View RelatedI want to apply the supercharger script. i have v1.19.1 busybox
GT-S5570
In general,can we change some properties to make a given app run on a lower than native resolution?I think it should be totally possible,since phone come in various aspect ratios and resolutions.So the app detects the screen and resolution,and adopts accordingly.Gensoid does that in-app.Double,original size,strech,etc....
For instance,if we have a game on a 1920x1080 screen,but the GPU struggles to keep the framerate,we lower it to 960x540,the game still looks fine,because we get 1:2 resolution,and far fewer pixels to push.I think there should be an app for that.
It makes my battery usage worse. What if I raise it to max 7? Will I see a battery boost, or what problems might I come across? I am going to set mine at 7 and I will update if I see any differences.
View 22 Replies View RelatedMy phone is Running way to hot on this kernal for Pete and I haven't even put O.C. yet the speed is good but is their a way to get like a 800 Mhz Kernal for ESE, b/c haven't found one yet. Thanks....actually I'm not even sure Pete is running a kernal.
View 1 Replies View RelatedWhen I put my phone on vibrate it is to avoid annoying other people. But I feel that the vibration strength on most phones is too high, and although I won't be receiving my Captivate until Friday, I'd like to know if there is an option to do this, with or without root.
View 4 Replies View RelatedIs there any way I can turn off the lights from.the 4 soft buttons such as home,menu,back and search. I like to read a lot at night and its too bright. Love the phone.
View 32 Replies View RelatedVibrant's screen is just ridiculously bright and sometimes even the minimum brightness is still too much for me. I've noticed that the screen's brightness goes lower than minimum when the battery is at 10% or lower, is there anyway to set the brightness that low manually?
View 1 Replies View RelatedRecently, I have noticed that my android phone keeps telling me I have insufficient storage. So, I start deleting most of my apps, except for Facebook, Viber, Whatsapp and the pre-installed apps. However, in my apps section, it shows I have used up 863MB whereas in the storage section, it says I have used up 213MB. Funny thing is, Facebook, Viber and Whatsapp are all installed in my SD card. I have to force stop my Facebook app and clear the cache files in order to use my phone.
View 5 Replies View RelatedWhy do some apps fail when sideloading them onto some lower end tablets? I back them up from my phone using astro and try to install it on a viewsonic G-tablet or a Nextbook tablet and the installation fails. They're perfectly good backups. How come it's not supported?
View 3 Replies View Related