Hi everyone, i'm working on my app for a week, i noticed immediatly the issue (i think after adding AppCompat), but i decided to rush to finish the project and solve later the problem.
I can't hide the Title of the Main Activity
And it's setted to False in the Designer Too
This is my Manifest
Thanks you in advance
I can't hide the Title of the Main Activity
B4X:
#Region Project Attributes
#ApplicationLabel: AppName
#VersionCode: 1
#VersionName: alfa
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: True
#Extends: android.support.v7.app.AppCompatActivity
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: False
#End Region
And it's setted to False in the Designer Too
This is my Manifest
B4X:
'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: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
<style name="MyAppTheme" parent="@style/Theme.AppCompat">
<item name="colorPrimary">#FFBB00</item>
<item name="colorPrimaryDark">#FFBB00</item>
<item name="colorAccent">#FF9D00</item>
</style>
</resources>
)
AddActivityText("main",
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>
<data android:scheme="-----.-----" />
<data android:host="*" />
</intent-filter>)
SetApplicationAttribute(android:usesCleartextTraffic, "true") 'corrisponde all ATS di Apple, traffico su domini non sicuri http e https (e non solo https)
'SetActivityAttribute(Main, android:launchMode, "singleTask")
'----------------------------------------------- CameraIntent Example ---------------
AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
)
AddApplicationText(
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
)
CreateResource(xml, provider_paths,
<files-path name="name" path="shared" />
)
Thanks you in advance