> new OnClickListener() {
...
> Intent i = new Intent(this, info.class);
"this" here points to your OnClickListener instance, while you need
Context. Try "new Intent(getApplicationContext(), ...)" instead
On Apr 2, 12:22 am, Pedetre <[email protected]> wrote:
> Hello there,
>
> I'm new to android development and have a question or two to ask:
>
> 1, In my app I have a list view and have about 60 items in my list.
> Im making a timetable app. I wanted to keep everything offline. So
> that all the timetables could be stored in the app. But now I'm
> thinking i'll just give a link to the relevant webpage. Does anyone
> have any suggestions on this ?
> .
> 2. I was looking in the dev guide, for the on click item can anyone
> give me an example. I have this:
>
> private OnClickListener mCorkyListener = new OnClickListener() {
> public void onClick(View v) {
> Intent i = new Intent(this, info.class);
> startActivity(i);
>
> but it ain't working.
>
> Hope I'm not asking too much.
>
> Thanks in advance
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.