Commits

Anonymous committed 97631b7

add scripts directory

  • Participants
  • Parent commits 1d2f2dc

Comments (0)

Files changed (8)

File android/placeUvote/bin/classes.dex

Binary file modified.

File android/placeUvote/bin/placeUvote.apk

Binary file modified.

File android/placeUvote/bin/resources.ap_

Binary file modified.

File android/placeUvote/res/values/strings.xml

 <?xml version="1.0" encoding="utf-8" standalone="no"?>
 <resources>
     <string name="app_name">placeUvote</string>
-
-	<string name="overview">Overview</string>
-	<string name="all">All</string>
-    
+	<string name="overview">Public polls</string>
+	<string name="all">Contacts polls</string>
+ 	<string name="favorites">Your polls</string>   
     <string name="new_entries">new entries</string>
     <string name="rss_feeds">RSS feeds</string>
     <string name="update">Update</string>
 	<string name="menu_refresh">Refresh</string>
 	<string name="contextmenu_delete">Delete</string>
 	<string name="goto_url">Goto link</string>
-	<string name="favorites">Favorites</string>
 	<string name="never">Never</string>
 	
 	<string name="editfeed_title">Edit feed</string>
 DROP TABLE IF EXISTS voter;
 "</string>
 
-<string name="license">Copyright (c) 2010 Stefan Handschuh (handschuh.stefan@googlemail.com)\n\n
-Translators\n
- - Dutch: Eelko Berkenpies\n
- - Spanish: Sergio Martín
+<string name="license">Copyleft 2011 Ed Crewe (edmundcrewe@gmail.com)\n\n
+Apache 2.0 License http://www.apache.org/licenses/LICENSE-2.0\n\n
+
+NB: Some files that are individually copyright headed are derived from Sparse RSS 
+by handschuh.stefan@googlemail.com and use the following open source license ...
  \n\nPermission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights

File android/placeUvote/src/com/placeuvote/android/MainTabActivity.java

 
 	    tabHost.addTab(tabHost.newTabSpec(TAG_NORMAL).setIndicator(getString(R.string.overview)).setContent(new Intent().setClass(this, PollMain.class)));
 	    
-	    if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean(Strings.SETTINGS_SHOWTABS, false)) {
+	    if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean(Strings.SETTINGS_SHOWTABS, true)) {
 	    	tabHost.addTab(tabHost.newTabSpec(TAG_ALL).setIndicator(getString(R.string.all)).setContent(new Intent(Intent.ACTION_VIEW, FeedData.EntryColumns.CONTENT_URI).putExtra(EntriesListActivity.EXTRA_SHOWFEEDINFO, true)));
 		    tabHost.addTab(tabHost.newTabSpec(TAG_FAVORITE).setIndicator(getString(R.string.favorites), getResources().getDrawable(android.R.drawable.star_big_on)).setContent(new Intent(Intent.ACTION_VIEW, FeedData.EntryColumns.FAVORITES_CONTENT_URI).putExtra(EntriesListActivity.EXTRA_SHOWFEEDINFO, true)));
 		    tabsAdded = true;

File android/placeUvote/src/com/placeuvote/android/PollMain.java

 import com.placeuvote.android.rss.RefreshService;
 import com.placeuvote.android.rss.Strings;
 
+import com.placeuvote.android.R;
+
 public class PollMain extends ListActivity {	
 	
 	private static final int MENU_REFRESH_ID = 2;
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
+        // Get the feed
         this.AddFeeds();
         if (notificationManager == null) {
         	notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
      }
 
 	public void AddFeeds() {
-		String id = "1";
+		String id = "2";
 		String url = "http://www.placeuvote.com/polls.rss";
-		String name = "Public polls";	
+		String name = "Public polls1";	
 		Cursor cursor = getContentResolver().query(FeedData.FeedColumns.CONTENT_URI, new String[] {FeedData.FeedColumns._ID}, new StringBuilder(FeedData.FeedColumns.URL).append(Strings.DB_ARG).toString(), new String[] {url}, null);
 	
-		if (cursor.moveToFirst()) {
-			return;
-		} else {
+		//if (cursor.moveToFirst()) {
+		//	return;
+		//} else {
 			ContentValues values = new ContentValues();
 			
 			if (!url.startsWith(Strings.HTTP) && !url.startsWith(Strings.HTTPS)) {
 				url = Strings.HTTP+url;
 			}
 			values.put(FeedData.FeedColumns.URL, url);
+			values.put(FeedData.FeedColumns.FETCHMODE, 1);
 			values.put(FeedData.FeedColumns.ERROR, (String) null);
 	
 			if (name.trim().length() > 0) {
 				values.put(FeedData.FeedColumns.NAME, name);
 			}
 			getContentResolver().insert(FeedData.FeedColumns.CONTENT_URI, values);
-		}
+		//}
 		cursor.close();
 	}
-    
+
+
 	@Override
 	protected void onResume() {
 		super.onResume();
 		startActivity(intent);
 	}
 
-
-	
-	
 	
 	private Dialog createErrorDialog(int messageId) {
 		AlertDialog.Builder builder = new AlertDialog.Builder(this);
 		builder.setPositiveButton(android.R.string.ok, null);
 		return builder.create();
 	}
+	
+
     
 }

File android/placeUvote/src/com/placeuvote/android/rss/FeedDataContentProvider.java

 public class FeedDataContentProvider extends ContentProvider {
 	public static boolean USE_SDCARD;
 	
-	private static final String FOLDER = Environment.getExternalStorageDirectory()+"/sparserss/";
+	private static final String FOLDER = Environment.getExternalStorageDirectory()+"/placeuvote/";
 	
 	private static final String DATABASE_NAME = "placeuvote.db";
 	

File android/placeUvote/src/com/placeuvote/android/rss/Strings.java

 	
 	public static final String SETTINGS_SHOWTABS = "tabs.show";
 	
-	public static final String ACTION_REFRESHFEEDS = "de.shandschuh.sparserss.REFRESH";
+	public static final String ACTION_REFRESHFEEDS = "com.placeuvote.android.rss.REFRESH";
 	
-	public static final String ACTION_UPDATEWIDGET = "de.shandschuh.sparserss.widget.UPDATE";
+	public static final String ACTION_UPDATEWIDGET = "com.placeuvote.android.rss.widget.UPDATE";
 	
-	public static final String ACTION_RESTART = "de.shandschuh.sparserss.RESTART";
+	public static final String ACTION_RESTART = "com.placeuvote.android.rss.RESTART";
 	
 	public static final String FEEDID = "feedid";