TalkAndroid - Latest ANdroid news, applications, and forum discussion

September 4th, 2008 by Chris Moor

Photostream Added to Apps-For-Android

Google have today announced a new additionto the ‘apps-for-android‘ project. The new application, ‘Photostream’, is a simple Flickr photo viewer.

Photostream aims to highlight several of Android’s features and API’s, these include:

  • Activity aliases
  • Adding custom shortcuts to Home
  • Adding a new wallpaper chooser to the system
  • Custom layouts
  • Custom XML attributes
  • Use of themes
  • Use of styles
  • Use of text colors
  • Use of <include>
  • Use of bitmap and layer drawables from XML
  • Use of HttpClient
  • Proper interaction between background threads and the UI thread
  • Efficient display rotation (using the new onRetainNonConfigurationInstance() API)
  • Animations and layout animations
  • Cropping an image
  • Image manipulation

[via Android Developer Blog]


Did you enjoy this post? Subscribe to our RSS Feed! or visit the Android Forum!


Latest Android Forum Discussion

Related Posts

Panoramio Tool Added To The Apps-For-Android Project
WebViewDemo Added To The Apps-For-Android Package
Divide and Conquer Game Added To The Apps-For-Android Project
Google Announce AndroidGlobalTime For The Apps For Android Project
Live NBA Games Headed to Android

One Response to “Photostream Added to Apps-For-Android”

  1. Hi I am trying to connect to a local server having one JSP page index.jsp and from my android application I am trying to read it.But it ids giving error Unknown host exception …Plz help me

    package menu.demo;

    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.net.HttpURLConnection;
    import java.net.URL;

    import android.app.Activity;
    import android.os.Bundle;
    import android.view.Menu;
    import android.view.MenuItem;

    public class MenuDemo extends Activity implements Runnable{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    }

    public boolean onCreateOptionsMenu(Menu menu){
    super.onCreateOptionsMenu(menu);
    MenuItem item = menu.add(“Connect”);
    item.setIcon(R.drawable.icon);
    item = menu.add(“disconnect”);
    item.setIcon(R.drawable.icon);
    return true;
    }
    public boolean onOptionsItemSelected(MenuItem item){
    System.out.println(“……………………MENU CLICKED…………………..”);
    //System.out.println(“…”+item.getItemId()+”..”+item.getTitle());
    if(item.getTitle().equals(“Connect”)){
    System.out.println(“……………………Connect CLICKED…………………..”);
    //String s=callToServer(“http://localhost:8080/dev/index.jsp”);
    //System.out.println(“…………INSIDE RUN=”+s);
    Thread t=new Thread();
    t.start();

    }
    if(item.getTitle().equals(“disconnect”)){
    System.out.println(“……………………Photos CLICKED…………………..”);
    }

    return true;

    }

    public String callToServer(String urlString){
    String responce=”";
    HttpURLConnection con = null;

    try {
    URL url = new URL(urlString);
    if (url != null) {
    HttpURLConnection urlConn = (HttpURLConnection) url
    .openConnection();
    BufferedReader in = new BufferedReader(new InputStreamReader(
    urlConn.getInputStream()));
    String inputLine;

    int lineCount = 0; // limit the lines for the example
    while ((lineCount < 10) && ((inputLine = in.readLine()) != null)) {
    lineCount++;
    responce += “\n” + inputLine;
    }

    in.close();
    urlConn.disconnect();

    }

    }catch(Exception e){

    }
    return responce;
    }

    @Override
    public void run() {
    System.out.println(“…………INSIDE RUN”);
    String s=callToServer(“http://localhost:8080/dev/index.jsp”);
    System.out.println(“…………INSIDE RUN=”+s);

    }

    }

Leave a Reply