[android-developers] Re: Clicking on grid item is not showing up full image view, handling onItemClick()

2011-04-01 Thread mack2978
logs: Thread [1 main] (Suspended (exception NullPointerException)) HelloGridView$1.onItemClick(AdapterView, View, int, long) line: 38 GridView(AdapterView).performItemClick(View, int, long) line: 284 AbsListView$PerformClick.run() line: 1696

[android-developers] Re: Clicking on grid item is not showing up full image view, handling onItemClick()

2011-04-01 Thread Andreas Agvard
myView is never initialized and thus null myView.invalidate(); causes NullPointerException as a result On Apr 1, 11:09 am, mack2978 smashmah...@gmail.com wrote: logs: Thread [1 main] (Suspended (exception NullPointerException))         HelloGridView$1.onItemClick(AdapterView, View, int, long)

[android-developers] Re: Clicking on grid item is not showing up full image view, handling onItemClick()

2011-04-01 Thread mack2978
Thanks Andreas, issue was solved but onDraw is not caling and because of this my full image is not showing, below is my changed code package com.example.HelloGridView; import android.app.Activity; import android.os.Bundle; import android.content.Context; import android.content.res.Resources;