what's the replacement of getScale() in BaseAdapter

by neuzou » Fri, 06 Mar 2009 19:31:30 GMT

Sponsored Links
   everyone, anybody knows what's the replacement of getScale() in
BaseAdapter, Google remove it from 0.9 SDK, and not recommend which
method to replace it, I need use this method, please give me some

Other Threads

1. can't write to sdcard anymore

I've been developing this one app for a few months now with eclipse.
I've had no problem writing to the sdcard in the past. Now it just
creates an empty file when the following code is used:

try {
FileWriter fw = new FileWriter("/sdcard/shootme.txt");

BufferedWriter out = new BufferedWriter(fw);
out.write("help! I'm going crazy");

} catch (IOException e) {
Toast.makeText(cntx, "WriteFailed!", Toast.LENGTH_SHORT).show();
Toast.makeText(cntx, "Written! " , Toast.LENGTH_SHORT).show();

It runs fine and the last toast pops up like everything is fine... but
no... it's an empty file that got created!

I was just making code changes on what was written and all of a sudden
this happens. I did notice that when using WinImage to manage the
sdcard, the attributes were changed to Archive.

I deleted the avd and sdcard I was using and created a new one just in
case and it still happens.

I checked and all my other apps do the same thing... a different
computer did the same thing. An app with just the code above doesn't
work either. I tried SuperCSV.jar and it just writes an empty file.



2. Selection

What's the best way to implement a selection? is it to use a
ListActivity to display a list of items to select from, display the
activity with a startActivityForResult and implement the
onListItemClick which would return the selected item and close the
activity. Or is it to use the Dialog?


3. How to perform the animation in viewgroup

4. URLSpan string problem

5. Android Dev Phone with Verizon?

6. Contacts: annot find symbol for getContentResolver().query ???

7. ListActivity not updating on Database update.