본문 바로가기

android

Android app에서 Twitter 연동하기 1 http://jeehun.egloos.com/4000125 상단에 원본 링크 입니다. 아래 포스트는 제가 작성한 것이 아니고 egloos.com에 접속되지 않는 분들은 위한 글임을 미리 밝혀 둡니다. 너무 잘 작성된 예제라서 가져옴을 다시 알려드립니다. 안녕하세요 트위터 연동 예제를 시작해보도록 하겠습니다. 먼저 트위터용 라이브러리를 받아야 합니다. 다음 파일을 받으시기 바랍니다. twitter4j-2.1.7-SNAPSHOT.zip 그리고 프로젝트를 다음처럼 만듭니다. 그리고 프로젝트를 만들고 나면 프로젝트 디렉토리 밑에 lib 폴더를 하나 만듭니다. (src폴더와 동일 레벨) 그리고 그 lib 폴더에 위에서 받은 트위터 라이브러리를 압축을 풀어서 디렉토리째로 복사해 넣습니다. 그럼 이렇게 되겠죠 이클립..
bitmap to jpg String path = Environment.getExternalStorageDirectory().toString(); OutputStream fOut = null; File file = new File(path, "FitnessGirl"+Contador+".jpg"); fOut = new FileOutputStream(file); getImageBitmap(myurl).compress(Bitmap.CompressFormat.JPEG, 85, fOut); fOut.flush(); fOut.close(); MediaStore.Images.Media.insertImage(getContentResolver(),file.getAbsolutePath(),file.getName(),file.getName());
email intent 다중파일 전송 Intent i = new Intent(Intent.ACTION_SEND_MULTIPLE); [출처] 안드로이드사이드 - http://www.androidside.com/bbs/board.php?bo_table=B49&wr_id=40213#c_40244
email intent Intent i = new Intent(Intent.ACTION_SEND); //i.setType("text/plain"); //use this line for testing in the emulator i.setType("message/rfc822") ; // use from live device i.putExtra(Intent.EXTRA_EMAIL, new String[]{"test@gmail.com"}); i.putExtra(Intent.EXTRA_SUBJECT,"subject goes here"); i.putExtra(Intent.EXTRA_TEXT,"body goes here"); startActivity(Intent.createChooser(i, "Select email application...
android email intent Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType("jpeg/image"); sendIntent.putExtra(Intent.EXTRA_EMAIL, "me@gmail.com"); sendIntent.putExtra(Intent.EXTRA_SUBJECT, R.string.email_subjectStart + mWhatYouSpotted.getSelectedItem().toString() + R.string.email_subjectEnd); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:/"+ sPhotoFileName)); sendIntent.putExtra(Intent.EX..
android facebook 연동하기(1) public class FaceBookDemo extends Activity { /** Called when the activity is first created. */ final String YOUR_APP_ID = ""; Facebook facebook = new Facebook(YOUR_APP_ID); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); facebook.authorize(this, new DialogListener() { @Override public void onComplete(Bundle values) { ..