Commits

Anonymous committed 12401be

add in arrays

  • Participants
  • Parent commits 2567046

Comments (0)

Files changed (9)

android/log_adb.sh

-sudo ~/packages/android-sdk-linux_86/platform-tools/adb logcat
+echo 'Debug levels are VDIWEF - currently set to E'
+sudo ~/packages/android-sdk-linux_86/platform-tools/adb logcat *E

android/placeUvote/AndroidManifest.xml

 	<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"></uses-permission>
 	<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"></uses-permission>
     <uses-permission android:name="android.permission.INTERNET" />
-
+    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+    <uses-permission android:name="android.permission.VIBRATE" />
+    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
     <application android:icon="@drawable/icon2" android:debuggable="true">
-		<uses-library android:name="com.google.android.maps" />
-        <activity android:name=".RSSReader" android:label="@string/app_name">
+		<uses-library android:name="com.google.android.maps" />       
+  	    <service android:name=".rss.RefreshService"/>
+    	<service android:name=".rss.FetcherService"/>
+    	<provider android:name=".rss.FeedDataContentProvider" android:authorities="com.placeuvote.android.rss.FeedData" />
+        <activity android:name=".MainTabActivity" android:label="@string/app_name" android:launchMode="singleTask">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LAUNCHER" />
             </intent-filter>
         </activity>
+        <activity android:name=".PollMain" android:launchMode="singleTask" />
+        <activity android:name=".RSSOverview" android:launchMode="singleTask" />
+        <activity android:name=".AboutActivity" android:launchMode="singleTask" />
+		<activity android:name=".EntriesListActivity" android:launchMode="singleTask">
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT"/>
+                <data android:mimeType="vnd.android.cursor.dir/vnd.feeddata.entry" />
+            </intent-filter>
+        </activity>
+        <activity android:name=".EntryActivity" android:launchMode="singleTask">
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.DEFAULT"/>
+                <data android:mimeType="vnd.android.cursor.item/vnd.feeddata.entry" />
+            </intent-filter>
+        </activity>
+        <activity android:name=".ApplicationPreferencesActivity"/>
+        <activity android:name=".widget.WidgetConfigActivity">
+		    <intent-filter>
+		        <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
+		    </intent-filter>
+		</activity>
+        <receiver android:name=".widget.SparseRSSAppWidgetProvider" >
+		    <intent-filter>
+		        <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
+		        <action android:name="com.placeuvote.android.widget.UPDATE" />
+		    </intent-filter>
+		    <meta-data android:name="android.appwidget.rss"
+		               android:resource="@xml/widgetinfo" />
+		</receiver>
+		<receiver android:name=".RefreshBroadcastReceiver" >
+		    <intent-filter>
+		        <action android:name="com.placeuvote.android.REFRESH" />
+		    </intent-filter>
+		</receiver>
+		<receiver android:name=".SDMountBroadcastReceiver" >
+		    <intent-filter>
+		        <action android:name="android.intent.action.MEDIA_MOUNTED" />
+		    </intent-filter>
+		    <intent-filter>
+		        <action android:name="com.placeuvote.android.RESTART" />
+		    </intent-filter>
+		</receiver>
+		<receiver android:name=".BootCompletedBroadcastReceiver" >
+		    <intent-filter>
+		        <action android:name="android.intent.action.BOOT_COMPLETED" />
+		    </intent-filter>
+		</receiver>
+
         <activity android:name=".PollDetail" android:label="@string/poll_name">
         </activity>
         <activity android:name=".PollMap" android:label="@string/poll_map">
             </intent-filter>
         </activity>
     </application>
-
+    <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="8"/>
 </manifest> 

android/placeUvote/bin/classes.dex

Binary file modified.

android/placeUvote/bin/placeUvote.apk

Binary file modified.

android/placeUvote/bin/resources.ap_

Binary file modified.

android/placeUvote/res/layout/main.xml

 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:orientation="vertical"
     android:layout_width="fill_parent"
-    android:layout_height="fill_parent"
-    >
+	android:layout_height="fill_parent"
+	android:orientation="vertical"
+	android:id="@+id/main_layout">
+    	<ListView android:id="@android:id/list" android:layout_width="fill_parent"
+    		android:layout_height="wrap_content"
+    		android:layout_gravity="fill"
+    		android:layout_weight="1"
+    		android:drawSelectorOnTop="false" />
+    	<LinearLayout
+    	    android:id="@id/android:empty" android:layout_width="fill_parent"
+			android:layout_height="fill_parent"
+			android:orientation="vertical">
+		<TextView android:layout_width="fill_parent"
+			android:layout_height="wrap_content"
+			android:text="@string/norssfeeds"
+			android:gravity="center" />
+		<Button
+			android:layout_marginTop="30dip"
+		    android:id="@+id/reload_button"
+			android:layout_width="fill_parent"
+			android:layout_height="wrap_content"
+			android:text="@string/button_usesdcard"
+			android:visibility="gone"
+			/>
+			<TextView  
+    android:layout_width="fill_parent" 
+    android:layout_height="wrap_content" 
+    android:text="Android RSSReader"
+    android:id="@+id/feedtitle"
+    />
 <TextView  
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
-    android:text="Android RSSReader"
-    android:id="@+id/feedtitle"
+    android:text=""
+    android:id="@+id/feedpubdate"
     />
-<TextView  
-    android:layout_width="fill_parent" 
-    android:layout_height="wrap_content" 
-    android:text=""
-    android:id="@+id/feedpubdate"
-    />
-<ListView
-	android:layout_width="fill_parent"
-	android:layout_height="fill_parent"
-	android:id="@+id/itemlist"
-	
-	/>    
+<ListView
+	android:layout_width="fill_parent"
+	android:layout_height="fill_parent"
+	android:id="@+id/itemlist"
+	
+	/>  
+		</LinearLayout>
+             <ListView android:id="@android:id/list" android:layout_width="fill_parent"
+    		android:layout_height="wrap_content"
+    		android:layout_gravity="fill"
+    		android:layout_weight="1"
+    		android:drawSelectorOnTop="false" />
+
 </LinearLayout>
+  
+

android/placeUvote/res/values/arrays.xml

+<resources>
+<string-array name="settings_intervalvalues">
+<item>300000</item>
+<item>900000</item>
+<item>1800000</item>
+<item>3600000</item>
+<item>7200000</item>
+<item>21600000</item>
+<item>86400000</item>
+</string-array>
+<string-array name="settings_intervals">
+<item>5 minutes</item>
+<item>15 minutes</item>
+<item>30 minutes</item>
+<item>1 hour</item>
+<item>2 hours</item>
+<item>6 hours</item>
+<item>1 day</item>
+</string-array>
+<string-array name="settings_keeptimevalues">
+<item>1</item>
+<item>2</item>
+<item>4</item>
+<item>7</item>
+<item>14</item>
+<item>30</item>
+</string-array>
+<string-array name="settings_keeptimes">
+<item>1 day</item>
+<item>2 days</item>
+<item>4 days</item>
+<item>1 week</item>
+<item>2 weeks</item>
+<item>1 month</item>
+</string-array>
+</resources>

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="new_entries">new entries</string>
+    <string name="rss_feeds">RSS feeds</string>
+    <string name="update">Update</string>
+    <string name="error">Error</string>
+    <string name="unread">Unread</string>
+    <string name="noentries">No entries</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>
+	<string name="contextmenu_edit">Edit</string>
+	<string name="contextmenu_refresh">Refresh</string>
+	<string name="menu_settings">Settings</string>
+	<string name="contextmenu_markasread">Mark as read</string>
+	<string name="contextmenu_hideread">Hide read entries</string>
+	<string name="contextmenu_showread">Show read entries</string>
+	<string name="menu_allread">Mark all as read</string>
+	<string name="menu_import">Import from OPML</string>
+	<string name="menu_export">Export to OPML</string>
+	<string name="menu_about">About</string>
+    <string name="button_usesdcard">Use SD-card (if present) - this will close the application. Please restart it manually.</string>
+    <string name="norssfeeds">No RSS feeds</string>
+	
+	
+	<string name="settings_category_refresh">Automated refresh</string>
+	<string name="settings_refreshenabled">Enabled</string>
+	<string name="settings_refreshenabled_description">This setting controls the automatic refresh of all feeds</string>
+	<string name="settings_refreshinterval">Refresh interval</string>
+	<string name="settings_refreshinterval_description">Interval between two automated refreshs</string>
+
+	<string name="settings_category_notofications">Notifications</string>
+	<string name="settings_notificationsenabled">Enabled</string>
+	<string name="settings_notificationsenabled_description">Controls the appearance of notifications in case of new feed content</string>
+	<string name="settings_notificationsringtone">Ringtone</string>
+	<string name="settings_notificationsringtone_description">Select a ringtone that will be played on new feed content</string>
+	<string name="settings_notificationsvibrate">Vibrate</string>
+	<string name="settings_notificationsvibrate_description">Controls if there will be vibration on new feed content</string>
+
+	<string name="settings_category_contentpresentation">Content presentation</string>
+	<string name="settings_prioritize">Prioritize unread content</string>
+	<string name="settings_prioritize_description">Show unread feed entries above read entries</string>
+	<string name="settings_keeptime">Time that the entries will be kept</string>
+	<string name="settings_keeptime_description">The entries that are older than the given date will be deleted</string>
+
+	<string name="settings_refreshonopen">Refresh feeds on open</string>
+	<string name="settings_refreshonopen_description">Refreshes all feeds after opening the application</string>
+
+	<string name="settings_hideread">Hide read entries</string>
+	<string name="settings_hideread_description">Hide entries from the widget if they have been read</string>
+	<string name="settings_entrysettings">Entry settings</string>
+	<string name="settings_visiblefeeds">Visible feeds</string>
+	<string name="settings_showtabs">Show tabs</string>
+	<string name="settings_showtabs_description">Additional tabs for favorite and all feed-entries</string>
+
     <string name="poll_map">Poll map</string>
     <string name="show_list">Show list of locations</string>
     <string name="list_name">List of polls</string>
 DROP TABLE IF EXISTS datechoice;
 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
+ \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
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+\n\n
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+\n\n
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+</string>
+<string name="license_intro">This software is distributed under the MIT open source license and its source code is available under http://sparserss.googlecode.com\n</string>
+
 </resources>

android/placeUvote/src/com/placeuvote/android/PUVDatabase.java

  */
 public class PUVDatabase extends SQLiteOpenHelper {
 	/** The name of the database file on the file system */
-    private static final String DATABASE_NAME = "PollChoices";
+    private static final String DATABASE_NAME = "placeuvote.db";
     /** The version of the database that this class understands. */
     private static final int DATABASE_VERSION = 1;
     /** Keep track of context so that we can load SQL from string resources */