[android-developers] Re: OutofmemoryError

2011-04-27 Thread Andreas Agvard
You can free memory allocated by bitmaps by calling their recycle() method. On Apr 27, 6:43 am, subhashini alaguchokku subhashini.andr...@gmail.com wrote: Hi! Im got BitmapSize exceeds VM budget outof memory error. any one have idea? how to clear the memory.here i loaded the too many

[android-developers] Re: ShortcutIconResource

2011-04-01 Thread Andreas Agvard
Like this: Drawable shortcutIconDrawable = null; Parcelable iconResourceParcelable = shortcutData.getParcelable(Intent.EXTRA_SHORTCUT_ICON_RESOURCE); if (iconResourceParcelable != null iconResourceParcelable instanceof Intent.ShortcutIconResource) { Intent.ShortcutIconResource iconResource

[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: Making broadcast receiver post of UI/main thread

2010-06-15 Thread Andreas Agvard
/content/BroadcastReceiver.html#onReceive(android.content.Context,%20android.content.Intent) On Jun 10, 5:47 pm, Mark Murphy mmur...@commonsware.com wrote: Andreas Agvard wrote: Are we guaranteed that Application.onCreate() runs in the UI/main thread? Yes. When I receive a broadcast I want

[android-developers] Making broadcast receiver post of UI/main thread

2010-06-10 Thread Andreas Agvard
Are we guaranteed that Application.onCreate() runs in the UI/main thread? I want to assume so but I can't find any information to make me 100 % sure. When I receive a broadcast I want to post a message onto the UI/main thread. Currently I've added a function in my Application class to return a

[android-developers] Re: Advanced UI tutorials

2010-06-01 Thread Andreas Agvard
I am glad you like the tutorials! :) 4 parts have been posted now. Most recently part 2 of the list tutorial where you'll be shown how to add 3d effects to your own list. Don't forget to download the application from Android Market, just search for sony ericsson tutorials and you'll find it!

[android-developers] Advanced UI tutorials

2010-05-26 Thread Andreas Agvard
Me and a collegue at Sony Ericsson has recently started a series of tutorials focusing on Advanced UI. One series on how to implement Zoom into your application, and another on how to make your own 3d list as an AdapterView. The first part of each tutorial series is out now, and the following

[android-developers] Adva

2010-05-26 Thread Andreas Agvard
Me and a collegue at Sony Ericsson has recently started a series of tutorials focusing on Advanced UI. One series on how to implement Zoom into your application, and another on how to make your own 3d list as an AdapterView. The first part of each tutorial series is out now, and the following

[android-developers] Advanced UI tutorials

2010-05-26 Thread Andreas Agvard
Me and a collegue at Sony Ericsson has recently started a series of tutorials focusing on Advanced UI. One series on how to implement Zoom into your application, and another on how to make your own 3d list as an AdapterView. The first part of each tutorial series is out now, and the following

[android-developers] Advanced UI tutorials

2010-05-24 Thread Andreas Agvard
Me and a collegue at Sony Ericsson has recently started a series of tutorials focusing on Advanced UI. One series on how to implement Zoom into your application, and another on how to make your own 3d list as an AdapterView. The first part of each tutorial series is out now, and the following