Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>There is a button menu (coded to the hard menu button) inside the app and I want to use a button in it to install the widget. I don't care if the widget shows on the home page (I know you can't do that from inside an app)</p> </blockquote> <p>These sentences don't really make sense to me. You say you want to use an app to put a widget on the homepage.. but then say you know you can't do that from inside an app..</p> <p>If you're asking about how to get the widget to automatically get installed in the widget menu that is achieved through the manifest xml file.</p> <p>For a full tutorial you can look <a href="http://nexsoftware.net/wp/2009/07/29/tutorial-creating-a-custom-analogclock-widget/" rel="nofollow">here</a>, but specific to your question you should only need to add a variant of these tags to your Application tag in your manifest xml file.</p> <pre><code>&lt;receiver android:name="[Package name]" android:label="[Your Label]"&gt; &lt;intent-filter&gt; &lt;action android:name="android.appwidget.action.APPWIDGET_UPDATE" /&gt; &lt;/intent-filter&gt; &lt;meta-data android:name="android.appwidget.provider" android:resource="@xml/widget" /&gt; &lt;/receiver&gt; </code></pre> <p>Links for tags:</p> <ul> <li><a href="http://developer.android.com/guide/topics/manifest/receiver-element.html" rel="nofollow">Reciever Tag</a></li> <li><a href="http://developer.android.com/guide/topics/manifest/action-element.html" rel="nofollow">Action Tag</a></li> <li><a href="http://developer.android.com/guide/topics/manifest/meta-data-element.html" rel="nofollow">Meta Data Tag</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload