mirror of
				https://github.com/nerzhul/ownCloud-SMS-App.git
				synced 2025-10-30 18:07:51 +00:00 
			
		
		
		
	Rename RestoreSMSAccountList to RestoreSMS_AccountList and add RestoreSMS_ContactList basic class
This commit is contained in:
		
							parent
							
								
									fc818ac6a3
								
							
						
					
					
						commit
						1606568e79
					
				| @ -107,7 +107,7 @@ | |||||||
|             android:label="@string/title_activity_login" > |             android:label="@string/title_activity_login" > | ||||||
|         </activity> |         </activity> | ||||||
|         <activity |         <activity | ||||||
|             android:name=".activities.RestoreSMSAccountListActivity" |             android:name=".activities.RestoreSMS_AccountListActivity" | ||||||
|             android:label="@string/title_activity_select_account" > |             android:label="@string/title_activity_select_account" > | ||||||
|         </activity> |         </activity> | ||||||
|         <activity |         <activity | ||||||
| @ -123,10 +123,16 @@ | |||||||
|                 <category android:name="android.intent.category.LAUNCHER" /> |                 <category android:name="android.intent.category.LAUNCHER" /> | ||||||
|             </intent-filter> |             </intent-filter> | ||||||
|         </activity> |         </activity> | ||||||
|         <!--<activity |         <!-- | ||||||
|  |         <activity | ||||||
|             android:name=".MainActivity2" |             android:name=".MainActivity2" | ||||||
|             android:label="@string/title_activity_main_activity2" > |             android:label="@string/title_activity_main_activity2" > | ||||||
|         </activity>--> |         </activity> | ||||||
|  |         --> | ||||||
|  |         <activity | ||||||
|  |             android:name=".activities.RestoreSMS_ContactListActivity" | ||||||
|  |             android:label="@string/title_activity_restore_sms__contact_list" > | ||||||
|  |         </activity> | ||||||
|     </application> |     </application> | ||||||
| 
 | 
 | ||||||
| </manifest> | </manifest> | ||||||
|  | |||||||
| @ -102,7 +102,6 @@ | |||||||
|     <string name="pref_sync_gprs">Synchronize in 2.5G (GPRS)</string> |     <string name="pref_sync_gprs">Synchronize in 2.5G (GPRS)</string> | ||||||
|     <string name="pref_sync_2g">Synchronize in 2G</string> |     <string name="pref_sync_2g">Synchronize in 2G</string> | ||||||
|     <string name="pref_sync_others">Synchronize in other modes</string> |     <string name="pref_sync_others">Synchronize in other modes</string> | ||||||
| 
 |  | ||||||
|     <string name="title_activity_login">Sign in</string> |     <string name="title_activity_login">Sign in</string> | ||||||
| 
 | 
 | ||||||
|     <!-- Login --> |     <!-- Login --> | ||||||
| @ -171,5 +170,7 @@ Contributors and issue\'s reporters</string> | |||||||
|     <string name="title_section2">Section 2</string> |     <string name="title_section2">Section 2</string> | ||||||
|     <string name="title_section3">Section 3</string> |     <string name="title_section3">Section 3</string> | ||||||
|     <string name="title_activity_main_activity2">MainActivity2</string> |     <string name="title_activity_main_activity2">MainActivity2</string> | ||||||
|  |     <string name="title_activity_restore_sms__contact_list">RestoreSMS_ContactListActivity</string> | ||||||
|  |     <string name="hello_world">Hello world!</string> | ||||||
| 
 | 
 | ||||||
| </resources> | </resources> | ||||||
|  | |||||||
| @ -182,7 +182,7 @@ public class MainActivity extends Activity { | |||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	public void selectAccountForRestauration(final View view) { | 	public void selectAccountForRestauration(final View view) { | ||||||
| 		startActivity(new Intent(this, RestoreSMSAccountListActivity.class)); | 		startActivity(new Intent(this, RestoreSMS_AccountListActivity.class)); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	public void openGooglePlayStore(final View view) { | 	public void openGooglePlayStore(final View view) { | ||||||
|  | |||||||
| @ -6,12 +6,10 @@ import android.accounts.Account; | |||||||
| import android.accounts.AccountManager; | import android.accounts.AccountManager; | ||||||
| import android.app.ListActivity; | import android.app.ListActivity; | ||||||
| import android.os.Bundle; | import android.os.Bundle; | ||||||
| import android.util.Log; |  | ||||||
| import android.view.View; |  | ||||||
| import fr.nrz.androidlib.adapters.AndroidAccountAdapter; | import fr.nrz.androidlib.adapters.AndroidAccountAdapter; | ||||||
| import fr.unix_experience.owncloud_sms.R; | import fr.unix_experience.owncloud_sms.R; | ||||||
| 
 | 
 | ||||||
| public class RestoreSMSAccountListActivity extends ListActivity { | public class RestoreSMS_AccountListActivity extends ListActivity { | ||||||
| 	ArrayList<Account> listItems = new ArrayList<Account>(); | 	ArrayList<Account> listItems = new ArrayList<Account>(); | ||||||
| 	AndroidAccountAdapter adapter; | 	AndroidAccountAdapter adapter; | ||||||
| 
 | 
 | ||||||
| @ -30,7 +28,7 @@ public class RestoreSMSAccountListActivity extends ListActivity { | |||||||
| 				android.R.layout.simple_list_item_1, | 				android.R.layout.simple_list_item_1, | ||||||
| 				listItems, | 				listItems, | ||||||
| 				R.layout.account_list_item, | 				R.layout.account_list_item, | ||||||
| 				R.id.accountname); | 				R.id.accountname, RestoreSMS_ContactListActivity.class); | ||||||
| 		setListAdapter(adapter); | 		setListAdapter(adapter); | ||||||
| 
 | 
 | ||||||
| 		final Account[] myAccountList = _accountMgr.getAccountsByType(_accountType); | 		final Account[] myAccountList = _accountMgr.getAccountsByType(_accountType); | ||||||
| @ -40,10 +38,5 @@ public class RestoreSMSAccountListActivity extends ListActivity { | |||||||
| 
 | 
 | ||||||
| 		adapter.notifyDataSetChanged(); | 		adapter.notifyDataSetChanged(); | ||||||
| 	} | 	} | ||||||
| 
 |  | ||||||
| 	// User select an account |  | ||||||
| 	public void accountSelected(final View view) { |  | ||||||
| 		Log.d("BURP","accountSelected !"); |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -0,0 +1,13 @@ | |||||||
|  | package fr.unix_experience.owncloud_sms.activities; | ||||||
|  | 
 | ||||||
|  | import android.app.ListActivity; | ||||||
|  | import android.os.Bundle; | ||||||
|  | 
 | ||||||
|  | public class RestoreSMS_ContactListActivity extends ListActivity { | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	protected void onCreate(final Bundle savedInstanceState) { | ||||||
|  | 		super.onCreate(savedInstanceState); | ||||||
|  | 
 | ||||||
|  | 	} | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user