-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for help with the last Macroid issue. Now I'm getting an odd
crash which I assume is caused by automatic ID/tag generation. I have
the following code:

class Settings extends Activity with Contexts[Activity] with
IdGeneration with UpdateCurrentMap {

  override def onCreate(b:Bundle) {
    super.onCreate(b)
    getUi {
      l[LinearLayout](
        f[GeneralPreferences].framed(Id.preferences, Tag.preferences)
      )
    }
  }

}

But the activity fails to start. I get the following error in my logs:

E/AndroidRuntime(30618): FATAL EXCEPTION: main

E/AndroidRuntime(30618): Process: info.hermesnav.android, PID: 30618

E/AndroidRuntime(30618): java.lang.RuntimeException: Unable to start
activity
ComponentInfo{info.hermesnav.android/info.hermesnav.android.ui.Settings}:
android.content.res.Resources$NotFoundException: Unable to find
resource ID #0x3e9

E/AndroidRuntime(30618):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2215)

E/AndroidRuntime(30618):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2264)

E/AndroidRuntime(30618):        at
android.app.ActivityThread.access$800(ActivityThread.java:144)

E/AndroidRuntime(30618):        at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)

E/AndroidRuntime(30618):        at
android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime(30618):        at android.os.Looper.loop(Looper.java:136)

E/AndroidRuntime(30618):        at
android.app.ActivityThread.main(ActivityThread.java:5139)

E/AndroidRuntime(30618):        at
java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(30618):        at
java.lang.reflect.Method.invoke(Method.java:515)

E/AndroidRuntime(30618):        at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)

E/AndroidRuntime(30618):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)

E/AndroidRuntime(30618):        at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(30618): Caused by:
android.content.res.Resources$NotFoundException: Unable to find
resource ID #0x3e9

E/AndroidRuntime(30618):        at
android.content.res.Resources.getResourceName(Resources.java:1864)

E/AndroidRuntime(30618):        at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:882)

E/AndroidRuntime(30618):        at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)

E/AndroidRuntime(30618):        at
android.app.BackStackRecord.run(BackStackRecord.java:684)

E/AndroidRuntime(30618):        at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)

E/AndroidRuntime(30618):        at
android.app.Activity.performStart(Activity.java:5240)

E/AndroidRuntime(30618):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2178)

E/AndroidRuntime(30618):        ... 11 more

I don't know that this has to do with ID/tag generation since no line
numbers are referenced, but the missing resource ID leads me to
believe that may be involved.

Is there something I need to do other than mix IdGeneration into my
activity so my app knows where to find these resources?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJUAk4FAAoJEAIF+g7+rYRX6EgP/3EB9wedw4ow43ZAPbvkeNi1
kDkRTgUPSdYRuKbOWxUt3RTHrl0Ta5+njbp+Yp/6ABAOu3WLWBfD5mAge2LKq9zp
YNNJT5QBE4nEMp4zpPDP/ZH2xfqhH04GnwoIQN5PXGplewZ978xcoBCuCR6pHotH
9By9dBqPEPgNp5aeFlial51BIE84HP8E1sPKatMvZzMwcaI7OlM4lq0zAAGKlQ5+
P1YdDX4CQQxknhZbatRwKn1uR9ttu0Iy9uNra7Sxo/dYrRgUlFZvUYmeRcemm3Vb
gn60wh/XYS4V0Oc5bvPIIeXTrCkYzV2GiFV5iL4TH1t0jVmLWPOCAXYbRRkVjkV2
kTFTlDpOxKFtMg53u2+DSzDxxgshHlABDV1CfFV6qnN/suOWofqRQxVoP64MT2f7
qzD4h0gFyop9vWiFq71w8LDhDGF+vOyqNpGpjURgj7vRXRgDe+CofehRNKoB0Q+U
VDrWtvKZfsEMQN7A5ciraycKWmEKkNkyq/VXlRDMgPGdu8WIrsy2SVYuQq5mKReC
HydorzAU+xZ+ITlBH1KwS49zRKclKWI9ORQnldl1OgwPV+wTd2rv+DV+j5p/c8L9
zwXhay4XSHpAbxqeEQPU6hnv8ATdd0vSkgNSO7F7tj5gvW8BYgiBeg572YJ9bECx
QqcSiFl9Ag2QDLcnHdPl
=4t27
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to