Saturday, March 24, 2012

Re: [android-developers] Re: new 50mb expansion pack functionality, api < 11... no easy dice?

and btw, the DownloaderService as is did not work for me if the needed
custom subclass of DownloaderService was not in the same package as
the app... based on how DownloaderService.java starts the service in
its internals. Took me a little bit to figure out that was what was
going on...

On Thu, Mar 22, 2012 at 5:46 PM, B Lyon <bradflyon@gmail.com> wrote:
> thanks for the info, folks!
>
> On Mon, Mar 19, 2012 at 9:56 AM, David Schreiber
> <flashmasterdash@gmail.com> wrote:
>> Hello,
>>
>> The APK expansion downloader comes with sources and we did make our own fix
>> to make downloader running. I have also already filed a bug report as
>> recommended by Mark Murphy.
>>
>> Greetings,
>> David
>>
>> Am Freitag, 16. März 2012 14:47:54 UTC+1 schrieb Streets Of Boston:
>>>
>>> I haven't checked if the downloader services comes with the sources. But
>>> if so, just change the sources for the Notifications to your liking.
>>> (we did that for our app, using the DownloadManager (and DownloadProvider)
>>> from the ICS source code and adding compatibility code ourselves
>>> (DRM/Notifcations))
>>>
>>> On Thursday, March 15, 2012 1:04:56 PM UTC-4, David Schreiber wrote:
>>>>
>>>> Hello there,
>>>>
>>>> I just implemented the downloader service and have noticed some things
>>>> (and one severe bug). First of all, documentation says the downloader
>>>> service needs a minimum of API level 4. The service provides two different
>>>> kinds of user notifications, one for API level 3+ one for API level 11+ -
>>>> the latter should allow better looking notifications. But...!
>>>>
>>>> Sadly the provided SDK package just tests for the existence of the
>>>> Notification.Builder class, which is available since API level 11. This is
>>>> not enough for setting a progress via the setProgress() method, because this
>>>> method was introduced with API level 14. Thus, devices with an API level of
>>>> 11, 12 and 13 will definitely not be able to use the downloader upon fixing
>>>> this issue.
>>>>
>>>> If you need further information, feel free to ask.
>>>>
>>>> Greetings,
>>>> David Schreiber
>>>>
>>>> PS: You have to compile your application (or your downloader package)
>>>> against api level 14+. This should work with all devices (but with the bug I
>>>> described above)
>>>>
>>>> Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:
>>>>>
>>>>> I was playing with implementing the new expansion pack stuff, and kept
>>>>> running into things that make me think you need to use an api > 10 if
>>>>> you want to use the downloader that comes with the sdk.  In fact, the
>>>>> library project seems to require api14.  Am I missing something
>>>>> trivial?  This is for stuff in the package
>>>>> com.google.android.vending.expansion.downloader.
>>>>>
>>>>> * TelephonyManager.NETWORK_TYPE_LTE - api11
>>>>> * TelephonyManager.NETWORK_TYPE_EHRPD - api11
>>>>> * TelephonyManager.NETWORK_TYPE_HSPAP - api13
>>>>>
>>>>> I really want to use the stuff out of the box from google here... but
>>>>> it looks like you need to finagle around this api stuff for the 87% of
>>>>> devices still on api8 or api10
>>>>>
>>>>> (http://developer.android.com/resources/dashboard/platform-versions.html).
>>>>>
>>>>>
>>>>> tia
>>>>
>>>>
>>>> Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:
>>>>>
>>>>> I was playing with implementing the new expansion pack stuff, and kept
>>>>> running into things that make me think you need to use an api > 10 if
>>>>> you want to use the downloader that comes with the sdk.  In fact, the
>>>>> library project seems to require api14.  Am I missing something
>>>>> trivial?  This is for stuff in the package
>>>>> com.google.android.vending.expansion.downloader.
>>>>>
>>>>> * TelephonyManager.NETWORK_TYPE_LTE - api11
>>>>> * TelephonyManager.NETWORK_TYPE_EHRPD - api11
>>>>> * TelephonyManager.NETWORK_TYPE_HSPAP - api13
>>>>>
>>>>> I really want to use the stuff out of the box from google here... but
>>>>> it looks like you need to finagle around this api stuff for the 87% of
>>>>> devices still on api8 or api10
>>>>>
>>>>> (http://developer.android.com/resources/dashboard/platform-versions.html).
>>>>>
>>>>>
>>>>> tia
>>>>
>>>>
>>>> Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:
>>>>>
>>>>> I was playing with implementing the new expansion pack stuff, and kept
>>>>> running into things that make me think you need to use an api > 10 if
>>>>> you want to use the downloader that comes with the sdk.  In fact, the
>>>>> library project seems to require api14.  Am I missing something
>>>>> trivial?  This is for stuff in the package
>>>>> com.google.android.vending.expansion.downloader.
>>>>>
>>>>> * TelephonyManager.NETWORK_TYPE_LTE - api11
>>>>> * TelephonyManager.NETWORK_TYPE_EHRPD - api11
>>>>> * TelephonyManager.NETWORK_TYPE_HSPAP - api13
>>>>>
>>>>> I really want to use the stuff out of the box from google here... but
>>>>> it looks like you need to finagle around this api stuff for the 87% of
>>>>> devices still on api8 or api10
>>>>>
>>>>> (http://developer.android.com/resources/dashboard/platform-versions.html).
>>>>>
>>>>>
>>>>> tia
>>
>> --
>> 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+unsubscribe@googlegroups.com
>> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment