victormedranop Well-Known Member Licensed User Longtime User Nov 20, 2018 #1 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? Code: Copy 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
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? Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Nov 21, 2018 #2 Is this an official and documented intent? If not then you can't assume that all devices will support it. Upvote 0
Is this an official and documented intent? If not then you can't assume that all devices will support it.