Android Open Source - PhotoShare Photo Browse






From Project

Back to project page PhotoShare.

License

The source code is released under:

MIT License

If you think the Android project PhotoShare listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.photoshare;
/*  ww  w  .  j a va 2 s.co m*/
import android.app.ListActivity;
import android.os.Bundle;

import com.example.parse.PrsPhoto;
import com.parse.ParseQueryAdapter;

public class PhotoBrowse extends ListActivity {
  private ParseQueryAdapter<PrsPhoto> mainAdapter;
  private PhotoListAdapter photoAdapter;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_photo_browse);
    
    getListView().setClickable(false);

    /*
    mainAdapter = new ParseQueryAdapter<PrsPhoto>(this, PrsPhoto.class);
    mainAdapter.setTextKey("title");
    mainAdapter.setImageKey("photo");
    
    setListAdapter(mainAdapter);
    */
    
    photoAdapter = new PhotoListAdapter(this);
    photoAdapter.loadObjects();
    setListAdapter(photoAdapter);
  }

}




Java Source Code List

com.example.parse.PrsApplication.java
com.example.parse.PrsPhoto.java
com.example.photoshare.CameraActivity.java
com.example.photoshare.CameraPreview.java
com.example.photoshare.PhotoBrowse.java
com.example.photoshare.PhotoListAdapter.java