Android Question App crash in debug mode

mberthe

Member
Licensed User
Longtime User
My app is OK in release mode
But in debug mode it crash with this unfiltered log :
B4X:
Logger connected to:  asus K011
--------- beginning of /dev/log/main
Process 19108 nice name: mb.ncalc1
Extra Options: not specified
Enabling JNI app bug workarounds for target SDK version 4...
Starting remote logger. Port: 17208
After accept
Hello, this is UFO GRALLOC/Intel Corporation

My manifest:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<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.
'SetActivityAttribute(Main, android:theme, @android:style/Theme.Holo.Light.NoActionBar)
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
'SetApplicationAttribute(android:uiOptions, "splitActionBarWhenNarrow")
SetApplicationAttribute(android:targetSdkVersion,"14")
'SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
'********* TabStrip ***********************
CreateResource(drawable, background_tab.xml,
<selector xmlns:android="http://schemas.android.com/apk/res/android"
   android:exitFadeDuration="@android:integer/config_shortAnimTime">
  <item android:state_pressed="true" android:drawable="@color/background_tab_pressed" />
  <item android:state_focused="true" android:drawable="@color/background_tab_pressed"/>
  <item android:drawable="@android:color/transparent"/>
</selector>)
CreateResource(values, colors.xml,
<resources>
  <color name="background_tab_pressed">#6633B5E5</color>
</resources>)
'******************************************
#AdditionalJar: com.android.support:support-v4

Any help is appreciated.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
There are no errors in the logs, though the manifest is incorrect:
The targetSdkVersion is not set correctly. It should be:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5" 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.

Correct way to set light theme: https://www.b4x.com/android/forum/threads/b4a-v5-80-beta-is-released.63300/#content
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…