hookshy Well-Known Member Licensed User Longtime User Dec 28, 2013 #1 How can I open default settings page by intent ? Since I found no post on forum i tried to open by pakage name but i I think i have no permision to lauch such package ! What permision should I add to manifest editor? Does all phone have same package name for default settings? Code: Copy Dim Intent1 As Intent Intent1.Initialize("","") Intent1=pma.GetApplicationIntent("settings package name ") If Intent1.IsInitialized Then StartActivity(Intent1) end if
How can I open default settings page by intent ? Since I found no post on forum i tried to open by pakage name but i I think i have no permision to lauch such package ! What permision should I add to manifest editor? Does all phone have same package name for default settings? Code: Copy Dim Intent1 As Intent Intent1.Initialize("","") Intent1=pma.GetApplicationIntent("settings package name ") If Intent1.IsInitialized Then StartActivity(Intent1) end if
NJDude Expert Licensed User Longtime User Dec 28, 2013 #2 Code: Copy Dim i As Intent i.Initialize("", "") i.SetComponent("com.android.settings/.Settings") StartActivity(i) Upvote 0
Code: Copy Dim i As Intent i.Initialize("", "") i.SetComponent("com.android.settings/.Settings") StartActivity(i)
hookshy Well-Known Member Licensed User Longtime User Dec 28, 2013 #3 thanks Nj Works perfect !! Upvote 0
P PierPaduan Active Member Licensed User Longtime User Jan 22, 2015 #4 Hi, I use the above code of NJDude (thanks a lot to him) to open Settings page, and this works perfect on many devices ( android 2.2, 4.1.2, 4.2.1 ), but on one device (android 4.2.2 ), when I try to run that part of code, I obtain this error: What can I do to fix this problem? Might be that the "component" name is changed on more recent android OS ??? Thanks a Lot to everyone can help me. Best Regards. Upvote 0
Hi, I use the above code of NJDude (thanks a lot to him) to open Settings page, and this works perfect on many devices ( android 2.2, 4.1.2, 4.2.1 ), but on one device (android 4.2.2 ), when I try to run that part of code, I obtain this error: What can I do to fix this problem? Might be that the "component" name is changed on more recent android OS ??? Thanks a Lot to everyone can help me. Best Regards.
NJDude Expert Licensed User Longtime User Jan 22, 2015 #5 That means that device has a slightly different version of Android Settings (which is rare), what device is this?. To fix it you will have to capture that error. Upvote 0
That means that device has a slightly different version of Android Settings (which is rare), what device is this?. To fix it you will have to capture that error.
P PierPaduan Active Member Licensed User Longtime User Jan 22, 2015 #6 The device is a SAMSUNG GT-I9105P. Do you mean to use "Try... Catch"? But if I capture the error, how can I set the correct name of the component? Thanks. Upvote 0
The device is a SAMSUNG GT-I9105P. Do you mean to use "Try... Catch"? But if I capture the error, how can I set the correct name of the component? Thanks.
NJDude Expert Licensed User Longtime User Jan 22, 2015 #7 Just display an error message that such option is not available. Upvote 0
hookshy Well-Known Member Licensed User Longtime User Mar 4, 2015 #8 I am not able to open settings on Jelly Bean with the code above ...due to Permission DEnial.... unfortunately there are no much setttings in security as in kitkat to manage permissions ..maybe code is to strong for android device if you could advise it will be great Upvote 0
I am not able to open settings on Jelly Bean with the code above ...due to Permission DEnial.... unfortunately there are no much setttings in security as in kitkat to manage permissions ..maybe code is to strong for android device if you could advise it will be great
Croïd Active Member Licensed User Longtime User Dec 15, 2015 #9 It can Help ( list Application Identifier Application & Screen) Attachments Application Identifier.txt Application Identifier.txt 976 bytes · Views: 446 Upvote 0
Arf Well-Known Member Licensed User Longtime User Oct 21, 2016 #10 Hi, NJDude's method worked for me: Code: Copy i.SetComponent("com.android.settings/.Settings") But I need to open the STATUS page, and can't seem to get the right text. Last tried: Code: Copy i.SetComponent("com.android.settings/.Settings.deviceinfo.status") anyone know? Upvote 0
Hi, NJDude's method worked for me: Code: Copy i.SetComponent("com.android.settings/.Settings") But I need to open the STATUS page, and can't seem to get the right text. Last tried: Code: Copy i.SetComponent("com.android.settings/.Settings.deviceinfo.status") anyone know?
Arf Well-Known Member Licensed User Longtime User Oct 21, 2016 #11 Got it.. Code: Copy i.SetComponent("com.android.settings/.deviceinfo.Status") Upvote 0