Set as ringtone with long click?


Last Updated:

  1. cwgdroid

    cwgdroid New Member This Topic's Starter

    Joined:
    Nov 11, 2010
    Messages:
    1
    Likes Received:
    0
    I am writing my first app, starting simple with a soundboard, and I have a feeling I won't run into too many problems seeing as how I'm familiar with java, but I have one thing that I have yet to figure out. How can I create an option on my soundboard buttons that when held down for a few seconds the user can set the sound as a ringtone? I have seen this on many soundboards on the market but have yet to figure it out. Thanks in advance.
     

    Advertisement
  2. AlbertPucciani

    AlbertPucciani Well-Known Member

    Joined:
    Oct 2, 2010
    Messages:
    71
    Likes Received:
    8
    Hi,

    Start with the method "setOnLongClickListener()" that belongs the the View class (which Button is a child of). For example:

     

Share This Page

Loading...