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…
Related
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)
Is it possible to change an application icon directly from the program?
I mean, change icon.png in the res\drawable folder.
I would like to let users to change application's icon from the program so next time they would see the previously selected icon in the launcher.
Assuming you mean changing the icon shown on the home screen, this could easily be done by creating a widget that does exactly this. Here's an article that demonstrate how that can be accomplished for a "new messages" type application similar to iPhone:
http://www.cnet.com/8301-19736_1-10278814-251.html
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 try to make an application which must be full screen. But when i press CTRL+ALT+DEL task manager comes up. Even i disable task manager, at this time its error message comes up and make taskbar visible. Then user get the chance to go to the dekstop but i dont want user to get this chance. Only user could be able to go to desktop when it did what application wants from it. So i need taskbar keep bottom of other windows until user does what it should do. And i need to do this by my application which i try to code in Java
How can i change the status of task bar using registry?
Why not permanently disable the taskbar?
Follow this link to permanently disable the task bar.
You can edit .reg files in Java, follow This link to know how to edit .reg files
"But how can i do it by java without reseting the machine?"
As far as i came across, you have to reboot your system, no way out.
Ok i found it.
When i changed the value of 8th byte value of Settings variable to 10 in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2
in registery
It just deselect the "Keep the task bar on top other windows" option
For applying the changes explorer.exe should be killed and re run
There are key strokes which Windows catches before they are sent to application and Ctrl+Alt+Del is one of those.
Regarding "Then user get the chance to go to the dekstop", if you set frame.setAlwaysOnTop(true);, user won't be able to switch to other any application.
You can use java's fullscreen API, and then use a Robot to force focus back to your application. See here: Java Full Screen Program (Swing) -Tab/ALT F4.
Good luck in whatever you are doing - it doesn't sound fun!
I want to write a Java BlackBerry application that runs on startup and stays running in the background, but gives the user an indication that it is running with an icon in the corner of the homescreen. What techniques can I use?
For showing content on the home screen / status bar, see this thread. You can either have different states on your own application icon or add a notification in the BB status bar. All is explained there.
right click on blackberry project ->properties->applicaiton tab
keeps in background: create Appliation type project.
blackberry application that runs on startup:check option "autorun on startup".
but gives an indication that it is running with an icon in corner:
which corner you are talking about?
The blackberry button sits to the left of the trackball/trackpad, or to the left of the return button on the storm. If you press and hold the blackberry button, the OS will show all running apps in a popup. Do you need a more significant notification that the app is running?
The notification ribbon and the app 'splat' are generally used to show message counts and other activity of interest to the user, not just that your app is running.