Ok so I am very new to the Android SDK, but not to programming. I want to attempt to make a simple Android widget. I've been looking around for things on the web pertaining to widgets, and have been able to find lots of information, but nothing pertaining to my main question.
How can I make a settings dialog that will adjust the widget when it is launched? When you add the Google search widget, it prompts you to specify what type of widget you want it to be. In my widget I'm making, I want to allow the user to specify the widget height right after they select it.
How can I present that type of dialog? What does that entail? Any code snippets or tutorials or help anyone has to offer will go a long way.
Thanks!
Check here How to put multiple widget sizes in one apk?
The answers quote resources for both several widgets in one paackage and configuration page. Still, the size choosing is done not in the own configure dislog, but during add.
Related
I want to create a app widget in my desktop and let it support full screen and webview, but I can't find any solution Click Here:
So I am wondering whether there is a way to let app widget support full screen and webview?Or it's designed to not support such function?
I don't think it worth any down vote , in a company , do my best to meet product's requirements should be down vote???? I know it's a very strange question , but I just need others to tell me I can't do this not because I don't have enough skill!Even the official documentation tell me it's almost impossible , but I still ask in Stack Overflow, I don't want to give it up so quick.
Widget has to be placed on launcher and therefore cannot be full screen. If you absolutely need one, implementing your own launcher that can add full screen widget to it may works (I haven't tried this). You probably cannot hide notification bar with it though.
Unfortunately, widget does not support webview according to the documation.
I know i'm going to die as maybe i didn't place this post correctly, also i'm not a developer, only a graphic designer.
I'm looking for some advise, hope someone could help me with that.
Imagine that you launch your app, and within that there is a button that says "Install widget". You press that button, then the app closes and a widget appears on the home screen.
Is that possible?
i've been reading that before 4.2 i wasn't, but something changed from then. Problem is that i have no more information about this, and also i don't know if it changed over time.
I'm behind the graphic design of a widget. The idea is that you first download the app, which will help you to configure the widget, and then you have to manually place the widget in place.
They are afraid that some people wont understand, and they will cease trying.
I only would like to know if this is possible, (or something similar) and if someone knows any APP that does this thingie.
Note: APPS like "Swiftkey" guides you in the process of installing your keyboard. it asks you to go to a determinate place of the phone settings, and gives you a shortcut to that place so you don't have to go by yourself.
It would be amazing. To directly place a widget o to guide them trhough shortcuts.
Many many thanks in advance!
Is that possible?
No. The user installs the app widget through the home screen.
The idea is that you first download the app, which will help you to configure the widget, and then you have to manually place the widget in place.
That is also not possible. The flow is that the user chooses the app widget in the home screen, places the widget in place, then if you have a configuration activity defined, you will get a chance to help the user configure the app widget (e.g., to choose the city for the weather report that the app widget should display).
APPS like "Swiftkey" guides you in the process of installing your keyboard. it asks you to go to a determinate place of the phone settings, and gives you a shortcut to that place so you don't have to go by yourself.
Input method editors (a.k.a., soft keyboards) are configured through the Settings app, and therefore there is a consistent place to direct users towards. App widgets are configured through the home screen, and different home screens can implement that process in different ways, so there is no standard spot to direct the users towards.
i have an app on googleplay (MyWords-MyDictionary). After collecting some stats from google analystics i saw that very few is using apps appwidget. I am assuming that people are not aware of the appwidgets existence.. Problem is my apps unique strengt is its appwidget. So somehow i need to suggest user to put the app widget on the homescreen...
What is the right way to do it... How can i make user aware of my widget? It is possible to open the widgetpicker and point out my widget and on click maybe it will be added to the homescreen?
On splash screen make a textview stating "You have my gratitude for downloading the app but please do try the widget as well."
P.S. you don't have to use fancy language you can also type t hanks but this site won't let me type it like that
I have searched many results from GOOGLE, only find to do this is to use app widget. After I learned how to write a widget, but a new problem appeared. How can I add an app widget to home screen automatically? Why some third party app can do this? I just confused about it. Is anyone can help me to resolve the problem?
You can't add widgets programatically to home screen. But you can create a widget host yourself and let user add widgets to that.
I'm currently developing a simple android HomeScreen with just 1 page.
I would like to know how to enable my HomeScreen to run and display widgets like this free widget.
Thanks so much in advance!
The best way you can use it, just get sources of Launcher application and find how AppWidgetHost added to view hierarchy and how it is maintaining AppWidgetHostView instances.
Launcher sources you can get here:
Laucnher.git
The home screen widgets are added by users based on the free-space they have and where they want the widget to be placed in their home-screen. As a developer you can only provide a widget, but adding that to the home-screen is purely in the control of the user.