1. Download our Official Android App: Forums for Android!

Apps Set as ringtone with long click?

Discussion in 'Android Development' started by cwgdroid, Nov 11, 2010.

  1. cwgdroid

    cwgdroid Lurker
    Thread Starter
    5

    Nov 11, 2010
    1
    0
    5
    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

    36

    Oct 2, 2010
    71
    8
    36
    Computer Programmer
    Hi,

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

     

Share This Page

Loading...