[Q] Replacing Google Now shortcut - Java for Android App Development

Hello. What I want to do is to replace Google Now shortcut, but not the one in the App Drawer, but the one which you can pull from your home button. How can this be done?
There are couple of apps which can do the same thing(like Widgets Anywhere and Launch Now), but I can't understand how they do that.
EDIT: Okay, I found the answer. I just have to use android.intent.action.ASSIST.
But can I change the icon? This magnifying glass icon bugs me.

provide metadata
You can provide meta data inside the activity tag as below
<meta-data android:name="com.android.systemui.action_assist_icon"
android:resource="@drawable/ic_launcher" />

Related

How to remove broken widget from homescreen

Hello.
I have a (broken) widget on my home screen that is broken and that i can't remove.
Any attempt to drag it to the waistbasket, results in the selection screen for a new shortcut.
I can find the widget still in my 3rd party widget list. It's called "Traffic" and has an icon of the green light of a trafficlight.
I need to know where on the S7 the information on that widget is stored, so i can remove it by hand.
Thanks in advance.
PS. Oh, and i have tried all suggestions given by the site when i posted this topic.
If you have root go on data/system and edit appwidget.xml removing that widget.
goodoane said:
If you have root go on data/system and edit appwidget.xml removing that widget.
Click to expand...
Click to collapse
Going to try that now....
Did not work. This file only contains the info on the original Emotion widgeds.
The widget i'm talking about is a 3rd party widget.....

[Q] Moving shortcuts and widgets

I think I've found a bug in the touchwiz launcher. When I long press a shortcut or widget and try to move it to a different location it always jumps back to where it was. Only way to move them is to go into edit mode. Anyone with the same issue?
That is correct. It appears that it is by design ... as much as I disagree with it.
Another problem however, I have not been able to find a way to move, add or delete the 4 default icons at the bottom most section. Anyone find a solution?

[Q] Google apps folder

Hi.
Just got a Nexus 4 after some thieving Spanish barstewards stole my Note 2. Loving the phone so far.
Quick question. Can you add to the Google apps folder on the home screen that is there when you first start it up? I know you can delete from it as I deleted the Youtube widget, but I wanted to add the Google Now widget but when I try to add it as if it was a folder it doesn't work.
Is it just not possible?
Ta.
loftus1961 said:
Hi.
Just got a Nexus 4 after some thieving Spanish barstewards stole my Note 2. Loving the phone so far.
Quick question. Can you add to the Google apps folder on the home screen that is there when you first start it up? I know you can delete from it as I deleted the Youtube widget, but I wanted to add the Google Now widget but when I try to add it as if it was a folder it doesn't work.
Is it just not possible?
Ta.
Click to expand...
Click to collapse
Guess I'm not following what you mean exactly by folder?
Are you using the stock launcher or another launcher (ie: apex, nova, etc) .
Normally to add a widget you would simply long-press the home screen, select widgets, and pick that, and should show up as a widget, if you're creating a folder you're probably dragging the app icon onto something else.
Yeah, I thought I wasn't explaining myself very well.
It's stock launcher. On the home screen, when you first set up the phone, there is a widget/folder titled "Google" which is effectively a folder containing the widgets for various Google apps ie Gmail, Google+, maps etc. I wondered whether it is possible to add to this folder (for want of a better word). If I try to drag a widget over it that doesn't work.
Hope that's a bit clearer.
Don't worry - sorted it.

Shortcut on EPD?

Hi there,
does anybody know if it is possible to set a shortcut for a website on the EPD screen?
There is a widget where i can select apps from a list.
But i just want to set a shortcut for a website like Dropbox or Newspapers so that i can select it directly on the EPD.
thx
The answer isn't straightforward, essentially what you're looking for is a pointer to website, but in the apps drawer so you can pick it up from the EPD's app launcher menu. Android doesn't do that natively, and a typical shortcut application would only allow shortcut on home screen.
A rather intriguing method would be to create shortcuts with Tasker and then install them as app. Definitely worth a shot. Someone might have a better answer though.
It is not that easy as i thought.
There is an App called Yotabelt, which should allow this, but no chance. It does not open anything.
So, i guess, i'll have to find a way to get a shortcut into the apps list.

[Oreo stock] Impossible to add url bookmark or app specific shortcut on home screens?

It looks like I can't add any app specific shortcut on my home screens.
In Firefox, when I click to add a bookmark to the home screen, nothing happens, no shortcut is created.
And on FB messenger the option to add a chat head shortcut to the homescreen doesn't even show up anywmore.
I tried with stock launcher, lawnchair and Nova, same problem.
Did I miss something?
Btw I just bought that G6 and updated to Oreo right out of the box, so I don't know how it was on Nougat.
(missing Messenger option in attached screen cap)
https://stackoverflow.com/questions...uts-on-android-o-when-targetting-less-than-it
https://developer.android.com/about/versions/oreo/android-8.0-changes#as
Ok I guess the apps need to be updated to use the new method.
No one else has that problem?

Categories

Resources