[android-developers] Re: drawBitmap Flip, Scale and Translate

2013-08-17 Thread decode
Anyone ? On Saturday, August 10, 2013 9:56:24 PM UTC+5:30, decode wrote: I have my code as below : canvas.drawBitmap(bitmap, src, dest,p); (p is null. using default paint, src is null aswell) src and dest are Rect I am trying to flip the bitmap horizontally by using canvas.scale

[android-developers] drawBitmap Flip, Scale and Translate

2013-08-10 Thread decode
I have my code as below : canvas.drawBitmap(bitmap, src, dest,p); (p is null. using default paint, src is null aswell) src and dest are Rect I am trying to flip the bitmap horizontally by using canvas.scale as below canvas.save(); canvas.scale(-1.0f, 1.0f);

[android-developers] Database cursor as null

2011-10-08 Thread decode
I have a list view which shows some data pulled out from database. I am using a helper class to hold the cursor. When clicked on the listitem, we launch another actvity which shows more data about the selected item and can be swiped to left/right to see other items. but, sometimes the cursor

[android-developers] Re: Database cursor as null

2011-10-08 Thread decode
The data is quite huge, Like 10,000+ rows. cursor is declared in a helper class ... a public class. I am closing the cursor in onDestroy of the class extending Application. There is a null check before launching the second activity. But, in second activity it is null. Doesnt happen always and

[android-developers] Re: activity launches with wrong layout orientation

2011-10-08 Thread decode
you should have instead placed the layout files in layout and layout- land. I assume that you must be updating the layout in just onCreate and onConfigurationChanged method. But, you should also check for the configuration and update it in onResume. Its better to use the folders if there isnt

[android-developers] Re: textView Clears on Rotation

2011-10-08 Thread decode
Give an id to your textview. Android system should handle it... On Oct 9, 8:35 am, Studio LFP studio@gmail.com wrote: Thanks for the link there. I've read that a couple of times and understand the uses. Is there a set of documentation that tells what is automatically saved off if you

[android-developers] Re: How to set the default value for a ListPreference

2011-03-09 Thread decode
Did u try : ListPreference android:title=Colour select android:summary=Select your favourite android:key=colour

[android-developers] Re: Load Bitmap from downloaded APK?

2011-03-09 Thread decode
You can fetch the context of the downloaded application from your application and use the resources. You can get a resource by using the name of the resource directly or by getting the id from the name. It works, maybe with a little changes . On Mar 8, 9:28 am, arbitrary-software