1. myuhe
  2. Androizou

Commits

myuhe  committed d8f1f26

アップロードActivityを修正
諸々リファクタリング

  • Participants
  • Parent commits ca8bff8
  • Branches default

Comments (0)

Files changed (16)

File bin/androizou.apk

  • Ignore whitespace
Binary file modified.

File bin/classes.dex

  • Ignore whitespace
Binary file modified.

File bin/org/homelinux/sheephead/androizou/MainAndroizou.class

  • Ignore whitespace
Binary file modified.

File bin/org/homelinux/sheephead/androizou/R$id.class

  • Ignore whitespace
Binary file modified.

File bin/org/homelinux/sheephead/androizou/R$layout.class

  • Ignore whitespace
Binary file modified.

File bin/org/homelinux/sheephead/androizou/R$string.class

  • Ignore whitespace
Binary file modified.

File bin/org/homelinux/sheephead/androizou/SetID.class

  • Ignore whitespace
Binary file modified.

File bin/org/homelinux/sheephead/androizou/Upload.class

  • Ignore whitespace
Binary file modified.

File bin/resources.ap_

  • Ignore whitespace
Binary file modified.

File gen/org/homelinux/sheephead/androizou/R.java

View file
  • Ignore whitespace
         public static final int icon=0x7f020000;
     }
     public static final class id {
-        public static final int Button01=0x7f05000f;
-        public static final int EditText01=0x7f05000d;
-        public static final int EditText02=0x7f05000e;
-        public static final int TextView01=0x7f050003;
-        public static final int login_button=0x7f05000a;
-        public static final int pass_edit=0x7f05000c;
-        public static final int user_edit=0x7f05000b;
-        public static final int widget28=0x7f050002;
+        public static final int Button01=0x7f050010;
+        public static final int EditTag=0x7f05000f;
+        public static final int EditTitle=0x7f05000d;
+        public static final int Spinner01=0x7f05000c;
+        public static final int TextView01=0x7f050002;
+        public static final int TextView02=0x7f05000e;
+        public static final int TextView03=0x7f05000b;
+        public static final int login_button=0x7f050004;
+        public static final int pass_edit=0x7f05000a;
+        public static final int user_edit=0x7f050007;
+        public static final int widget28=0x7f050001;
         public static final int widget29=0x7f050000;
-        public static final int widget30=0x7f050004;
-        public static final int widget31=0x7f050007;
-        public static final int widget32=0x7f050005;
-        public static final int widget33=0x7f050008;
-        public static final int widget34=0x7f050006;
-        public static final int widget35=0x7f050009;
-        public static final int widget36=0x7f050001;
+        public static final int widget30=0x7f050005;
+        public static final int widget31=0x7f050008;
+        public static final int widget32=0x7f050006;
+        public static final int widget33=0x7f050009;
+        public static final int widget36=0x7f050003;
     }
     public static final class layout {
         public static final int main=0x7f030000;
         public static final int preferences_id=0x7f040008;
         public static final int preferences_name=0x7f040007;
         public static final int preferences_pass=0x7f040009;
+        public static final int spinner_album=0x7f04000f;
+        public static final int text_tag=0x7f04000e;
+        public static final int text_title=0x7f04000d;
         public static final int text_welcome=0x7f040006;
         public static final int user_name=0x7f040002;
     }

File res/layout/main.xml

View file
  • Ignore whitespace
 android:layout_height="fill_parent"
 xmlns:android="http://schemas.android.com/apk/res/android"
 >
-<Button
-android:id="@+id/widget36"
-android:layout_width="fill_parent"
-android:layout_height="wrap_content"
-android:layout_below="@+id/widget28"
-android:layout_alignParentLeft="true"
-android:text="@string/button_name">
-</Button>
+
 <TableLayout
 android:id="@+id/widget28"
 android:layout_width="fill_parent"
 android:layout_alignParentTop="true"
 android:layout_alignParentLeft="true"
 ><TextView android:layout_width="wrap_content" android:id="@+id/TextView01" android:layout_below="@+id/widget36" android:layout_height="wrap_content" android:text="@string/text_welcome"></TextView>
-<TableRow
-android:id="@+id/widget30"
-android:layout_width="fill_parent"
-android:layout_height="wrap_content"
-android:orientation="horizontal"
->
-<TextView
-android:id="@+id/widget32"
-android:layout_width="wrap_content"
-android:layout_height="wrap_content"
-android:text="@string/user_name"
->
-</TextView>
-<EditText
-android:id="@+id/widget34"
-android:layout_width="wrap_content"
-android:layout_height="wrap_content"
-android:textSize="18sp"
->
-</EditText>
-</TableRow>
-<TableRow
-android:id="@+id/widget31"
-android:layout_width="fill_parent"
-android:layout_height="wrap_content"
-android:orientation="horizontal"
->
-<TextView
-android:id="@+id/widget33"
-android:layout_width="wrap_content"
-android:layout_height="wrap_content"
-android:text="@string/pass_name"
->
-</TextView>
-<EditText
-android:id="@+id/widget35"
-android:layout_width="wrap_content"
-android:layout_height="wrap_content"
-android:textSize="18sp"
-android:password="true"
->
-</EditText>
-</TableRow>
+
+
 </TableLayout>
 
 </RelativeLayout>

File res/layout/upload.xml

View file
  • Ignore whitespace
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout
 xmlns:android="http://schemas.android.com/apk/res/android"
-android:layout_width="wrap_content"
-android:layout_height="wrap_content" android:orientation="vertical"
->
+android:layout_width="fill_parent"
+android:orientation="vertical"
+android:layout_height="fill_parent">
 
-<EditText 
-android:id="@+id/EditText01" 
-android:layout_height="wrap_content" android:text="@string/edit_title" android:layout_width="fill_parent"></EditText>
+<TextView 
+android:id="@+id/TextView03" 
+android:layout_height="wrap_content" 
+android:layout_width="fill_parent" 
+android:text="@string/spinner_album"></TextView>
+<Spinner android:id="@+id/Spinner01" android:layout_height="wrap_content" android:layout_width="fill_parent"></Spinner><TextView android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/text_title"></TextView><EditText 
+android:layout_width="fill_parent" android:id="@+id/EditTitle" android:hint="@string/edit_title" android:layout_height="wrap_content"></EditText>
 
-<EditText
-android:id="@+id/EditText02"
-android:text="@string/edit_tag" android:layout_width="fill_parent" android:layout_height="fill_parent"></EditText>
+<TextView android:id="@+id/TextView02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/text_tag"></TextView><EditText
+android:layout_width="fill_parent" android:id="@+id/EditTag" android:hint="@string/edit_tag" android:layout_height="wrap_content"></EditText>
 
 <Button 
 android:id="@+id/Button01" 
 android:layout_height="wrap_content"
 android:text="@string/button_upload" android:layout_width="fill_parent"></Button>
+
+
+
+
 </LinearLayout>

File res/values/strings.xml

View file
  • Ignore whitespace
     <string name="pass_name">pass</string>
 	<string name="button_name">login</string>
 <string name="button_login">login</string>
-<string name="text_welcome">アンドロイ蔵のメイン画面。一部機能が未実装です。</string>
+<string name="text_welcome">アンドロイ蔵  PreAlpha</string>
 <string name="preferences_name">androizou_pref</string>
 <string name="preferences_id">androizou_id</string>
 <string name="preferences_pass">androizou_pass</string>
 <string name="button_upload">upload</string>
-<string name="edit_title">Title</string>
-<string name="edit_tag">Tag</string>
+<string name="edit_title"> タイトルを入力してください。</string>
+<string name="edit_tag">タグを入力してください。</string>
+<string name="text_title">title</string>
+<string name="text_tag">tag</string>
+<string name="spinner_album">保存するアルバム</string>
 </resources>

File src/org/homelinux/sheephead/androizou/MainAndroizou.java

View file
  • Ignore whitespace
 
 public class MainAndroizou extends Activity {
     private String strpass;
-	private String strid;
+    private String strid;
 
-	
-	@Override
-	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
-//		super.onActivityResult(requestCode, resultCode, data);
-		if (resultCode == RESULT_OK) {
-			SetIDAndPass(false);
-		}
-	}
+    @Override
+    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+        //		super.onActivityResult(requestCode, resultCode, data);
+        if (resultCode == RESULT_OK) {
+            SetIDAndPass(false);
+        }
+    }
 
-    
-    
     @Override    
     public boolean onCreateOptionsMenu(Menu menu){
         super.onCreateOptionsMenu(menu);
         menu.add(0,0,0,"upload").setIcon(android.R.drawable.ic_menu_upload);
         menu.add(0,1,0,"login").setIcon(android.R.drawable.ic_menu_agenda);
-        
         return true;
-        
     }
-    
+
     @Override
-public boolean onMenuItemSelected(int featureId, MenuItem item) {
+    public boolean onMenuItemSelected(int featureId, MenuItem item) {
         super.onMenuItemSelected(featureId, item);
         switch( item.getItemId()){
         case 0: //R.string.Set_id_pass
             //GoUploadActivity() ;
             GoSetIDAndPassActivity();
             break;
-		}
+        }
         return true;
-	}
-    
+    }
+
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
-        //GoSetIDAndPassActivity();
+        SetIDAndPass(true);
     }
-     
 
-    	/**
-	 * IDとPassを設定する
-	 * @param bCreate
-	 * 初回起動時はtrueを指定
-	 */
-	private void SetIDAndPass( boolean bCreate){
-//		updateButton.setClickable(false);
-//		reloadButton.setClickable(false);
-		// プリファレンスからID/Passを取得
-		SharedPreferences preferences = getSharedPreferences( getString(R.string.preferences_name), MODE_PRIVATE);
-		strid = preferences.getString( getString(R.string.preferences_id), "");
-		strpass = preferences.getString( getString(R.string.preferences_pass), "");
-//		if(!chkid( bCreate)){
-//			return;
-//		}
-//		httpClient = new DefaultHttpClient();
-//		Credentials cred = new UsernamePasswordCredentials( strid, strpass);
-//		httpClient.getCredentialsProvider().setCredentials( new AuthScope("twitter.com", 80), cred);
-//		GetAndWriteHomeTimeLine();
-//		updateButton.setClickable(true);
-//		reloadButton.setClickable(true);
-	}
+    /**
+     * IDとPassを設定する
+     * @param bCreate
+     * 初回起動時はtrueを指定
+     */
+    private void SetIDAndPass( boolean bCreate){
+        // プリファレンスからID/Passを取得
+        SharedPreferences preferences = getSharedPreferences( getString(R.string.preferences_name), MODE_PRIVATE);
+        strid = preferences.getString( getString(R.string.preferences_id), "");
+        strpass = preferences.getString( getString(R.string.preferences_pass), "");
+        		if(!chkid( bCreate)){
+        			return;
+        		}
+    }
+
+    /**
+     * ID/pass が設定されているかを確認
+     * @param bCreate
+     * 初回起動時はtrueを指定
+     * @return
+     * boolean値
+     */
+    private boolean chkid( boolean bCreate){
+
+        if(strid.length() == 0 || strpass.length() == 0){
+            // 初回起動時にid/passが未設定なら、設定画面を呼び出す
+            if(bCreate){
+                GoSetIDAndPassActivity();
+            }
+            return false;
+        }
+        return true;
+    }
     
-	/**
-	 * ID/pass が設定されているかを確認
-	 * @param bCreate
-	 * 初回起動時はtrueを指定
-	 * @return
-	 * boolean値
-	 */
-	private boolean chkid( boolean bCreate){
-		
-		if(strid.length() == 0 || strpass.length() == 0){
-			// 初回起動時にid/passが未設定なら、設定画面を呼び出す
-			if(bCreate){
-				GoSetIDAndPassActivity();
-			}
-			return false;
-		}
-		return true;
+    /**
+     *  Twitter ID/pass を設定するActivityへ移動
+     */
+    private void GoSetIDAndPassActivity(){
+        try{
+            Intent intent = new Intent(MainAndroizou.this, SetID.class);
+            startActivityForResult(intent, 0);
+        } catch( ActivityNotFoundException e){
+            Toast.makeText( MainAndroizou.this, "起動先のActivityが見つかりません", Toast.LENGTH_LONG).show();
+        }
+    }
 
-	}
-	/**
-	 *  Twitter ID/pass を設定するActivityへ移動
-	 */
-	private void GoSetIDAndPassActivity(){
-		try{
-			Intent intent = new Intent(MainAndroizou.this, SetID.class);
-			startActivityForResult(intent, 0);
-		} catch( ActivityNotFoundException e){
-			Toast.makeText( MainAndroizou.this, "起動先のActivityが見つかりません", Toast.LENGTH_LONG).show();
-		}
-	}
-
-	private void GoUploadActivity(){
-		try{
-		    Intent intent = new Intent(MainAndroizou.this, Upload.class);
-			startActivityForResult(intent, 0);
-		} catch( ActivityNotFoundException e){
-			Toast.makeText( MainAndroizou.this, "起動先のActivityが見つかりません", Toast.LENGTH_LONG).show();
-		}
-	}
+    private void GoUploadActivity(){
+        try{
+            Intent intent = new Intent(MainAndroizou.this, Upload.class);
+            startActivityForResult(intent, 0);
+        } catch( ActivityNotFoundException e){
+            Toast.makeText( MainAndroizou.this, "起動先のActivityが見つかりません", Toast.LENGTH_LONG).show();
+        }
+    }
 }

File src/org/homelinux/sheephead/androizou/SetID.java

View file
  • Ignore whitespace
 import android.widget.Toast;
 
 public class SetID extends Activity {
-	
+
     public EditText idEdit;
-	public EditText passEdit;
-	public Button saveButton;
-	private String orgid;
-	private String orgpass;
-	private String tempid;
-	private String temppass;
+    public EditText passEdit;
+    public Button saveButton;
+    private String orgid;
+    private String orgpass;
+    private String tempid;
+    private String temppass;
 
-	
+
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.setid);
-        		idEdit = (EditText) findViewById(R.id.user_edit);
-        		passEdit = (EditText) findViewById(R.id.pass_edit);
-        		saveButton = (Button) findViewById(R.id.login_button);
-        		
-        				// プリファレンスからID/Passを取得
-		SharedPreferences preferences = getSharedPreferences( getString(R.string.preferences_name), MODE_PRIVATE);
-		orgid = preferences.getString( getString(R.string.preferences_id), "");
-		orgpass = preferences.getString( getString(R.string.preferences_pass), "");
+        idEdit = (EditText) findViewById(R.id.user_edit);
+        passEdit = (EditText) findViewById(R.id.pass_edit);
+        saveButton = (Button) findViewById(R.id.login_button);
 
-		// 初期値の設定
-		idEdit.setText(orgid);
-		passEdit.setText(orgpass);
-		tempid = "";
-		temppass = "";
-		
-		saveButton.setOnClickListener(new View.OnClickListener() {
-			public void onClick(View v) {
-				// TODO 自動生成されたメソッド・スタブ
-				tempid = idEdit.getEditableText().toString();
-				temppass = passEdit.getEditableText().toString();
-				// tempid == null とか tempid == "" だと引っかからなかったので
-				if( tempid.length() == 0 || temppass.length() == 0){
-					Toast.makeText( SetID.this, "ID / pass の設定がありません", Toast.LENGTH_LONG).show();
-					return;
-				}
-				// id/pass が正しいかを確認
-				//if( !chkid()){
-				//	Toast.makeText( SetID.this, "ID / pass を見直してください", Toast.LENGTH_LONG).show();
-				//	return;
-				//}
-				// 新しい ID/pass を設定して終了
-				SharedPreferences preferences = getSharedPreferences( getString(R.string.preferences_name), MODE_PRIVATE);
-				SharedPreferences.Editor editor = preferences.edit();
-				editor.putString( getString(R.string.preferences_id), tempid);
-				editor.putString( getString(R.string.preferences_pass), temppass);
-				editor.commit();
-				setResult(RESULT_OK);
-				finish();
-			}
-		});
-		
-				
-				
-				
-				
-        		
+        // プリファレンスからID/Passを取得
+        SharedPreferences preferences = getSharedPreferences( getString(R.string.preferences_name), MODE_PRIVATE);
+        orgid = preferences.getString( getString(R.string.preferences_id), "");
+        orgpass = preferences.getString( getString(R.string.preferences_pass), "");
+
+        // 初期値の設定
+        idEdit.setText(orgid);
+        passEdit.setText(orgpass);
+        tempid = "";
+        temppass = "";
+
+        saveButton.setOnClickListener(new View.OnClickListener() {
+            public void onClick(View v) {
+                // TODO 自動生成されたメソッド・スタブ
+                tempid = idEdit.getEditableText().toString();
+                temppass = passEdit.getEditableText().toString();
+                // tempid == null とか tempid == "" だと引っかからなかったので
+                if( tempid.length() == 0 || temppass.length() == 0){
+                    Toast.makeText( SetID.this, "ID / pass の設定がありません", Toast.LENGTH_LONG).show();
+                    return;
+                }
+                // id/pass が正しいかを確認
+                //if( !chkid()){
+                //	Toast.makeText( SetID.this, "ID / pass を見直してください", Toast.LENGTH_LONG).show();
+                //	return;
+                //}
+                // 新しい ID/pass を設定して終了
+                SharedPreferences preferences = getSharedPreferences( getString(R.string.preferences_name), MODE_PRIVATE);
+                SharedPreferences.Editor editor = preferences.edit();
+                editor.putString( getString(R.string.preferences_id), tempid);
+                editor.putString( getString(R.string.preferences_pass), temppass);
+                editor.commit();
+                setResult(RESULT_OK);
+                finish();
+            }
+        });
+
     }
     @Override
-     public boolean onCreateOptionsMenu(Menu menu){
+    public boolean onCreateOptionsMenu(Menu menu){
         super.onCreateOptionsMenu(menu);
         menu.add(0,0,0,"upload").setIcon(android.R.drawable.ic_menu_upload);
         menu.add(0,1,0,"login").setIcon(android.R.drawable.ic_menu_agenda);
-        
+
         return true;
-     }   
+    }   
 }

File src/org/homelinux/sheephead/androizou/Upload.java

View file
  • Ignore whitespace
 import android.app.Activity;
 import android.content.Intent;
 import android.database.Cursor;
-//import android.net.Credentials;
 import android.net.Uri;
 import android.os.Bundle;
 import android.util.Log;
-
-
-import org.apache.http.auth.Credentials;
-
-
-
-
+import android.widget.Button;
+import android.widget.EditText;
 
 public class Upload extends Activity {
-   private static final String TAG = "Logact";
-   private String filepath;
-    
-    
+    private static final String TAG = "Logact";
+    private String filepath;
+    public EditText titleEdit;
+    public EditText tagEdit;
+    public Button uploadButton;
+
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.upload);
-      
-            Uri uri =  this.getIntent().getParcelableExtra(Intent.EXTRA_STREAM);
-            //    Log.d(TAG,uri.toString());
-            Cursor csr = this.managedQuery(uri, null, null, null, null);
-            //Log.i(TAG,csr.getCount());
-            csr.moveToFirst();
-            for (int k = 0;k < csr.getCount(); k++){
-                filepath = csr.getString(csr.getColumnIndexOrThrow("_data"));
-                Log.d(TAG,"data=" + csr.getString(csr.getColumnIndexOrThrow("_data")));
-                csr.moveToNext();
-            }
-               
-       DefaultHttpClient client = new DefaultHttpClient();
-    // 送り先 先は先で適当にPHPで処理しておく
-           
-       //HttpPost post = new HttpPost("http://api.photozou.jp/rest/photo_album");
-       HttpPost post = new HttpPost("http://api.photozou.jp/rest/photo_add"); 
-      
+        titleEdit = (EditText) findViewById(R.id.user_edit);
+        tagEdit = (EditText) findViewById(R.id.pass_edit);
+        uploadButton = (Button) findViewById(R.id.login_button);
 
-       URI posturi = post.getURI();
+
+        Uri uri =  this.getIntent().getParcelableExtra(Intent.EXTRA_STREAM);
+        Cursor csr = this.managedQuery(uri, null, null, null, null);
+        csr.moveToFirst();
+        for (int k = 0;k < csr.getCount(); k++){
+            filepath = csr.getString(csr.getColumnIndexOrThrow("_data"));
+            Log.d(TAG,"data=" + csr.getString(csr.getColumnIndexOrThrow("_data")));
+            csr.moveToNext();
+        }
+
+
+
+
+        DefaultHttpClient client = new DefaultHttpClient();
        
-       client.getCredentialsProvider().setCredentials(
-    		   new AuthScope(posturi.getHost(), posturi.getPort()),
-    		   new UsernamePasswordCredentials("mail","pass"));
-    
-       MultipartEntity entity = new MultipartEntity();
-       post.setEntity(entity);
-       //↓送りたいファイルのセット
-       FileBody fileBody = new FileBody(new File(filepath),"image/jpeg");
-       entity.addPart("photo", fileBody);
-       try {
-    	   entity.addPart("album_id", new StringBody("134703"));
-       } catch (UnsupportedEncodingException e1) {
-    	   // 自動生成された catch ブロック
-    	   e1.printStackTrace();
-       }
-		
-        
-     //送信
-       try {
-           HttpResponse res = client.execute(post);
-           String strres = EntityUtils.toString(res.getEntity());
-           Log.d(TAG,strres);
-       } catch (ClientProtocolException e) {
-           Log.d(TAG,"post Protocol error");
-       } catch (IOException e) {
-    	   
 
-           Log.d(TAG,"io error");
-       } 
-        
-//        	private void SetIDAndPass( boolean bCreate){
-//		updateButton.setClickable(false);
-//		reloadButton.setClickable(false);
-		// プリファレンスからID/Passを取得
-//		SharedPreferences preferences = getSharedPreferences( getString(R.string.preferences_name), MODE_PRIVATE);
-//		strid = preferences.getString( getString(R.string.preferences_id), "");
-//		strpass = preferences.getString( getString(R.string.preferences_pass), "");
-//		if(!chkid( bCreate)){
-//			return;
-//		}
-//		httpClient = new DefaultHttpClient();
-//		Credentials cred = new UsernamePasswordCredentials( strid, strpass);
-//		httpClient.getCredentialsProvider().setCredentials( new AuthScope("twitter.com", 80), cred);
-//		GetAndWriteHomeTimeLine();
-//		updateButton.setClickable(true);
-//		reloadButton.setClickable(true);
-//	}
+        //HttpPost post = new HttpPost("http://api.photozou.jp/rest/photo_album");
+        HttpPost post = new HttpPost("http://api.photozou.jp/rest/photo_add"); 
+
+        URI posturi = post.getURI();
+        client.getCredentialsProvider().setCredentials(
+                new AuthScope(posturi.getHost(), posturi.getPort()),
+                new UsernamePasswordCredentials("mail","pass"));
+
+        MultipartEntity entity = new MultipartEntity();
+        post.setEntity(entity);
+        //↓送りたいファイルのセット
+        FileBody fileBody = new FileBody(new File(filepath),"image/jpeg");
+        entity.addPart("photo", fileBody);
+        try {
+            entity.addPart("album_id", new StringBody("134703"));
+        } catch (UnsupportedEncodingException e1) {
+            // 自動生成された catch ブロック
+            e1.printStackTrace();
+        }
+
+        //送信
+        try {
+            HttpResponse res = client.execute(post);
+            String strres = EntityUtils.toString(res.getEntity());
+            Log.d(TAG,strres);
+        } catch (ClientProtocolException e) {
+            Log.d(TAG,"post Protocol error");
+        } catch (IOException e) {
+
+
+            Log.d(TAG,"io error");
+        } 
+
+        //        	private void SetIDAndPass( boolean bCreate){
+        //		updateButton.setClickable(false);
+        //		reloadButton.setClickable(false);
+        // プリファレンスからID/Passを取得
+        //		SharedPreferences preferences = getSharedPreferences( getString(R.string.preferences_name), MODE_PRIVATE);
+        //		strid = preferences.getString( getString(R.string.preferences_id), "");
+        //		strpass = preferences.getString( getString(R.string.preferences_pass), "");
+        //		if(!chkid( bCreate)){
+        //			return;
+        //		}
+        //		httpClient = new DefaultHttpClient();
+        //		Credentials cred = new UsernamePasswordCredentials( strid, strpass);
+        //		httpClient.getCredentialsProvider().setCredentials( new AuthScope("twitter.com", 80), cred);
+        //		GetAndWriteHomeTimeLine();
+        //		updateButton.setClickable(true);
+        //		reloadButton.setClickable(true);
+        //	}
 
     }
 }