[Android Themes] vanessaem:
No, these are extra functions I'm adding. The wallpaper.java looks like the following. I'm not sure how I would go about replacing functions:

package com.vanessaem.FlowIcons;

import com.vanessaem.FlowIcons.R;

import android.app.Activity;
import android.content.res.Resources;
import android.graphics.BitmapFactory;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.AsyncTask;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.Gallery;
import android.widget.ImageView;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import com.actionbarsherlock.app.SherlockFragmentActivity;

[MENTION=5448622]Suppress[/MENTION]Warnings("deprecation")
public class Wallpaper extends SherlockFragmentActivity implements AdapterView.OnItemSelectedListener,
OnClickListener {

private Gallery mGallery;
private ImageView mImageView;
private boolean mIsWallpaperSet;

private Bitmap mBitmap;

private ArrayList<Integer> mThumbs;
private ArrayList<Integer> mImages;
private WallpaperLoader mLoader;

[MENTION=439709]override[/MENTION]
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
requestWindowFeature(Window.FEATURE_NO_TITLE);

findWallpapers();

setContentView(R.layout.wallpaper_chooser);

mGallery = (Gallery) findViewById(R.id.gallery);
mGallery.setAdapter(new ImageAdapter(this));
mGallery.setOnItemSelectedListener(this);
mGallery.setCallbackDuringFling(false);

findViewById(R.id.set).setOnClickListener(this);

mImageView = (ImageView) findViewById(R.id.wallpaper);
}

private void findWallpapers() {
mThumbs = new ArrayList<Integer>(24);
mImages = new ArrayList<Integer>(24);

final Resources resources = getResources();
final String packageName = getApplication().getPackageName();

addWallpapers(resources, packageName, R.array.wallpapers);
addWallpapers(resources, packageName, R.array.extra_wallpapers);
}

private void addWallpapers(Resources resources, String packageName, int list) {
final String[] extras = resources.getStringArray(list);
for (String extra : extras) {
int res = resources.getIdentifier(extra, "drawable", packageName);
if (res != 0) {
final int thumbRes = resources.getIdentifier(extra + "_small",
"drawable", packageName);

if (thumbRes != 0) {
mThumbs.add(thumbRes);
mImages.add(res);
}
}
}
}

[MENTION=439709]override[/MENTION]
protected void onResume() {
super.onResume();
mIsWallpaperSet = false;
}

[MENTION=439709]override[/MENTION]
protected void onDestroy() {
super.onDestroy();

if (mLoader != null && mLoader.getStatus() != WallpaperLoader.Status.FINISHED) {
mLoader.cancel(true);
mLoader = null;
}
}

public void onItemSelected(AdapterView parent, View v, int position, long id) {
if (mLoader != null && mLoader.getStatus() != WallpaperLoader.Status.FINISHED) {
mLoader.cancel();
}
mLoader = (WallpaperLoader) new WallpaperLoader().execute(position);
}

private void selectWallpaper(int position) {
if (mIsWallpaperSet) {
return;
}

mIsWallpaperSet = true;
try {
InputStream stream = getResources().openRawResource(mImages.get(position));
setWallpaper(stream);
setResult(RESULT_OK);
finish();
} catch (IOException e) {
Log.e("Template", "Failed to set wallpaper: " + e);
}
}

public void onNothingSelected(AdapterView parent) {
}

private class ImageAdapter extends BaseAdapter {
private LayoutInflater mLayoutInflater;

ImageAdapter(Wallpaper context) {
mLayoutInflater = context.getLayoutInflater();
}

public int getCount() {
return mThumbs.size();
}

public Object getItem(int position) {
return position;
}

public long getItemId(int position) {
return position;
}

public View getView(int position, View convertView, ViewGroup parent) {
ImageView image;

if (convertView == null) {
image = (ImageView) mLayoutInflater.inflate(R.layout.wallpaper_item, parent, false);
} else {
image = (ImageView) convertView;
}

int thumbRes = mThumbs.get(position);
image.setImageResource(thumbRes);
Drawable thumbDrawable = image.getDrawable();
if (thumbDrawable != null) {
thumbDrawable.setDither(true);
} else {
Log.e("Template", String.format(
"Error decoding thumbnail resId=%d for wallpaper #%d",
thumbRes, position));
}
return image;
}
}

public void onClick(View v) {
selectWallpaper(mGallery.getSelectedItemPosition());
}

class WallpaperLoader extends AsyncTask<Integer, Void, Bitmap> {
BitmapFactory.Options mOptions;

WallpaperLoader() {
mOptions = new BitmapFactory.Options();
mOptions.inDither = false;
mOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;
}

protected Bitmap doInBackground(Integer... params) {
if (isCancelled()) return null;
try {
return BitmapFactory.decodeResource(getResources(),
mImages.get(params[0]), mOptions);
} catch (OutOfMemoryError e) {
return null;
}
}

[MENTION=439709]override[/MENTION]
protected void onPostExecute(Bitmap b) {
if (b == null) return;

if (!isCancelled() && !mOptions.mCancel) {

if (mBitmap != null) {
mBitmap.recycle();
}

final ImageView view = mImageView;
view.setImageBitmap(b);

mBitmap = b;

final Drawable drawable = view.getDrawable();
drawable.setFilterBitmap(true);
drawable.setDither(true);

view.postInvalidate();

mLoader = null;
} else {
b.recycle();
}
}

void cancel() {
mOptions.requestCancelDecode();
super.cancel(true);
}
}
}

I could've sworn one of the templates you used included extra buttons. So do you think it would work to make an extra fragments folder and include those functions?

Here may be some solutions to that error message.

http://stackoverflow.com/questions/...ik-format-failed-with-error-1-on-external-jar

http://stackoverflow.com/questions/...lvik-format-failed-with-error-1-exporting-apk

http://www.bimbima.com/health/post/...ion-to-dalvik-format-failed-with-error-1.aspx