Thanks Kumar..

On Sat, Apr 16, 2011 at 1:54 PM, Kumar Bibek <[email protected]> wrote:

> Check this out
>
> http://developer.android.com/reference/android/app/Service.html#onStartCommand%28android.content.Intent,%20int,%20int%29
>
> Kumar Bibek
> http://techdroid.kbeanie.com
> http://www.kbeanie.com
>
>
>
> On Sat, Apr 16, 2011 at 12:38 PM, Mahavir Jain <[email protected]> wrote:
>
>>  Hi,
>>
>> This may be very basic question but I really cannot find any proper
>> solution for this.
>>
>> I was developing app (which have service) on Android 2.2. Then I realize
>> that I should also make it compatible to Android 1.5.
>>
>> But for android 1.5, onStartCommand() method was not there and instead
>> onStart() method was there. And for Android 2.0+, onStart() method is
>> deprecated.
>>
>> So my question is, As Java don't have support for pre-processor
>> directives, do I need to make two build (one for android 1.5+ and other for
>> android 2.0+)?
>>
>> Or is there any easy solution for this problem?
>>
>> Thanks in advance.
>>
>> Mahavir
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Reply via email to