Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of user2601652

user2601652

user2601652 has asked 3 questions and find answers to 1 problems.

Stats

48
EtPoint
12
Vote count
3
questions
1
answers

About

http://sunil-android.blogspot.in/2013/02/touch-to-move-bitmap-inside-custom-view.html

http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application/

http://code.almeros.com/android-multitouch-gesture-detectors#.UgkoR3-2Gvg

https://code.google.com/p/rascal-viewer/

final StatusCallback statusCallBack = new StatusCallback() {
        @Override
        public void call(Session session, SessionState state, Exception exception) {
            session.openForPublish(new Session.OpenRequest(SaveSendActivity.this).setCallback(this).setPermissions(Arrays.asList(facebookPermissions)));
        }
    };

    Session session = Session.openActiveSession((Activity)context, true, statusCallBack);
}

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    Session session = Session.getActiveSession();
    if(session != null) {
        try {
            session.onActivityResult(this, requestCode, resultCode, data);
            Bundle bundle = new Bundle();
            bundle.putString("name", "Amplimesh");
            com.facebook.Request request = new com.facebook.Request(session, "me/albums", bundle, HttpMethod.POST, requestCallBack);

            RequestAsyncTask requestAsyncTask = new RequestAsyncTask(request);
            requestAsyncTask.execute();

            requestCallBack = new com.facebook.Request.Callback() {
                @Override
                public void onCompleted(Response response) {
                    JSONObject graphResponse = response.getGraphObject().getInnerJSONObject();
                    String postId = null;
                    try {
                        postId = graphResponse.getString("id");
                    } catch(Exception e) {
                        Log.v(GlobalVars.TAG, "JSON::" + postId);
                    }
                }
            };
        } catch(Exception e) {
            Log.v(GlobalVars.TAG, "Exception at::" + e.getMessage());
        }
    }
}