I noticed this half screen wifi selection menu in some Android Apps.
I would like to use this menu in my own app, to give the user the possibility to select the wifi without jumping to settings app.
I didn't find any instruction how to do this. However AndroidStudios Layout Inspector showed me that its belonging to the system, not to the app.
Anyone knows how to open this menu ?
It's called a Settings Panel:
https://medium.com/google-developer-experts/exploring-android-q-settings-panels-d308525b8345
You are looking for Settings Panel
This is for Android Q.
Here's an example to how to call it.
startActivityForResult(Intent(Settings.Panel.ACTION_INTERNET_CONNECTIVITY), INTERNET_SETTINGS_REQUEST)
Related
I already made a button to be overlaid in the system window, only thing is I don't know how to take screenshot programmatically from that button to take screenshot of home screen or any other screen (not my activity).
What I want is how to programmatically run the combo keys to initiate the screenshot? (like pressing both power and volume down key at the same to take screenshot)
I know using adb command required root (which I don't want to), you can using getrootview but only inside your own activity (which I don't want to).
Since Android Lollipop (5.0) you can use MediaProjection to take screenshot.
I don´t know if it's possible, but I would like to know if it´s possible open widgets screen from a button inside in my app.
thanks and best regards.
You cannot bring app widget to home screen by code because Android not supported. Only by user action because you can not know does home screen has space to place widget.
I want make an app by which I want to open it in small screen/view like popup window instead of Full Screen Activity.
Suppose,when a user click on the application icon in his device it will show a popup window (contains various buttons/options) instead of opening any full screen activity!
Is there any way ? If possible then, How can I proceed ?
Wishing code snapshots or any demo or necessary suggestions regarding this problem!
Not exactly a popup, but you can use the Dialog theme and make your Activity appear like a dialog box by using:
<activity android:theme="#android:style/Theme.Dialog">
I made an application for my Samsung device. Samsung phones generally have a menu button on the bottom side of the phone which is a problem for those devices who do not. I tried my app out on a Nexus, but since it did not have the physical menu button, I couldn't open the menu.
Now I want to make another option to to open the menu in my app. I though a slide out menu would be nice. I want to use the same menu but another way to open it. I want to be able to open it from the side of the screen by swiping to the right, and from the menu button.
P.S. Normally there is a titlebar on top of the screen in an app with a menu button/option on it to. But I hide my titlebar (in my AndroidManifest), so that's the issue why I need another solution..
Use Navigation Drawers for slide out menu. You can use Navigation for two menus, one from left other from right using different listview.
If you want to design a custom slide out menu using navigation drawer here is a tutorial.
http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/
I am currently working on an app which is just a event trigger. I want it to be as simple as possible so I was wondering if it was possible to create an app which works as follows:
When you click on the launcher icon, instead of going into an application, the app's icon merely changes color (e.g. the icon flips from red to green). This would indicate the status of the app. Perhaps if you want to get fancy display a Toast pop-up briefly when it is triggered but nothing more than that. At all times you wold still be in the applications menu.
Add a widget with an icon, then change that icon depending on the tapping of the icon.
I believe that you will find the answer by using ancient wisdom…