Re: [android-developers] Re: Create Project

2011-03-21 Thread Kostya Vasilyev

21.03.2011 20:51, rishabh agrawal пишет:

thanks Kostya.ur means that if i want to run my apps on api 4 then
change my code according to api 4 classes.when i change the code
according to api 4.it work very properly in  API 8


Right, once you've done this, and your code runs on API4, you can switch 
your build target back to API8 for those features that require it 
(install to memory card, for example).


There are techniques that let you use API8 classes / methods while 
falling back on earlier APIs where available (look it up with Google 
search, typically it involves "Java reflection").


But as a quick first pass, switching the build target to your desired 
lowest API level is a pretty good way to find places to fix.


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Create Project

2011-03-21 Thread rishabh agrawal
thanks Kostya.ur means that if i want to run my apps on api 4 then
change my code according to api 4 classes.when i change the code
according to api 4.it work very properly in  API 8

On Mar 21, 10:42 pm, Kostya Vasilyev  wrote:
> Your code probably uses Android classes or methods that didn't yet exist
> in API 4.
>
> Bring up Properties on your project, select Android in the list on the
> left, and select Android 1.6 for building.
>
> Then go through compile errors, and remove or change all code that
> cannot work with API level 4.
>
> -- Kostya
>
> 21.03.2011 20:38, rishabh agrawal пишет:
>
> > I was create my application as a android sdk api 8.and written all the
> > code.bu now i want run on a sdk api 4.with the help of mainfest file i
> > changed minSdkVersion="4",But when i installed on it then unexpected
> > error are created...In this apps i used Tab..some tab work
> > properly but some not.Please help me how to remove this errorwith
> > the help of try&  catch i doesnt remove these error.it is possible
> > that i run my apps on vesion 4.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en