The reason for this is that the SDK does not contain a full implementation
of Android any more, the full implementation is in the emulator and (of
course) on the phone. The SDK only contains the stubs so that the libraries
will link, but since the implementation of vital parts is missing it cannot
be run. It is a way of fooling the Java compiler/linker.

Ludwig

2008/10/15 <[EMAIL PROTECTED]>

>
> Hi all,
> I am reading the sdk 1.0 source code(decompiled by jad). It is very
> strange that there are so many: throw new RuntimeException("Stub!");
> in the classes.
>
> for example, the MapView are
>
> public class MapView extends ViewGroup
> {
> ...
> public MapView(Context context, String apiKey)
> {
> super((Context)null, (AttributeSet)null, 0);
> throw new RuntimeException("Stub!");
> }
> ..
> public MapView(Context context, String apiKey)
> {
> super((Context)null, (AttributeSet)null, 0);
> throw new RuntimeException("Stub!");
> }
> ...
> so where is the implementation of those methods?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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