<data android:scheme="http" android:host="www.google.co.uk" android:path="/m/products/scan" />
</intent-filter>
</activity>
- <activity android:name="PreferencesActivity"
+ <activity android:name=".PreferencesActivity"
android:label="@string/preferences_name">
</activity>
- <activity android:name="EncodeActivity">
+ <activity android:name=".encode.EncodeActivity">
<intent-filter>
<action android:name="com.google.zxing.client.android.ENCODE"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
- <activity android:name="SearchBookContentsActivity"
+ <activity android:name=".book.SearchBookContentsActivity"
android:label="@string/sbc_name"
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden">
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
- <activity android:name="ShareActivity"
+ <activity android:name=".share.ShareActivity"
android:label="@string/share_name"
android:screenOrientation="user">
<intent-filter>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
- <activity android:name="BookmarkPickerActivity"
+ <activity android:name=".share.BookmarkPickerActivity"
android:label="@string/bookmark_picker_name">
<intent-filter>
<action android:name="android.intent.action.PICK"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
- <activity android:name="HelpActivity"
+ <activity android:name=".HelpActivity"
android:screenOrientation="user">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<arg value="-libraryjars ${libraryjars.path}"/>
<arg value="-keep class com.google.zxing.client.android.*Activity"/>
<arg value="-keep class com.google.zxing.client.android.ViewfinderView { public * ; }"/>
- <arg value="-keep class com.google.zxing.client.android.SearchBookContents* { public * ; }"/>
+ <arg value="-keep class com.google.zxing.client.android.book.SearchBookContents* { public * ; }"/>
<arg value="-target 5"/>
<arg value="-optimizationpasses 7"/>
<arg value="-dontshrink"/>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.google.zxing.client.android.SearchBookContentsListItem
+<com.google.zxing.client.android.book.SearchBookContentsListItem
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:background="@color/sbc_list_item"
android:padding="8px">
-
<TextView android:id="@+id/page_number_view"
android:layout_width="75px"
android:layout_height="wrap_content"
android:textSize="16sp"
android:typeface="serif"/>
-</com.google.zxing.client.android.SearchBookContentsListItem>
+</com.google.zxing.client.android.book.SearchBookContentsListItem>
package com.google.zxing.client.android.book;
+import com.google.zxing.client.android.R;
+
import android.content.Context;
import android.graphics.Typeface;
-import android.text.SpannableString;
import android.text.Spannable;
+import android.text.SpannableString;
import android.text.style.StyleSpan;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import android.widget.TextView;
-import com.google.zxing.client.android.R;
/**
* A list item which displays the page number and snippet of this search result.
*
* @author dswitkin@google.com (Daniel Switkin)
*/
-final class SearchBookContentsListItem extends LinearLayout {
+public final class SearchBookContentsListItem extends LinearLayout {
private TextView pageNumberView;
private TextView snippetView;
package com.google.zxing.client.android.encode;
+import com.google.zxing.client.android.Intents;
+import com.google.zxing.client.android.R;
+
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.view.ViewTreeObserver.OnGlobalLayoutListener;
import android.widget.ImageView;
import android.widget.TextView;
-import com.google.zxing.client.android.R;
-import com.google.zxing.client.android.Intents;
/**
* This class encodes data from an Intent into a QR code, and then displays it full screen so that
*
* @author dswitkin@google.com (Daniel Switkin)
*/
-final class EncodeActivity extends Activity {
+public final class EncodeActivity extends Activity {
private QRCodeEncoder qrCodeEncoder;
private ProgressDialog progressDialog;
private boolean firstLayout;
package com.google.zxing.client.android.share;
+import com.google.zxing.client.android.R;
+
import android.app.ListActivity;
import android.content.Intent;
import android.database.Cursor;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;
-import com.google.zxing.client.android.R;
/**
* This class is only needed because I can't successfully send an ACTION_PICK intent to
*
* @author dswitkin@google.com (Daniel Switkin)
*/
-final class BookmarkPickerActivity extends ListActivity {
+public final class BookmarkPickerActivity extends ListActivity {
private static final String[] BOOKMARK_PROJECTION = {
Browser.BookmarkColumns.TITLE,
Browser.BookmarkColumns.URL