Demo Applications

by noob_boy » Fri, 04 Mar 2011 19:47:59 GMT


Sponsored Links
 Hi,

I am an idea for an App in which there is a view like facebook's wall.
i.e.
Profile picture, then username and then the wallPost contents.
Profile picture, then username and then the wallPost contents.
 -- This is repeated many times.

I know how to create listViews with space for the picture, username
and wallPost contents. But I dont know how to load the picture from
facebook even though I have the profile ID.
Is there any example whose code I can look and learn?

Are there any open source Android Apps which integrate with Facebook?

Which is the best place to look for these examples?

Thanks a lot.

-- 



Demo Applications

by noob_boy » Fri, 04 Mar 2011 19:48:00 GMT


 Hi,

I am an idea for an App in which there is a view like facebook's wall.
i.e.
Profile picture, then username and then the wallPost contents.
Profile picture, then username and then the wallPost contents.
 -- This is repeated many times.

I know how to create listViews with space for the picture, username
and wallPost contents. But I dont know how to load the picture from
facebook even though I have the profile ID.
Is there any example whose code I can look and learn?

Are there any open source Android Apps which integrate with Facebook?

Which is the best place to look for these examples?

Thanks a lot.

-- 


Sponsored Links


Re: Demo Applications

by Kostya Vasilyev » Fri, 04 Mar 2011 19:58:05 GMT


 Official Facebook SDK for Android:

https://github.com/facebook/facebook-android-sdk/

Facebook mobile devices forum:

 http://forum.developers.facebook.net/viewforum.php?id=9 

-- Kostya

04.03.2011 14:47, noob_boy :
Hi, I am an idea for an App in which there is a view like facebook's wall. i.e. Profile picture, then username and then the wallPost contents. Profile picture, then username and then the wallPost contents. -- This is repeated many times. I know how to create listViews with space for the picture, username and wallPost contents. But I dont know how to load the picture from facebook even though I have the profile ID. Is there any example whose code I can look and learn? Are there any open source Android Apps which integrate with Facebook? Which is the best place to look for these examples? Thanks a lot.
-- Kostya Vasilyev -- http://kmansoft.wordpress.com --



Other Threads

1. Connecting 4 Geopoints

Hello All,


I am having 4 static Geopoints, I am able to mark them on the Map and also i
am able to draw line between them.

Now i am trying to animate the line while drawing between 2 Geopoints, i
just want to show them some kind of animation while drawing line .. is it
possible to do ?? or i can call some delay function ??

Please help me with this ..

My function

public class HelloMapView extends MapActivity {
    /** Called when the activity is first created. */
LinearLayout linearLayout;
MapView mapView;
    MapController mc;
    GeoPoint p,p1,p2,p3;

    class MapOverlay extends com.google.android.maps.Overlay
    {
        @Override
        public boolean draw(Canvas canvas, MapView mapView,
        boolean shadow, long when)
        {
            super.draw(canvas, mapView, shadow);

            //---translate the GeoPoint to screen pixels---
            Point screenPts = new Point();
            mapView.getProjection().toPixels(p, screenPts);

            //---add the marker---
            Bitmap bmp = BitmapFactory.decodeResource(
                getResources(), R.drawable.a);
            canvas.drawBitmap(bmp, screenPts.x, screenPts.y-35, null);

            //Coordinates 2

          //---translate the GeoPoint to screen pixels---
            Point screenPts1 = new Point();
            mapView.getProjection().toPixels(p1, screenPts1);

            //---add the marker---
            Bitmap bmp1 = BitmapFactory.decodeResource(
                getResources(), R.drawable.b);
            canvas.drawBitmap(bmp1, screenPts1.x, screenPts1.y-35, null);

            //Coordinates 3

           //---translate the GeoPoint to screen pixels---
            Point screenPts2 = new Point();
            mapView.getProjection().toPixels(p2, screenPts2);

            //---add the marker---
            Bitmap bmp2 = BitmapFactory.decodeResource(
                getResources(), R.drawable.c);
            canvas.drawBitmap(bmp2, screenPts2.x, screenPts2.y-35, null);


            //Coordinates 4

            //---translate the GeoPoint to screen pixels---
             Point screenPts3 = new Point();
             mapView.getProjection().toPixels(p3, screenPts3);

             //---add the marker---
             Bitmap bmp3 = BitmapFactory.decodeResource(
                 getResources(), R.drawable.dgreen);
             canvas.drawBitmap(bmp3, screenPts3.x, screenPts3.y-35, null);



            //----------- Start--------------//

            Paint mPaint = new Paint();
            mPaint.setStyle(Style.FILL);
            mPaint.setStrokeWidth(3);
            mPaint.setColor(Color.BLUE);
            mPaint.setAntiAlias(true);
            //canvas.drawPath(path,mPaint);
            super.draw(canvas, mapView, shadow);
            canvas.drawLine(screenPts.x, screenPts.y, screenPts1.x,
screenPts1.y, mPaint);
            canvas.drawLine(screenPts1.x, screenPts1.y, screenPts2.x,
screenPts2.y, mPaint);
            canvas.drawLine(screenPts2.x, screenPts2.y, screenPts3.x,
screenPts3.y, mPaint);
            return true;
        }
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        mapView = (MapView) findViewById(R.id.mapview);

        mapView.setBuiltInZoomControls(true);

        mapView = (MapView) findViewById(R.id.mapview);



        mapView.displayZoomControls(true);
        mc = mapView.getController();
        String coordinates[] = {"12.958998", "77.658998"};
        double lat = Double.parseDouble(coordinates[0]);
        double lng = Double.parseDouble(coordinates[1]);

        p = new GeoPoint(
            (int) (lat * 1E6),
            (int) (lng * 1E6));


        String coordinates1[] = {"12.95967","77.64918"};
        double lat1 = Double.parseDouble(coordinates1[0]);
        double lng1 = Double.parseDouble(coordinates1[1]);

        p1 = new GeoPoint(
            (int) (lat1 * 1E6),
            (int) (lng1 * 1E6));

        //For geopoint point 3

        String coordinates2[] = {"12.96052","77.64171"};
        double lat2 = Double.parseDouble(coordinates2[0]);
        double lng2 = Double.parseDouble(coordinates2[1]);

        p2 = new GeoPoint(
            (int) (lat2 * 1E6),
            (int) (lng2 * 1E6));

        //For geopoint point 4
        String coordinates3[] = {"12.96721","77.64141"};
        double lat3 = Double.parseDouble(coordinates3[0]);
        double lng3 = Double.parseDouble(coordinates3[1]);

        p3 = new GeoPoint(
            (int) (lat3 * 1E6),
            (int) (lng3 * 1E6));



        mc.animateTo(p);
        mc.animateTo(p1);
        mc.animateTo(p2);
        mc.animateTo(p3);
        mc.setZoom(16);

      //---Add a location marker---
        MapOverlay mapOverlay = new MapOverlay();
        List<Overlay> listOfOverlays = mapView.getOverlays();
        listOfOverlays.clear();
        listOfOverlays.add(mapOverlay);

        mapView.invalidate();


    }

    @Override
    protected boolean isRouteDisplayed() {
        return false;
    }

}

-- 

2. Mixing RelativeLayout and Absolute

I have a complex layout that is almost perfectly adapted to
RelativeLayout rules - all except for 2 buttons.  I want to equally
space 5 ImageButtons along the bottom of the view.  The outside two
buttons I can do in XML with android:layout_alignParentRight="true"
and android:layout_alignParentLeft="true".  The middle button I can do
with android:layout_centerHorizontal="true".  But how can I position
the remaining 2 buttons between the others?  What I wanted to do was
to recalculate their position with respect to the other 3 buttons in
the onCreate() method using AbsoluteLayout.  But I see that
AbsoluteLayout has been deprecated.  I would rather not clone the
AbsoluteLayout functionality if there is a more straight-forward way
to do what I need.

-- 

3. Audio capture issues

4. Calendar source code to eclipse

5. Dell Mini 10v

6. why is gingerbread unpopular?

7. Android homescreen customize