In my thread I create an inner activity 'B' at one point in order to launch another activity for result. I need to declare this in my Android manifest file but can not work out what the name of it is as the standard ".B" does not work as it says that activity does not exist. How can I declare this activity?
Thanks
There are several other attributes that you can include in this element, to define properties such as the label for the activity, an icon for the activity, or a theme to style the activity's UI. The android:name attribute is the only required attribute—it specifies the class name of the activity.
Because it lets you define the structure and metadata of your android application and its components.
As someone pointed out, in AndroidManifest, use the $
sign, like:
<activity android:name=".A$B">
Declare class B
as static:
public static class B
To reference an inner class use the "$" instead of a dot.
.A$B
It may also be prefaced with the package path
com.yourcompany.projectname.A$B
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With