Oh, and here is the result with the Sun JRE for comparison...

b...@gizmo:~/android/Apprise$ dx --dump bin/classes/net/from/apprise/
Apprise.class
reading bin/classes/net/from/apprise/Apprise.class...
begin classfile
magic: cafebabe
minor_version: 0000
major_version: 0031
constant_pool_count: 007b

constant_pool:
  0001: method{android.app.Activity.<init>:()V}
  0002: string{"6095326873"}
  0003: field{net.from.apprise.Apprise.tDest:Ljava/lang/String;}
  0004: string{"SMS_SENT"}
  0005: field{net.from.apprise.Apprise.SENT:Ljava/lang/String;}
  0006: method{android.app.Activity.onCreate:(Landroid/os/Bundle;)V}
  0007: string{"Apprise"}
  0008: string{"Here"}
...stuff omitted again...
  0076: utf8{"sleep"}
  0077: utf8{"(J)V"}
  0078: utf8{"unregisterReceiver"}
  0079: utf8{"(Landroid/content/BroadcastReceiver;)V"}
  007a: utf8{"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/
Throwable;)I"}
end constant_pool
access_flags: public|super
this_class: type{net.from.apprise.Apprise}
super_class: type{android.app.Activity}
interfaces_count: 0000
fields_count: 0003

fields[0]:
  access_flags: private|static|final
  name: TAG
  descriptor: Ljava/lang/String;
  attributes_count: 0001

  attributes[0]:
    name: ConstantValue
    length: 00000002
    value: string{"Apprise"}
  end attributes[0]
end fields[0]

fields[1]:
  access_flags: 0000
  name: tDest
  descriptor: Ljava/lang/String;
  attributes_count: 0000
end fields[1]

fields[2]:
  access_flags: 0000
  name: SENT
  descriptor: Ljava/lang/String;
  attributes_count: 0000
end fields[2]
methods_count: 0002

methods[0]:
  access_flags: public
  name: <init>
  descriptor: ()V
  attributes_count: 0001

  attributes[0]:
    name: Code
    length: 00000047
    max_stack: 0002
    max_locals: 0001
    code_length: 00000011
    0000: aload_0 // 00
    0001: invokespecial method{android.app.Activity.<init>:()V}
    0004: aload_0 // 00
    0005: ldc string{"6095326873"}
    0007: putfield field{net.from.apprise.Apprise.tDest:Ljava/lang/
String;}
    000a: aload_0 // 00
    000b: ldc string{"SMS_SENT"}
    000d: putfield field{net.from.apprise.Apprise.SENT:Ljava/lang/
String;}
    0010: return
    exception_table_length: 0000
    attributes_count: 0002

    attributes[0]:
      name: LineNumberTable
      length: 00000012
      line_number_table_length: 0004
      0000 14
      0004 18
      000a 19
      0010 49
    end attributes[0]

    attributes[1]:
      name: LocalVariableTable
      length: 0000000c
      local_variable_table_length: 0001
      0000..0011 0000 this Lnet/from/apprise/Apprise;
    end attributes[1]
  end attributes[0]
end methods[0]

methods[1]:
  access_flags: public
  name: onCreate
  descriptor: (Landroid/os/Bundle;)V
  attributes_count: 0001

  attributes[0]:
    name: Code
    length: 00000136
    max_stack: 0006
    max_locals: 0008
    code_length: 00000082
    0000: aload_0 // 00
    0001: aload_1 // 01
    0002: invokespecial method{android.app.Activity.onCreate:(Landroid/
os/Bundl
    e;)V}
    0005: ldc string{"Apprise"}
    0007: ldc string{"Here"}
    0009: invokestatic method{android.util.Log.d:(Ljava/lang/
String;Ljava/lang/
    String;)I}
    000c: pop
    000d: aload_0 // 00
    000e: ldc #+7f020000
    0010: invokevirtual method{net.from.apprise.Apprise.setContentView:
(I)V}
    0013: invokestatic method
{android.telephony.gsm.SmsManager.getDefault:()Lan
    droid/telephony/gsm/SmsManager;}
    0016: astore_2 // 02
    0017: aconst_null
    0018: astore_3 // 03
    0019: aload_0 // 00
    001a: iconst_0 // #+00
    001b: new type{android.content.Intent}
    001e: dup
    001f: ldc string{"net.from.Apprise.IGNORE_ME"}
    0021: invokespecial method{android.content.Intent.<init>:(Ljava/
lang/String
    ;)V}
    0024: iconst_0 // #+00
    0025: invokestatic method{android.app.PendingIntent.getBroadcast:
(Landroid/
    content/Context;ILandroid/content/Intent;I)Landroid/app/
PendingIntent;}
    0028: astore 04
    002a: aload_0 // 00
    002b: iconst_0 // #+00
    002c: new type{android.content.Intent}
    002f: dup
    0030: ldc string{"net.from.Apprise.SMS_SENT"}
    0032: invokespecial method{android.content.Intent.<init>:(Ljava/
lang/String
    ;)V}
    0035: iconst_0 // #+00
    0036: invokestatic method{android.app.PendingIntent.getBroadcast:
(Landroid/
    content/Context;ILandroid/content/Intent;I)Landroid/app/
PendingIntent;}
    0039: astore 05
    003b: new type{net.from.apprise.Apprise$APBR}
    003e: dup
    003f: aload_0 // 00
    0040: invokespecial method{net.from.apprise.Apprise$APBR.<init>:
(Lnet/from/
    apprise/Apprise;)V}
    0043: astore 06
    0045: aload_0 // 00
    0046: aload 06
    0048: new type{android.content.IntentFilter}
    004b: dup
    004c: aload_0 // 00
    004d: getfield field{net.from.apprise.Apprise.SENT:Ljava/lang/
String;}
    0050: invokespecial method{android.content.IntentFilter.<init>:
(Ljava/lang/
    String;)V}
    0053: invokevirtual method
{net.from.apprise.Apprise.registerReceiver:(Landr
    oid/content/BroadcastReceiver;Landroid/content/IntentFilter;)
Landroid/conte
    nt/Intent;}
    0056: pop
    0057: aload_2 // 02
    0058: aload_0 // 00
    0059: getfield field{net.from.apprise.Apprise.tDest:Ljava/lang/
String;}
    005c: aconst_null
    005d: ldc string{"Send me a banana"}
    005f: aload 05
    0061: aload 04
    0063: invokevirtual method
{android.telephony.gsm.SmsManager.sendTextMessage
    :(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/
app/Pendin
    gIntent;Landroid/app/PendingIntent;)V}
    0066: ldc2_w #+0000000000001388
    0069: invokestatic method{java.lang.Thread.sleep:(J)V}
    006c: aload_0 // 00
    006d: aload 06
    006f: invokevirtual method
{net.from.apprise.Apprise.unregisterReceiver:(Lan
    droid/content/BroadcastReceiver;)V}
    0072: goto 0081
    0075: astore 07
    0077: ldc string{"SmsIntent"}
    0079: ldc string{"SendException"}
    007b: aload 07
    007d: invokestatic method{android.util.Log.e:(Ljava/lang/
String;Ljava/lang/
    String;Ljava/lang/Throwable;)I}
    0080: pop
    0081: return
    exception_table_length: 0001
      0057..0072 -> 0075 java.lang.Exception
    attributes_count: 0002

    attributes[0]:
      name: LineNumberTable
      length: 00000042
      line_number_table_length: 0010
      0000 24
      0005 25
      000d 26
      0013 27
      0017 31
      0019 32
      002a 35
      003b 38
      0045 39
      0057 41
      0066 43
      006c 44
      0072 47
      0075 45
      0077 46
      0081 48
    end attributes[0]

    attributes[1]:
      name: LocalVariableTable
      length: 00000052
      local_variable_table_length: 0008
      0077..0081 0007 e Ljava/lang/Exception;
      0000..0082 0000 this Lnet/from/apprise/Apprise;
      0000..0082 0001 savedInstanceState Landroid/os/Bundle;
      0017..0082 0002 smsm Landroid/telephony/gsm/SmsManager;
      0019..0082 0003 c Landroid/content/Context;
      002a..0082 0004 dummyEvent Landroid/app/PendingIntent;
      003b..0082 0005 sentEvent Landroid/app/PendingIntent;
      0045..0082 0006 apbr Lnet/from/apprise/Apprise$APBR;
    end attributes[1]
  end attributes[0]
end methods[1]
attributes_count: 0002

attributes[0]:
  name: SourceFile
  length: 00000002
  source: utf8{"Apprise.java"}
end attributes[0]

attributes[1]:
  name: InnerClasses
  length: 0000000a
  number_of_classes: 0001
  inner_class: type{net.from.apprise.Apprise$APBR}
    outer_class: type{net.from.apprise.Apprise}
    name: utf8{"APBR"}
    access_flags: 0000
end attributes[1]
end classfile

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