I just updated android from 2.3.3 api Level 10 to android 3.0 api Level 11. But I am getting these two problems. I have searched the internet but could not find anything helpful.
Here are my problems:
My emulator is in the portrait mode but my activities runs in landscape mode always.
The Application Launcher com.android.launcher has stopped unexpectedly.
Related
I have an app which target is from 3.0 to 4.3. API. When I test my app to 2.2 from PC, eclipse runs another emulator which target is greater. When I change my app's preporties to 2.2 then I get many eroors so I can not test my app from 2.2 emulator. When I test my app from 2.2 device everything is just okei. I am litle bit confused about what is going on with my app.
When I change target to 2.2 I get errors in this line. In (HONEYCOMB and addAll):
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
adapter.addAll(reminders);
Then I get error in this(isEmpty):
if (editTextDescription.getText().toString().isEmpty())
And then when I extend this PreferenceFragment : I think I can add Sherlock to get this right am i correct about PreferenceFragment.?
But I do not get why I have so many errors in pc and in device my app work great..!?
Build.VERSION_CODES.HONEYCOMB is not defined in 2.2 so you would get an error.
But I do not get why I have so many errors in pc and in device my app
work great..!?
I don't think your app works in 2.2 if it gives error when you change to target 2.2. Is the device running 2.2? What does the Android version in the device says?
Build.VERSION_CODES.HONEYCOMB
This constant means Android 3.0 and as such it does not exist in 2.2 (there was no Android 3.0 when 2.2 was released).
adapter.addAll
I don't know what type is adapter but if it shows an error this means this call is not available in 2.2. If this is a List, then you're compiling with Java 5 API. Switch to Java 6.
if (editTextDescription.getText().toString().isEmpty())
If String#isEmpty() shows error, then you're compiling with Java 5 API. Switch to Java 6.
I have an app that runs on tablet devices and emulator Android 3.2 API Level 13 successfully but it does not run on emulator Android 4.2 API Level 17
Why does this happen and this emulator is not shown in compatible devices?
I should mention that I am using Fragment and ViewPager in my application.
The build target of my project is Android 4.2 API Level 17
Update:
The problem solved. I deleted and created the emulator again!!! :-?
run adb logcat right before launching the app and you will get at least a clue ...
Try this in your AndroidManifest: uses-sdk android:minSdkVersion=YourAPILevelTarget
I'm trying to use Sensor.TYPE_LINEAR_ACCELERATION. Accrording to documentation, starting since level 9 (gingerbread) this API should be callable. However, eclipse is giving me syntax error, and thinks Sensor does not have access to TYPE_LINEAR_ACCELERATION. I have no problem calling Sensor.TYPE_ACCELEROMETER tho. My running configuration on eclipse shows that my target is android 2.3.3 or API level 10. Is there any other place that I need to check to whether the packages are imported from 2.3 and not older versions?
Thanks
Fixed it. Even though I was running the emulator with 2.3, I was building with 2.1. So I changed it so it now builds with 2.3.
I began the process of making one of my apps Honeycomb-friendly.
I started by changing the project's target build to version 11, and edited to AndroidManifest.xml to use:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="11" />
These are the only changes I made so far. I am able to test it perfectly on my Honeycomb tablet device.
However, I cannot get Eclipse to launch this app in an older emulator (e.g. version 9). Technically speaking, the app should run in older android versions, so what can I do to test this app for older devices?
Or am I doing something else wrong?
I'm by no means an expert on this front but setting the minSdkVersion different from the targetSdkVersion doesn't make the app automatically use a different API level based on the device. See this:
Android Min SDK Version vs. Target SDK Version
and this:
http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html
I suspect that because your application is using level 11 apis it won't run on a device that is of a previous API level.
This seems to be some sort of bug. When my 3.1 device is plugged into my PC, Eclipse/Android won't let me launch a new emulator that's < 3.0.
I worked around this by launching the emulator before I plug in my device, and then it has no problems deploying the app to both of the running devices.
I installed android sdk 3.1 and 2.3.3 And i created emulator using both of them.
But when i run 3.1(api level 12) emulator it doesn't work some features(applications) like contact,settings but in 2.3.3(api level 1) it works well.
I don't know why.So i re-installed them few times and the result was same.After i asked this about others and they had the same experience.can anyone explain why this happened?
Dear the aplication u have been running in api 12 is not compatible with it... it must run on lower api. Application execution differs in api levels.
u must try to run ur application in api 1 if u have developed application in android 2.3.3.