رفتن به مطلب

آموزش رفتن به قسمت wirless & network با کد در b4a


mohada

ارسال‌های توصیه شده

با سلام

الان می خواهم کدی رو براتون بگویم که می شود با استفاده از آن به قسمت

wirless & network در تنظیمات گوشی رفت.

ابتدا یک متغیر از نوع Intent تعریف می کنیم:

Dim Intent1 as Intent

بعد اون رو به برنامه معرفی می کنیم:

Intent1.Initialize(Intent1.ACTION_MAIN,"")

حال مسیر را مشخص می کنیم و آن را باز می کنیم:

Intent1.SetComponent("com.android.settings/com.android.settings.WirelessSettings")
StartActivity(Intent1)

لینک ارسال
به اشتراک گذاری در سایت های دیگر

این یک سری از Action ها:

ACCESSIBILITY_SETTINGS = Show settings for accessibility modules.   

ADD_ACCOUNT = Show add account screen for creating a new account.     

AIRPLANE_MODE_SETTINGS = Show settings to allow entering/exiting airplane mode.  

APN_SETTINGS = Show settings to allow configuration of APNs.                                                 

APPLICATION_DETAILS_SETTINGS = Show screen of details about a particular application.     

APPLICATION_DEVELOPMENT_SETTINGS = Show  settings to allow configuration of application development-related  settings.        

APPLICATION_SETTINGS = Show settings to allow configuration of application-related settings.                      

BLUETOOTH_SETTINGS = Show settings to allow configuration of Bluetooth.                                                

DATA_ROAMING_SETTINGS = Show settings for selection of 2G/3G.                                                   

DATE_SETTINGS = Show settings to allow configuration of date and time.               

DEVICE_INFO_SETTINGS = Show general  device information settings (serial number, software version, phone  number, etc.).                                                   
DISPLAY_SETTINGS = Show settings to allow configuration of display.              

INPUT_METHOD_SETTINGS = Show settings  to configure input methods, in particular allowing the user to enable  input methods.                                                   
INPUT_METHOD_SUBTYPE_SETTINGS = Show settings to enable/disable input method subtypes.    

INTERNAL_STORAGE_SETTINGS = Show settings for internal storage.           

LOCALE_SETTINGS = Show settings to allow configuration of locale.                 

LOCATION_SOURCE_SETTINGS = Show settings to allow configuration of current location sources.

MANAGE_ALL_APPLICATIONS_SETTINGS = Show settings to manage all applications.         

MANAGE_APPLICATIONS_SETTINGS = Show settings to manage installed applications.         

MEMORY_CARD_SETTINGS = Show settings for memory card storage.                               

NETWORK_OPERATOR_SETTINGS = Show settings for selecting the network operator.            

NFCSHARING_SETTINGS = Show NFC Sharing settings.                                                   

NFC_SETTINGS = Show NFC settings.                                                   

PRIVACY_SETTINGS = Show settings to allow configuration of privacy options.                            

QUICK_LAUNCH_SETTINGS = Show settings to allow configuration of quick launch shortcuts.    

SEARCH_SETTINGS = Show settings for global search.                                                   

SECURITY_SETTINGS = Show settings to allow configuration of security and location privacy.   

SETTINGS = Show system settings.                                                   

SOUND_SETTINGS = Show settings to allow configuration of sound and volume.                      

SYNC_SETTINGS = Show settings to allow configuration of sync settings.                                                   

USER_DICTIONARY_SETTINGS = Show settings to manage the user input dictionary.                                    

WIFI_IP_SETTINGS = Show settings to allow configuration of a static IP address for Wi-Fi.                                                   

WIFI_SETTINGS = Show settings to allow configuration of Wi-Fi.                                                   

WIRELESS_SETTINGS = Show settings to  allow configuration of wireless controls such as Wi-Fi, Bluetooth and  Mobile networks.                                                   
EXTRA_AUTHORITIES = Limit available options in launched activity based on the given authority.

سایت و لینک منبع: کلیک کنید

لینک ارسال
به اشتراک گذاری در سایت های دیگر

از

Dim DoAction As Intent

DoAction.Initialize("android.settings.LOCATION_SOURCE_SETTINGS", "")

StartActivity(DoAction)

که توی منبع بود استفاده کردم حل شد .

لینک ارسال
به اشتراک گذاری در سایت های دیگر

بایگانی شده

این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.

  • کاربران آنلاین در این صفحه   0 کاربر

    • هیچ کاربر عضوی،در حال مشاهده این صفحه نیست.
×
×
  • اضافه کردن...