Android Question Starting DateTimeSettings Intent (4.2.2)

victormedranop

Well-Known Member
Licensed User
Longtime User
hi i am trying to start the date time setting activity.
with no luck. i found de activity name but got this error.

(ActivityNotFoundException) android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/com.android.settings.DateTimeSettings}; have you declared this activity in your AndroidManifest.xml?

B4X:
        Dim i As Intent
        i.Initialize("", "")
        i.SetComponent("com.android.settings/.DateTimeSettings")
        StartActivity(i)
'i.SetComponent("com.android.settings/.Settings") <- this works

the problem is that the hardware does not have real time clock. some times reset date time.


https://android.googlesource.com/pl...Settings/+/tools_r22/src/com/android/settings

thanks,

victor
 
Top