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.
Related
I am an android beginner, I have developed one app, it was working kitkat version, but it's not supported in lollipop version (nexus 5). When I run the app in nexus 5 the app get force stop. This problem arrives development side or lollipop side Any one can help me
For your reference I have used android version as below
Min sdk is 14
Taget Sdk is 21
It may be because of some libraries you have used.I got the same issue when I was having simonvtmenudrawer in my app which was not supported in lolipop.I replaced the same and it is now working fine.
My problem is that my Android Virtual Device (AVD) doesnt update when I update my code.
For instance, I run the AVD with my first code. Then I make some changes in the code (removing stuff and adding stuff). But still, the things that are shown on my AVD are from the old code. Stuff that should be there because I removed it from the code are still there when I run my AVD. And of course the new stuff isnt there.
I do:
Save my new changes.
Restart my AVD
But still it doesnt work.
If I restart my computer the changes might appear... help!
What helped me sometimes was deleting the old apk that was saved. For some reason it wasn't running replacing the old apk to be installed on the avd properly.
Also...more info could help. Are you running the code through eclipse/android studio/command line? Is your android application native or running html with the help of phonegap?
There is no need to restart the AVD. The thing you have to do is to reinstall yout application. Clicking Run in Eclipse will do the job.
I used the wrong API for my development. I used 20 when my book told me 17.
The Target was wrong. Used: "Android 4.4W.2 - API Level 20" but needed to use: "Google APIs (Google Inc.) - API Level 17"
I thought a higher API would be able to handle all lesser API numbers.
I dont know the difference between Targets "Android 4.2.2 - API Level 17" and "Google APIs (Google Inc.) - API Level 17" though.
Anyway all my problems seems to be resolved now.
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 created a project to implement USB accessory. The accessory mode is supported for Google API level 10 which works on Android 2.3.4.
Now my project works on AVD which has target device as Google APIs level 10 but does not work if I change the target to 2.3.3 ( Since 2.3.4 target is not there on eclipse).
In short I want to run a project that uses Google API level 10, on an android phone. How to do this?
I tried copying the .apk file but that was of no use. I also tried to copy the complete project but this is also not working for me.
Please assist...
I guess the obvious answer (though not the one you're looking for, I suspect) is that you'll need to get a device that's running 2.3.4 or higher (my current RAZR MAXX is at 2.3.6). A device that's running a version lower than 2.3.4 can't be asked to run an app compiled for versions 2.3.4 and higher.
and this may (or may not) be helpful to clear things up as well:
Can't find android sdk 2.3.4 in SDK manager
Welcome to Stack!
You are right, USB accessory does not work with 2.3.3, only with 2.3.4 and up. (And it does only work on selected phones, of course.)