Commits

myuhe  committed 6dc19bb

intent-filiter追加

  • Participants
  • Parent commits 605dcec

Comments (0)

Files changed (19)

File AndroidManifest.xml

 
     
 <activity android:name="SetID"></activity>
+
+
+
+<activity android:name="login">
+<intent-filter>
+	<category android:name="android.intent.category.ALTERNATIVE"></category>
+	<category android:name="android.intent.category.DEFAULT"></category>
+	<action android:name="android.intent.action.SEND"></action>
+	<data android:mimeType="image/jpeg"></data>
+</intent-filter>
+</activity>
 </application>
 
 

File bin/Androizou.apk

Binary file removed.

File bin/androizou.apk

Binary file added.

File bin/classes.dex

Binary file modified.

File bin/resources.ap_

Binary file modified.

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

Binary file modified.

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

Binary file modified.

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

Binary file modified.

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

Binary file modified.

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

Binary file modified.

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

Binary file added.

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

         public static final int icon=0x7f020000;
     }
     public static final class id {
-        public static final int widget28=0x7f050002;
-        public static final int widget29=0x7f050000;
-        public static final int widget30=0x7f050003;
-        public static final int widget31=0x7f050006;
-        public static final int widget32=0x7f050004;
-        public static final int widget33=0x7f050007;
-        public static final int widget34=0x7f050005;
-        public static final int widget35=0x7f050008;
-        public static final int widget36=0x7f050001;
+        public static final int Button01=0x7f050002;
+        public static final int EditText01=0x7f050000;
+        public static final int EditText02=0x7f050001;
+        public static final int login_button=0x7f05000c;
+        public static final int pass_edit=0x7f05000e;
+        public static final int user_edit=0x7f05000d;
+        public static final int widget28=0x7f050005;
+        public static final int widget29=0x7f050003;
+        public static final int widget30=0x7f050006;
+        public static final int widget31=0x7f050009;
+        public static final int widget32=0x7f050007;
+        public static final int widget33=0x7f05000a;
+        public static final int widget34=0x7f050008;
+        public static final int widget35=0x7f05000b;
+        public static final int widget36=0x7f050004;
     }
     public static final class layout {
-        public static final int main=0x7f030000;
-        public static final int setid=0x7f030001;
+        public static final int login=0x7f030000;
+        public static final int main=0x7f030001;
+        public static final int setid=0x7f030002;
     }
     public static final class string {
         public static final int app_name=0x7f040001;

File res/layout/login.xml

+<?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">
+
+<EditText android:text="@+id/EditText01" android:id="@+id/EditText01" android:layout_width="wrap_content" android:layout_height="wrap_content"></EditText>
+
+
+
+<EditText android:text="@+id/EditText02" android:id="@+id/EditText02" android:layout_width="wrap_content" android:layout_height="wrap_content"></EditText><Button android:text="@+id/Button01" android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
+</LinearLayout>

File res/layout/setid.xml

 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">
+android:text="@string/button_name" android:id="@+id/login_button">
 </Button>
 <TableLayout
 android:id="@+id/widget28"
 >
 </TextView>
 <EditText
-android:id="@+id/widget34"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 android:textSize="18sp"
->
+android:id="@+id/user_edit">
 </EditText>
 </TableRow>
 <TableRow
 >
 </TextView>
 <EditText
-android:id="@+id/widget35"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 android:textSize="18sp"
 android:password="true"
->
+android:id="@+id/pass_edit">
 </EditText>
 </TableRow>
 </TableLayout>

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

+package org.homelinux.sheephead.androizou;
+
+import sheephead.homelinux.org.androizou.R;
+import android.app.Activity;
+import android.content.ActivityNotFoundException;
+import android.content.Intent;
+import android.os.Bundle;
+import android.widget.Toast;
+
+public class MainAndroizou extends Activity {
+    /** Called when the activity is first created. */
+    @Override
+    public void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.main);
+        GoSetTwitterIDAndPassActivity();
+    }
+    	/**
+	 * TwitterのIDとPassを設定する
+	 * @param bCreate
+	 * 初回起動時はtrueを指定
+	 */
+//	private void SetTwitterIDAndPass( 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);
+//	}
+    
+	/**
+	 * Twitter ID/pass が設定されているかを確認
+	 * @param bCreate
+	 * 初回起動時はtrueを指定
+	 * @return
+	 * boolean値
+	 */
+//	private boolean chkid( boolean bCreate){
+		
+//		if(strid.length() == 0 || strpass.length() == 0){
+			// 初回起動時にid/passが未設定なら、設定画面を呼び出す
+//			if(bCreate){
+//				GoSetTwitterIDAndPassActivity();
+//			}
+//			return false;
+//		}
+//		return true;
+//				return bCreate;
+//	}
+	/**
+	 *  Twitter ID/pass を設定するActivityへ移動
+	 */
+	private void GoSetTwitterIDAndPassActivity(){
+		try{
+			Intent intent = new Intent(MainAndroizou.this, SetID.class);
+			startActivityForResult(intent, 0);
+		} catch( ActivityNotFoundException e){
+			Toast.makeText( MainAndroizou.this, "起動先のActivityが見つかりません", Toast.LENGTH_LONG).show();
+		}
+	}
+}

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

+package org.homelinux.sheephead.androizou;
+
+import sheephead.homelinux.org.androizou.R;
+import android.app.Activity;
+import android.os.Bundle;
+import android.widget.Button;
+import android.widget.EditText;
+
+public class SetID extends Activity {
+	
+	public EditText idEdit;
+	public EditText passEdit;
+	public Button saveButton;
+	
+    /** Called when the activity is first created. */
+    @Override
+    public void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.main);
+        		idEdit = (EditText) findViewById(R.id.user_edit);
+        		passEdit = (EditText) findViewById(R.id.pass_edit);
+        		saveButton = (Button) findViewById(R.id.login_button);
+    }
+}

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

+package org.homelinux.sheephead.androizou;
+
+import android.app.Activity;
+
+public class login extends Activity {
+
+}

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

-package sheephead.homelinux.org.androizou;
-
-import android.app.Activity;
-import android.content.ActivityNotFoundException;
-import android.content.Intent;
-import android.os.Bundle;
-import android.widget.Toast;
-
-public class MainAndroizou extends Activity {
-    /** Called when the activity is first created. */
-    @Override
-    public void onCreate(Bundle savedInstanceState) {
-        super.onCreate(savedInstanceState);
-        setContentView(R.layout.main);
-        GoSetTwitterIDAndPassActivity();
-    }
-    	/**
-	 * TwitterのIDとPassを設定する
-	 * @param bCreate
-	 * 初回起動時はtrueを指定
-	 */
-//	private void SetTwitterIDAndPass( 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);
-//	}
-    
-	/**
-	 * Twitter ID/pass が設定されているかを確認
-	 * @param bCreate
-	 * 初回起動時はtrueを指定
-	 * @return
-	 * boolean値
-	 */
-//	private boolean chkid( boolean bCreate){
-		
-//		if(strid.length() == 0 || strpass.length() == 0){
-			// 初回起動時にid/passが未設定なら、設定画面を呼び出す
-//			if(bCreate){
-//				GoSetTwitterIDAndPassActivity();
-//			}
-//			return false;
-//		}
-//		return true;
-//				return bCreate;
-//	}
-	/**
-	 *  Twitter ID/pass を設定するActivityへ移動
-	 */
-	private void GoSetTwitterIDAndPassActivity(){
-		try{
-			Intent intent = new Intent(MainAndroizou.this, SetID.class);
-			startActivityForResult(intent, 0);
-		} catch( ActivityNotFoundException e){
-			Toast.makeText( MainAndroizou.this, "起動先のActivityが見つかりません", Toast.LENGTH_LONG).show();
-		}
-	}
-}

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

-package sheephead.homelinux.org.androizou;
-
-import android.app.Activity;
-import android.os.Bundle;
-
-public class SetID extends Activity {
-    /** Called when the activity is first created. */
-    @Override
-    public void onCreate(Bundle savedInstanceState) {
-        super.onCreate(savedInstanceState);
-        setContentView(R.layout.main);
-    }
-}