Android Question b4a google map + b4xDrawer

ALIAH SHA

Member
im trying to develop an application that google map and b4xDrawer. there is no error but it keep crashing.

B4X:
Sub Activity_Create(FirstTime As Boolean)
    
    'drawer
    Drawer.Initialize(Me, " ", Activity, 60%x)
    Drawer.CenterPanel.LoadLayout("1")
    Drawer.LeftPanel.LoadLayout("drawer")
    
    'google map load
    Wait For MapFragment1_Ready
    gmap = MapFragment1.GetMap
    rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
    Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
    If Result Then
        gmap.MyLocationEnabled = True
    Else
        Log("No permission!")
    End If
    
        
    'date and time
    Timer1.Initialize("Timer1", 1000) ' Update every 1 second (1000 milliseconds)
    Timer1.Enabled = True
    dt = DateTime.Now
    Timer1_Tick
    
    Activity.LoadLayout("1")
    pnl1.LoadLayout("2")
    pnl3.LoadLayout("map")
    pnl4.LoadLayout("dash")
    GPS1.Initialize("GPS")
    
End Sub

here is the activity resume


B4X:
Sub Activity_Resume
    If GPS1.GPSEnabled = False Then
        ToastMessageShow("Please enable the GPS device.", True)
        StartActivity(GPS1.LocationSettingsIntent) 'Will open the relevant settings screen.
    Else
        rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
        Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
        If Result Then  StartGps
    End If
End Sub


manifestor editor:
AddApplicationText(
<uses-library
      android:name="org.apache.http.legacy"
      android:required="false" />

<meta-data
  android:name="com.google.android.geo.API_KEY"
  android:value="AIzaS****************************"/>
)

im already using the right api key. it fine when using sliding menu but when i try develop using b4xDrawer its crushed.
here is the screenshort of output using sliding menu.



where and how should i modify the code?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…