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. Reading webpage data

Hi, all in my application I want to read data from web page. if data
at web page is upto 800kb then I am able to read it succesfully, but
if data is larger then I get OutofMemoryException. Here is my code
which reads data from web page


public void restoreImage()
    {
        System.out.println ("inside restoreImage");
         try
         {
             URL yahoo = new URL("SOME URL FROM WHICH I WANT TO READ
DATA");

             BufferedReader in = new BufferedReader(new
InputStreamReader(yahoo.openStream()));

             System.out.println ("Before while");
             while ((inputLine = in.readLine()) != null)

             {
                           System.out.println ("Inside while");
                           System.out.println(inputLine);
                           wholeImage=inputLine;

             }


          in.close();
         }
         catch (MalformedURLException me)
         {
             System.out.println(me);

         }
         catch (IOException ioe)
         {
             System.out.println(ioe);
         }

I think it is because I am using condition as while ((inputLine =
in.readLine()) != null)  and in phone there is not much memory to read
such a long string. I think I must have to read some part of string
then write that part into some file in phone and read another part of
string and write into phone but I don't know how to do that? Please
help me solve this issue. Thanks

-- 

2. Symbian C++ for mobile apps

Guys,

Create powerful apps for the world most popular smart phone platform
with Symbian C++

Symbian provides a secure, reliable operating system for smart phones
and is created in Symbian C++
Symbian C++ has been designed to run efficiently on devices with
relatively limited memory and power resources. Several elements of
Symbian C++ therefore differ from desktop C/C++ because of these
requirements. Specific examples include a leaving mechanism that
protects apps against a lack of requested resources and special
handling of data through descriptors. While these mechanisms may be
unfamiliar at first, once mastered they enable the coding of robust
and efficient apps.

For othr info check this: 
http://www.forum.nokia.com/Develop/Other_Technologies/Symbian_C++/

-- 

3. decode image

4. About getting wrong sizes with drawables objects.

5. Converting Bitmap to ASCII

6. SurfaceHolder changed : Stops Video playback

7. More AsyncTask - Simultaneous Downloads