Add context Menu to private class View

by craigyg121 » Tue, 03 May 2011 04:09:28 GMT

Sponsored Links
 Hi all,

First post and just getting into Android development so please be
patient with me. I would like to implement a context menu / menu of
some kind when a long click is done on the screen. I can do this under
a normal class when it extends the Activity but i am unsure how to do
this under a private class.

I create a new private class to draw certain shapes etc and use the
onDraw method to draw the items. Very similar to 

Once i call the private class i do not see any events in my main class
as expected.

Any help on this would be appreciated.


Re: Add context Menu to private class View

by TreKing » Tue, 03 May 2011 07:10:53 GMT


How do you "call the private class"?
What is your "main class"?
What event are you expecting to see that you don't?

TreKing <> ; - Chicago
transit tracking app for Android-powered devices


Sponsored Links

Other Threads

1. Koneksi google map

Halo smua, mau nanya nih saya buat program map tapi ko di laporan
can't conect to google
padahal sorce ny dah benar. knp y.. mohon bantuan thanks

"Indonesian Android Community [id-android]" 

2. palringo messanger .. bbm killer hehehe

hallo pengguna android .. pada pake palringo dunk .. ntar isa create room
android (uda ada sih .. tp kebanyakan orang ga jelas), dan isa bikin room2
isa kirim2 gambar lgsg, voice jg isa, bisa masukin messanger2 lainnya
seperti ym, msn, gtalk, fb dll .... seru nih

beta terakir versi 0.006 uda lmyn ... saya sudah pake sejak beta 0.04 sih

bikin iri pengguna bbm dan bb nih hehehehe, soalnya isa ketambahan send
voice dan yg pasti multiplatform, jadi user nya macem2, dari ipong,
simbiyan, winmo, japa, andorid ... bb pun jg bisa, tp kebanyakan ga mau pake
kalo pengguna bb .. kan ga exclusive gitu lo hehehehe

kalo dl jgn yg di market android .. kuno dl disini lgsg :

"Indonesian Android Community [id-android]" 

3. AppFriend for Facebook/Twitter (Social discovery of apps)

4. Launching an "About" screen from Preferences

5. How can my app let people pick a picture that I use as background in my app?

6. read default browser cookies for webview

7. Multiple Back Button clicks needed to exit application