Fixes to make project compile, and greendroid to api level 14

pull/14/head
Tim Su 13 years ago
parent f062260cc9
commit dc057fdf3b

@ -30,6 +30,5 @@
<classpathentry exported="true" kind="lib" path="libs/google-api-services-tasks-v1-1.2.5-beta.jar"/>
<classpathentry kind="lib" path="libs/crittercism_v1_1_3.jar"/>
<classpathentry kind="lib" path="libs/jchronic-0.2.3.jar"/>
<classpathentry kind="lib" path="libs/android-support-v4.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

@ -6,6 +6,7 @@ import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@ -15,8 +16,6 @@ import android.support.v4.view.Menu;
import android.support.v4.view.MenuItem;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
@ -251,7 +250,7 @@ public class TagViewActivity extends TaskListActivity {
private void refreshData(final boolean manual) {
((TextView)taskListView.findViewById(android.R.id.empty)).setText(R.string.DLG_loading);
syncService.synchronizeList(tagData, manual, new ProgressBarSyncResultCallback(this,
syncService.synchronizeList(tagData, manual, new ProgressBarSyncResultCallback(getActivity(),
R.id.progressBar, new Runnable() {
@Override
public void run() {

@ -9,10 +9,11 @@
# Indicates whether an apk should be generated for each density.
split.density=false
android.library.reference.3=../facebook/facebook
android.library.reference.1=../api
android.library.reference.3=../facebook/facebook/
android.library.reference.1=../api/
android.library.reference.2=../actionbarsherlock/library
# Project target.
target=android-14
apk-configurations=
android.library.reference.4=../viewPagerIndicator/library
android.library.reference.5=../greendroid/GreenDroid

@ -641,7 +641,7 @@ public class TaskListActivity extends ListFragment implements OnScrollListener,
if (!Preferences.getBoolean(WelcomeLogin.KEY_SHOWED_WELCOME_LOGIN, false)) {
Preferences.setBoolean(WelcomeLogin.KEY_SHOWED_WELCOME_LOGIN, true);
Intent showWelcomeLogin = new Intent(this, WelcomeWalkthrough.class);
Intent showWelcomeLogin = new Intent(getActivity(), WelcomeWalkthrough.class);
showWelcomeLogin.putExtra(ActFmLoginActivity.SHOW_TOAST, false);
startActivity(showWelcomeLogin);
return;
@ -1178,7 +1178,7 @@ public class TaskListActivity extends ListFragment implements OnScrollListener,
}
protected void performSyncServiceV2Sync(boolean manual) {
syncService.synchronizeActiveTasks(manual, new ProgressBarSyncResultCallback(this,
syncService.synchronizeActiveTasks(manual, new ProgressBarSyncResultCallback(getActivity(),
R.id.progressBar, new Runnable() {
@Override
public void run() {
@ -1241,7 +1241,7 @@ public class TaskListActivity extends ListFragment implements OnScrollListener,
//
}
}
Toast.makeText(TaskListActivity.this, R.string.SyP_progress_toast,
Toast.makeText(getActivity(), R.string.SyP_progress_toast,
Toast.LENGTH_LONG).show();
}
}

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>

@ -11,5 +11,5 @@ android.library=true
# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=android-13
target=android-14
android.library.reference.1=../../actionbarsherlock/library

Loading…
Cancel
Save