DataSource

by Alan Huang » Thu, 30 Jul 2009 01:21:02 GMT


Sponsored Links
 Android doesn't support J2ME's DataSource. Does anyone implement similar class 
for Android to support playlist?

Thx
Alan

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Bad image with 854x480 screen size (on physical device and emulator)

We are facing a problem with 854x480 resolution, using Android 1.6
This problem can be replicated on emulator.
Our target device has 854x480 resolution (NOT 480x854).
If we use default orientation, which is in our case 854x480, there is
no problem.
If we turn by 90 degrees, which is then 480x854, then we have missing
lines, jumping lines and jumping fonts.
This problem can be seen with standard Android menus but easier in
Aldiko (however, to be clear: it is not dependent on the application,
it is just easier to recognize)
This failure DOES NOT occur when you use 480x854 as default resolution/
orientation.
Could it be a problem in the accuracy of the OGLES library of Android?
Any idea is fine...

I could upload pictures from the emulator, but it is not allowed for
me...

Br, Uwe

-- 

2. Adapter.getView not getting called when placed in a different class??

Hi all,

I created a ListActivity and I used an ArrayAdapter class that I
extended to display the rows of my list (with an icon and text).
Everything there works great. I need a few of these lists on different
tabs, so I decided to create a base class called ListBase that extends
from ListActivity. I changed my class to extend my new ListBase
instead of ListActivity. Again everthing worked.

The last step for me is moving my private adapter class into the base
class. For some reason, when I move it into the base class, the

@Override
public View getView(int position, View convertView, ViewGroup parent)
{...}

never gets called. Remember that the above method is inside of the
private ArrayAdapter class which is inside my ListBase class. It works
fine when I put the private adapter class in the child class that
inherits from ListBase, but the override doesnt get called if I move
it into ListBase. I tried making the private class a public class and
that didnt work either.

Is there some rule in android/java about overrides and private
classes? How can I get it to work?

Here is what works:

public class LatestNewsView extends ListBase {
    ...
   private class StoryAdapter extends ArrayAdapter<Story> {
            ...
        @Override
        public View getView(int position, View convertView,
ViewGroup    parent)   {
                    // this code gets called properly
        }

   }


Here is what doesnt work:

public abstract class ListBase extends ListActivity {
   ...
   private class StoryAdapter extends ArrayAdapter<Story> {
      ...
      @Override
      public View getView(int position, View convertView, ViewGroup
parent) {
        //this never fires WHY???
      }

Any help would be great!!

Thanks,
-Savij

-- 

3. I need android developers guide in pdf

4. Audio file list

5. spinner question

6. Sound board App

7. Android Market Developer Console Bugs feature