Android Question phone.NetworkSetting intent

Firpas

Active Member
Licensed User
Hello everyone:

I'm trying to launch an intent to display mobiles configuration data with this code:

B4X:
Dim ii As Intent
                ii.Initialize(ii.ACTION_MAIN, "com.android.phone")
                ii.SetComponent("com.android.phone.NetworkSetting")
                StartActivity(ii)
but i have this error:

B4X:
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.MAIN dat=com.android.phone.NetworkSetting flg=0x20000 }


    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1660)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1430)
    at android.app.Activity.startActivityForResult(Activity.java:3532)
    at android.app.Activity.startActivityForResult(Activity.java:3493)
    at android.app.Activity.startActivity(Activity.java:3735)
    at android.app.Activity.startActivity(Activity.java:3703)
    at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:696)
    at com.ags.agsmtilitemobile.princip._files_upload(princip.java:2015)
    at com.ags.agsmtilitemobile.princip._toolbar1_selectionchanged(princip.java:7046)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:863)
    at anywheresoftware.b4a.keywords.Common.CallSubNew3(Common.java:828)
    at firpas.com.agscontrols.menubutton._setselectedindex(menubutton.java:274)
    at firpas.com.agscontrols.menubutton._menuitem_click(menubutton.java:157)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:77)
    at android.view.View.performClick(View.java:4660)
    at android.view.View$PerformClick.run(View.java:19445)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:146)
    at android.app.ActivityThread.main(ActivityThread.java:5603)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    at dalvik.system.NativeStart.main(Native Method)
Can anyone help?

Thanks in advance
 

Firpas

Active Member
Licensed User
Thank for your answer.

With "com.android.settings.wifi.WifiSettings" a can show the wifi setting dialog,
something like this:

B4X:
Sub WifiSetting
    Dim i As Intent
    i.Initialize("", "")
    i.SetComponent("com.android.settings/.wifi.WifiSettings")
    StartActivity(i)
End Sub
but ...
i want to show the data mobile dialog (see attached image).
 

Attachments

Top