* Defines the IDs of branding resources.
*
*/
-public interface BrandingResourceIDs extends android.im.BrandingResourceIDs {
+public interface BrandingResourceIDs {
+
+ /**
+ * The logo icon of the provider which is displayed in the landing page.
+ */
+ public static final int DRAWABLE_LOGO = 100;
+ /**
+ * The icon of online presence status.
+ */
+ public static final int DRAWABLE_PRESENCE_ONLINE = 102;
+ /**
+ * The icon of busy presence status.
+ */
+ public static final int DRAWABLE_PRESENCE_BUSY = 103;
+ /**
+ * The icon of away presence status.
+ */
+ public static final int DRAWABLE_PRESENCE_AWAY = 104;
+ /**
+ * The icon of invisible presence status.
+ */
+ public static final int DRAWABLE_PRESENCE_INVISIBLE = 105;
+ /**
+ * The icon of offline presence status.
+ */
+ public static final int DRAWABLE_PRESENCE_OFFLINE = 106;
+ /**
+ * The label of the menu to go to the contact list screen.
+ */
+ public static final int STRING_MENU_CONTACT_LIST = 107;
+
/**
* The image displayed on the splash screen while logging in.
*/
package com.android.im.app;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
import android.app.Activity;
import android.app.Application;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.pm.PackageManager;
-import android.content.pm.ResolveInfo;
-import android.content.pm.ServiceInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Resources;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.Uri;
import android.os.Broadcaster;
-import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.RemoteException;
import android.provider.Im;
-import android.text.TextUtils;
import android.util.Log;
import com.android.im.IConnectionCreationListener;
import com.android.im.engine.ImErrorInfo;
import com.android.im.plugin.BrandingResourceIDs;
import com.android.im.plugin.ImPlugin;
-import com.android.im.plugin.ImPluginConstants;
import com.android.im.plugin.ImPluginInfo;
import com.android.im.service.ImServiceConstants;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
public class ImApp extends Application {
public static final String LOG_TAG = "ImApp";
return providerId;
}
- @SuppressWarnings("unchecked")
private Map<String, String> loadConfiguration(ImPlugin plugin,
ImPluginInfo info) {
Map<String, String> config = null;
mProviderCursor = managedQuery(Im.Provider.CONTENT_URI_WITH_ACCOUNT,
PROVIDER_PROJECTION,
- null /* selection */,
- null /* selection args */,
+ Im.Provider.CATEGORY + "=?" /* selection */,
+ new String[]{ ImApp.IMPS_CATEGORY } /* selection args */,
Im.Provider.DEFAULT_SORT_ORDER);
mAdapter = new ProviderAdapter(this, mProviderCursor);
setListAdapter(mAdapter);
package com.android.im.app;
import com.android.im.R;
+import com.android.im.plugin.BrandingResourceIDs;
import android.graphics.drawable.Drawable;
import android.widget.LinearLayout;
import android.content.ContentResolver;
import android.content.res.Resources;
import android.database.Cursor;
-import android.im.BrandingResourceIDs;
import android.content.res.ColorStateList;
import android.view.View;
import android.provider.Im;