Need Help

by Ravi Savaliya » Wed, 03 Sep 2008 19:05:21 GMT

Sponsored Links
 Hey Prabhat..

here is code for reading data from URL,, u can test it just pass url.. it
will return all data. on that url.

    public String requestURLData(String uri)
      String result=null;

      InputStream input_stream=null;
        BufferedReader buffered_stream=null;
        URLConnection connection_object=null;
                 //construct url
                  URL url_object = new URL(uri);

                  // Open Connection for url
                  connection_object = url_object.openConnection();

                  input_stream = connection_object.getInputStream();
                  // Reader rd=new Reader(input_stream);
                  // Buffered is always good for a performance plus.
                   buffered_stream = new BufferedReader(new


            catch(Exception e){e.printStackTrace();}
                  //close streams

                 } catch(Exception e)
                     { e.printStackTrace();}
       return result;


Ravi Savaliya
On Wed, Sep 3, 2008 at 10:36 AM, PRABHAT KUMAR <


Need Help

by PRABHAT KUMAR » Wed, 03 Sep 2008 22:19:06 GMT

 Hi Friends,

          I am new to android ............ I am not able to understand how
to fetch data from a site using API..............

Can anyone of you mail me a sample code ................... I am using
Eclipse with android plugin

Thanks & Regards
Prabhat Kumar


Sponsored Links

Need help

by Ernest Jojart » Thu, 13 Nov 2008 06:00:49 GMT


I made an application for Android, but I have no real phone to try it. Can
anybody help me?

Please write to me ([EMAIL PROTECTED]) if You are a T-mobile G1 owner and
You have a little time to try my application!

Thank You in advanced!




Need Help

by [EMAIL PROTECTED] » Thu, 27 Nov 2008 11:54:36 GMT

 I a real noob to these things but if ne one can help me it will be
appriciated if i have a phone with windows mobile or some other
platform how do i upgrade [or ne thing to that effect] to androd can i
just down load a installation file or something it reall import for me
to know please help feel free to email me at [EMAIL PROTECTED]


Need Help

by Ansari Ahtesham » Mon, 16 Nov 2009 07:20:17 GMT


I am new to this group, I just want to know how to port Android to a phone.
Say i have a phone with an OS now i want to replace that OS with Android. Is
this possible , If yes then how.

Er.Ansari Ahtesham Anwar


Need Help

by Shankar Ganesh » Mon, 16 Nov 2009 11:58:46 GMT


Dear Friend,

You have placed a generic question, Let me try to give you high level answer

You can get the android sources from [1]

Now you have to build for your  ** target  processor arcitecture & platform
** ,

1. Bootloader [~/mydroid/bootable]
2. Linux Kernel [~/mydroid/kernel]
3. Android File system - Refer [1]

If you know your target (your mobile phone) platform name,  you may look for
android releases for the same, Refer an example at [2]



> website: 

Need Help

by Niamathullah sharief » Tue, 17 Nov 2009 02:27:52 GMT

 What phone your phone have? what OS its having? give briefly

> website: 

Need Help

by Tim Bird » Tue, 17 Nov 2009 02:28:14 GMT


Some links to pages describing porting Android to various  hardware 
have been collected at: 
Hopefully, there will be some information in the linked articles that 
will be helpful.
 -- Tim


Need Help

by Ambuj » Tue, 23 Mar 2010 21:38:43 GMT


I am a Junior Undergraduate in a University in India, I have been
working with Embedded Systems Programming group of my university.

Now, for some of the projects we have started to us Google Android
based devices.

Some of the things we are looking into are :

(a) Interfacing Google Android based devices using USB Controller on
phone to Micro-controller based devices. This might involve
communicating using the ZigBee platform and writing device driver to
support this.

(b) Using Accelerometer on Google Android based devices to interface
with Micro-controller and creating embedded device using this.

We primarily using AVR ATMega32 and other micro-controllers.

Now, I have the following doubts:

(a) How different is Device Driver development on Google Android ?  is
it same as Linux owing to it being a version of Linux kernel.

(b) Are there any resource available on-line that could augment
this ?

(c) Are there resources available on-line that specifically caters to
integrating Google Android devices with Micro controllers. ARduino
boards are somthing that I have found do this using Bluetooth, I am
looking into interfacing using ZigBee maybe ?

(d) Development package needed to begin Kernel development ?

When I look into , I find the entire development
package to be 2.1 GB download. However, Linux kernel is itself
50Megabytes in size as a compressed tar. Do I need to download all
this , to begin development and is there compressed tar for this
available ?

and , finally(phew!) Can I do this development on x86 based PC or
would I need access to ARM based device.

Ambuj Varshney
Junior Undergraduate
Bachelors in Technology in Information and Communication Technology


To unsubscribe from this group, send email to or reply to this email with the 
words "REMOVE ME" as the subject.

Need Help

by karthik poduval » Tue, 23 Mar 2010 22:15:19 GMT

 i Please find replies inline:-

Karthik Poduval

On Tue, Mar 23, 2010 at 1:53 PM, Ambuj <> wrote:

I know of the beagle board and Openmoko project for Android on devices.

Even in Android u start off with the Vanilla kernel which is 50MB as you
mentioned, over it u apply the android kernel patch. I am not
so familiar with the exact steps, but you could find pre patched kernels
somewhere. What you have downloaded is the platform code that runs in the
user mode and comprises of the Android platform code and applications. Just
an analogy to make things clear, even though Linux kernel is just 50MB the
popular distributions extent to over gigabytes in size. Thats again because
they bundle several applications along with it which increases the package

As I know Android has been ported to ARM, X86 and MIPS as well, there could
be several others as well. You choose an appropriate platform based on the
available resources. X86 might be the easier than the other platforms to
start off with.

Karthik Venugopal Poduval
Ph: 09384808733


To unsubscribe from this group, send email to or reply to this email with the
words "REMOVE ME" as the subject.

Need Help

by Manvendra Pratap Singh » Wed, 24 Mar 2010 15:52:26 GMT

 n Wed, Mar 24, 2010 at 3:45 AM, karthik poduval

Here you can find the kernel



To unsubscribe from this group, send email to or reply to this email with the
words "REMOVE ME" as the subject.

Other Threads

1. convert a image into Base64 format

hello I want to convert a image into Base64 format and send it to
server. I have one Base64 class which accept byte array and return a
string.I am sending image into chunks of data.I am creating creating
one chunk of  100kb. If image is less than 100 kb then image is
uploaded on server, but if it is greater than 100kb (i.e when it
requires more than one chunk) then it will not uploaded. I think it is
because I am converting image into Base64 in parts and on server it
decode it only in one shot. Now I want to send a image for conversion
of Base64 only in one chunk. But if image is too large then it throw
OutOfMemoryException (Obviously after all it is mobile having very
limeted resources).

My code is as follows


import android.os.Bundle;

public class MicroFinalImageUp1 extends Activity

        File myFile = new File("/sdcard/Images/4.jpg");
        int noOfChunks ;
        String base64String,str;
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState)

  public void readFile()
                 int size = (int)myFile.length();
                 noOfChunks = (size/102400);
                 noOfChunks = noOfChunks+1;
                 System.out.println ("size of file is "+size);
                 System.out.println ("size is"+noOfChunks);

                 byte[] byteArray = new byte[102400];
                 FileInputStream fstream = new FileInputStream(myFile);
                 int bytesRead = 0;
                 while((bytesRead = != -1)
                         str = new String(byteArray,0,bytesRead);

                         base64String = Base64.encode(byteArray);


         catch (IOException ioe)


    public void sendData(String line)

                URL connectURL = new URL("MyURL");
                // connectURL is a URL object
                System.out.println ("After heating url");

                HttpURLConnection conn =
                // allow inputs

                // allow outputs

                // don't use a cached copy

                // use a post method

                // set post headers

                // open data output stream
                OutputStream dos ;


                System.out.println ("Before if statement");

                        byte[] arr = line.getBytes();

                        System.out.println ("arr auccesfully 


                        System.out.println ("write to the page");

                System.out.println ("After if statement");

                InputStream is = conn.getInputStream();
                int ch;
                StringBuffer b =new StringBuffer();
                System.out.println ("Before second while loop");
                while(( ch = ) != -1 )
                        b.append( (char)ch);

                String s=b.toString();
                System.out.println (s);
                System.out.println ("at the end of try block");

        catch (MalformedURLException ex)
                // Log.e(Tag, "error: " + ex.getMessage(), ex);
        catch (IOException ioe)
                // Log.e(Tag, "error: " + ioe.getMessage(), ioe);


What should I do?

Thanks in advance


2. Streaming video from Android handset - code examples anywhere?


I'm in the process of writing an application that would be streaming
live video from Android handset into a server that resides in the
internet. Are there any code examples that can handle this? I've been
trying to search code examples, but could not find any. I have also
bought a couple of Android development books, but none of those
covered this kind of functionality.

Any help would be greatly appreciated. Thank you!


3. How can I use VideoView to streaming without buffering?

4. video conversion from .flv to .mp4

5. DownloadManager - simultaneous multiple downloads

6. Need MMSH Protocol library

7. About AdSense for Mobile Applications