Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

App Widget

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have and App widget on home screen and i want to launch Quick action bar (same as Quick contacts in Contacts application) on home screen itself.
I know how to show quick action bar, but i am unable to get the click listener to App widget. So my problem is to just listen when my app widget is being clicked.

Thanks and Regards
 
Ranch Hand
Posts: 73
Android Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sahil,

Lets say that you want to execute something on click so you create an Intent for it,
Then you override the onRecieve method and check to see if Intent's action matches the one you set,
Hope this helps.
 
Sahil Reddy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Pranav

But the problem is that this will execute one new activity and i dont want it ..... i want everything happens over home screen only. Let me tell you once again

I have an Icon (App Widget) over the Home screen and when i click it...there would be number of options shown as a part of quick action bar over the home screen only.....i dont want to go somewhere else.


Thanks and Regards
 
Pranav Raulkar
Ranch Hand
Posts: 73
Android Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sahil,

Sorry for late reply. I guess you might have figured this by now.
If you haven't I guess we can use ActionBar for creating action bar, just like in contacts.

Have a look at this http://www.xoriant.com/blog/mobile-application-development/android-ui-design-pattern-%E2%80%93-quick-action-bar.html

Hope this helps.
 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic