Android Question Notoficationbuilder problem

barx

Well-Known Member
Licensed User
Longtime User
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
Thank you!

'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
AddPermission(android.permission.READ_PHONE_STATE)
SetActivityAttribute(Main,android:theme,"@style/CustomActionBarTheme")
SetActivityAttribute(Draw,android:theme,"@style/CustomActionBarTheme")
SetActivityAttribute(Kamera,android:theme,"@style/CustomActionBarTheme")
SetActivityAttribute(Galerie,android:theme,"@style/CustomActionBarTheme")
SetActivityAttribute(Upload,android:theme,"@style/CustomActionBarTheme")
SetActivityAttribute(Settings,android:theme,"@style/CustomActionBarTheme")
SetApplicationAttribute(android:largeHeap,"true")

'C2DM Permissions
AddPermission($PACKAGE$.permission.C2D_MESSAGE)
AddPermission(com.google.android.c2dm.permission.RECEIVE)
' Push Service Receiver Attribute
SetReceiverAttribute(PushService, android:permission, "com.google.android.c2dm.permission.SEND")
' Service Receiver Text
AddReceiverText(PushService,
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="$PACKAGE$" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="$PACKAGE$" />
</intent-filter>)

SetActivityAttribute (DisplayActivity, android:exported, "true")
SetActivityAttribute (DisplayActivity, android:allowEmbedded, "true")
SetActivityAttribute (DisplayActivity, android:taskAffinity, "")
SetActivityAttribute (DisplayActivity, android:theme, "@android:style/Theme.DeviceDefault.Light")
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
At the bottom of your manifest you reference DisplayActivity, Do you have this activity in your project?

I'm not following what this has to do with NotificationBuilder lib though??
 
Upvote 0
Top