Does anyone know a way to register a click/tap from a watchface app? So you can for example start another app when a certain part of the watchface is clicked. According to the developer documentation it's not supported. But some watchface apps (like WatchMaker Premium) can do it, I wonder how? I've tried to add some clicklisteners etc but none of it works...
Related
I need to have a tray icon for my app, up there with EDGE/3G, Battery and Sound-level.
I have tried the opennetcf's Notify class, but it don't do what I want it to.
Googled alot without any solution, doesn't even seem to be a popular request? I suppose this would be quite crucial to many apps!
What I want to do is:
Add an icon up there, when this is clicked, run some code in my app.
Posibility to change the look of the icon at run time, I guess this could be done by deleting and adding the icon again...
Anyone know any tasked plugins that will allow me to change android wear settings?
Ex: when connected to my car enable all notifications, on disconnect mute desired apps
Thanks
I am generally looking for a way to interact with my watch from my phone (including changing settings). I hope there is a way
I too am looking for this. I'd really like to be able to change notification settings and ambient light sensor depending on my location via tasker.
Interaction is already possible with Auto Wear (alpha status), requires abo on Autoapps. The settings part is missing so far.
Erstellt mit meinem Note 10.1 2014 LTE
Unfortunately, there aren't many APIs exposed for changing settings on Wear devices. I have a Tasker plugin for Wear that I'm adding more and more features to, but right now there aren't any actions in the plugin. I'm hoping that the next version of Wear will expose more APIs. If you want to see what it does so far the package ID is com.jarettmillard.localewear on the Play Store (I can't post links yet, unfortunately).
Hello Guys,
My english is not very good, i'm sorry for that.
I'm developing an app and now i want to have an icon in my actionbar.
i cannot give an example (security from XDA) but de usual icon top left most apps have. Now i only have the title, but on the left side of the title i want the icon.
I tried this:
getActionBar().setIcon(R.drawable.my_icon);
And i tried with android manifest to add: Android:icon and Android:logo to the activity and many other things But none of them works for me.
If i watch videos it looks like the icon should be there by default, but not in my case.
I hope somebody can help me.
Thanks in advance.
meijeringw said:
Hello Guys,
My english is not very good, i'm sorry for that.
I'm developing an app and now i want to have an icon in my actionbar.
i cannot give an example (security from XDA) but de usual icon top left most apps have. Now i only have the title, but on the left side of the title i want the icon.
I tried this:
getActionBar().setIcon(R.drawable.my_icon);
And i tried with android manifest to add: Android:icon and Android:logo to the activity and many other things But none of them works for me.
If i watch videos it looks like the icon should be there by default, but not in my case.
I hope somebody can help me.
Thanks in advance.
Click to expand...
Click to collapse
Are you using the new Toolbar API?
Thats what i think. I'm not sure, how can i check that?
Do you mean AppCombat?
You need to add the android:icon attribute under the application element, not under the activity
Also the design guidelines state that the icon shouldn't be used if you are using the Toolbar API - there are other ways to get your apps branding across to the user.
Thanks for the answers.
But i tried to add the android:icon attribute to the application element instead of the activity element. (And i tried both)
But in none of this situations the icon will appear.
If i look on Google and Youtube i see many people creating a actionbar and have an icon by default. Strange that i don't have this.
I hope that you can help me, thanks.
meijeringw said:
Thanks for the answers.
But i tried to add the android:icon attribute to the application element instead of the activity element. (And i tried both)
But in none of this situations the icon will appear.
If i look on Google and Youtube i see many people creating a actionbar and have an icon by default. Strange that i don't have this.
I hope that you can help me, thanks.
Click to expand...
Click to collapse
ActionBar != Toolbar. By default the new Toolbar API does not have an icon - this is due to the new design spec (Material Design) that the Toolbar was created for.
You need to find out if you are using the new Toolbar API or the old ActionBar API.
If you're using the Toolbar API then as I already said, it goes against the guidelines to have an icon in the Toolbar now as the primary function of it used to be to get the app branding across to the user which there are now other ways to do using material design (using a custom color palette etc).
If you are really stubborn and insist on going against the guidelines you have to use the below code to set an icon on the Toolbar:
Code:
toolbar.setLogo(R.drawable.ic_launcher);
Thanks for your answer, it helped me.
Now i use:
PHP:
getSupportActionBar().setIcon(R.drawable.ic_launcher);
Now i want the left arrow on the left side of the icon, and using:
PHP:
getSupportActionBar().setDisplayShowHomeEnabled(true);
But it won't work. Can you help me with that?
Thanks!
meijeringw said:
Thanks for your answer, it helped me.
Now i use:
PHP:
getSupportActionBar().setIcon(R.drawable.ic_launcher);
Now i want the left arrow on the left side of the icon, and using:
PHP:
getSupportActionBar().setDisplayShowHomeEnabled(true);
But it won't work. Can you help me with that?
Thanks!
Click to expand...
Click to collapse
Add this to your code:
Code:
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
I just want to ask, if there is a possibility to port the DigitalClock Widget to all Android Devices? And also if it is possibile to Port it to Tablets with the Widget Size of 6x1.
I really like the Widget and can not find any widger that looks like this.
Espacilly the possibilty that the Widget changes the Font Color and BgColor in the time between 6am and 6pm.
If this is a Samsung designed app, it uses the Touchwiz framework......
Samsung is Touchwiz is Samsung.....
Other non Touchwiz firmwares will not be able to run it......
http://i.imgur.com/rVnFwJM.jpg
And it is not possible to implement the tw-framework(part of it) in the clock apk to get it run on other Devices....
I'am not a developer..... but i tried to recompile parts of the apk.
I do understand what happens in the Java code, but iam not able to script it my self.
Ive hacked some code so that i've got a half working apk.
The Background was changing but the numbers wasn't displayed just the placeholder.
Hi,
i open a new thread for this as it seems that the information in the vxp watchface thread is lost in in the bunch of watchfaces.
Fingalo was able to create some vxp apps for MTK2502 watches.
You find the ressources and files and a how-to in this thread: https://forum.xda-developers.com/showpost.php?p=73719995&postcount=2057
Some test appa shows both analog and digital time. Additionally the date and the battey in %. With real dynamic values!
Unfortunatly after a short timeout the app is usually closed and shows the normal watch face again.
But I was able to tweak the settings on my GW01 a little bit:
There is in the display options menu the possibility to choose "never out" .
I tried it with your app and it stays open !
So please check this apps and may be some developer can improve it.
One improvement would be to deactivate the touch functionality on the screen.
Because a left-to-right slight closes the app and this will happen quickly with the "never out" display.