/*
 * Copyright (C) 2010 The Android Open Source Project
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package at.kju.datacollector;
import android.content.Context;

public class Constants {

	/**
	 * Account type string.
	 */
	public static String getAccountType(Context ctx) {
		return (String) ctx.getResources().getText(R.string.aam_account_type);
	}

	public static String getAuthTokenType(Context ctx) {
		return (String) ctx.getResources().getText(R.string.aam_account_type);
	}

	public static String getContentAuthority(Context ctx) {
		return (String) ctx.getResources().getText(R.string.aam_account_type);
	}

	public static String HTML_ROOT = "file:///android_asset/common/";

}

@@ -673,16 +673,17 @@
 Context;
+ 
 %0A%0Apublic
@@ -702,16 +702,45 @@
 ants %7B%0A%0A
+%09static int _accTypeId = 0;%0A%0A
 %09/**%0A%09 *
@@ -785,29 +785,24 @@
 tic 
-Str
 in
-g
+t
  getAcc
-ount
 Type
+Id
 (Con
@@ -811,39 +811,60 @@
 xt ctx) %7B%0A%09%09
-return (String)
+if( _accTypeId == 0)%0A%09%09%09_accTypeId =
  ctx.getReso
@@ -870,38 +870,36 @@
 ources().get
-Text(R.string.
+Identifier(%22
 aam_account_
@@ -894,38 +894,87 @@
 aam_account_type
-);%0A%09%7D%0A
+%22, %22id%22, ctx.getPackageName());%0A%09%09return _accTypeId;%0A%09%7D
 %0A%09public static 
@@ -988,16 +988,14 @@
 getA
-uthToken
+ccount
 Type
@@ -1059,33 +1059,114 @@
 ext(
-R.string.aam_account_type
+getAccTypeId(ctx));%0A%09%7D%0A%0A%09public static String getAuthTokenType(Context ctx) %7B%0A%09%09return ctx.getPackageName(
 );%0A%09
@@ -1238,69 +1238,27 @@
 urn 
-(String) ctx.getResources().getText(R.string.aam_account_type
+ctx.getPackageName(
 );%0A%09

Update Constants.java