当前位置: 首页>>代码示例>>Java>>正文


Java ConversationListActivity类代码示例

本文整理汇总了Java中org.thoughtcrime.securesms.ConversationListActivity的典型用法代码示例。如果您正苦于以下问题:Java ConversationListActivity类的具体用法?Java ConversationListActivity怎么用?Java ConversationListActivity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ConversationListActivity类属于org.thoughtcrime.securesms包,在下文中一共展示了ConversationListActivity类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initializeBackgroundNotification

import org.thoughtcrime.securesms.ConversationListActivity; //导入依赖的package包/类
private NotificationCompat.Builder initializeBackgroundNotification() {
  NotificationCompat.Builder builder = new NotificationCompat.Builder(this);

  builder.setSmallIcon(R.drawable.icon_notification);
  builder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.icon_notification));
  builder.setContentTitle(getString(R.string.ApplicationMigrationService_importing_text_messages));
  builder.setContentText(getString(R.string.ApplicationMigrationService_import_in_progress));
  builder.setOngoing(true);
  builder.setProgress(100, 0, false);
  builder.setContentIntent(PendingIntent.getActivity(this, 0, new Intent(this, ConversationListActivity.class), 0));

  stopForeground(true);
  startForeground(4242, builder.build());

  return builder;
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:17,代码来源:ApplicationMigrationService.java

示例2: PendingMessageNotificationBuilder

import org.thoughtcrime.securesms.ConversationListActivity; //导入依赖的package包/类
public PendingMessageNotificationBuilder(Context context, NotificationPrivacyPreference privacy) {
  super(context, privacy);

  Intent intent = new Intent(context, ConversationListActivity.class);

  setSmallIcon(R.drawable.icon_notification);
  setColor(context.getResources().getColor(R.color.textsecure_primary));
  setPriority(TextSecurePreferences.getNotificationPriority(context));
  setCategory(NotificationCompat.CATEGORY_MESSAGE);

  setContentTitle(context.getString(R.string.MessageNotifier_pending_signal_messages));
  setContentText(context.getString(R.string.MessageNotifier_you_have_pending_signal_messages));
  setTicker(context.getString(R.string.MessageNotifier_you_have_pending_signal_messages));

  setContentIntent(PendingIntent.getActivity(context, 0, intent, 0));
  setAutoCancel(true);
  setAlarms(null, RecipientPreferenceDatabase.VibrateState.DEFAULT);
}
 
开发者ID:CableIM,项目名称:Cable-Android,代码行数:19,代码来源:PendingMessageNotificationBuilder.java

示例3: MultipleRecipientNotificationBuilder

import org.thoughtcrime.securesms.ConversationListActivity; //导入依赖的package包/类
public MultipleRecipientNotificationBuilder(Context context, NotificationPrivacyPreference privacy) {
  super(context, privacy);

  setColor(context.getResources().getColor(R.color.textsecure_primary));
  setSmallIcon(R.drawable.icon_notification);
  setContentTitle(context.getString(R.string.app_name));
  setContentIntent(PendingIntent.getActivity(context, 0, new Intent(context, ConversationListActivity.class), 0));
  setCategory(NotificationCompat.CATEGORY_MESSAGE);
  setPriority(NotificationCompat.PRIORITY_HIGH);
  setDeleteIntent(PendingIntent.getBroadcast(context, 0, new Intent(MessageNotifier.DeleteReceiver.DELETE_REMINDER_ACTION), 0));
  setGroupSummary(true);
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:13,代码来源:MultipleRecipientNotificationBuilder.java

示例4: onReceive

import org.thoughtcrime.securesms.ConversationListActivity; //导入依赖的package包/类
@Override
public void onReceive(Context context, Intent intent) {
  NotificationCompat.Builder builder = new NotificationCompat.Builder(context);
  builder.setSmallIcon(R.drawable.icon_notification);
  builder.setContentTitle(intent.getStringExtra(RegistrationService.NOTIFICATION_TITLE));
  builder.setContentText(intent.getStringExtra(RegistrationService.NOTIFICATION_TEXT));
  builder.setContentIntent(PendingIntent.getActivity(context, 0, new Intent(context, ConversationListActivity.class), 0));
  builder.setWhen(System.currentTimeMillis());
  builder.setDefaults(Notification.DEFAULT_VIBRATE);
  builder.setAutoCancel(true);

  Notification notification = builder.build();
  ((NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE)).notify(31337, notification);
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:15,代码来源:RegistrationNotifier.java

示例5: onReceive

import org.thoughtcrime.securesms.ConversationListActivity; //导入依赖的package包/类
@Override
public void onReceive(Context context, Intent intent) {
  NotificationCompat.Builder builder = new NotificationCompat.Builder(context);
  builder.setSmallIcon(R.drawable.icon_notification);
  builder.setContentTitle(context.getString(R.string.ApplicationMigrationService_import_complete));
  builder.setContentText(context.getString(R.string.ApplicationMigrationService_system_database_import_is_complete));
  builder.setContentIntent(PendingIntent.getActivity(context, 0, new Intent(context, ConversationListActivity.class), 0));
  builder.setWhen(System.currentTimeMillis());
  builder.setDefaults(Notification.DEFAULT_VIBRATE);
  builder.setAutoCancel(true);

  Notification notification = builder.build();
  ((NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE)).notify(31337, notification);
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:15,代码来源:ApplicationMigrationService.java

示例6: MultipleRecipientNotificationBuilder

import org.thoughtcrime.securesms.ConversationListActivity; //导入依赖的package包/类
public MultipleRecipientNotificationBuilder(Context context, NotificationPrivacyPreference privacy) {
  super(context, privacy);

  setColor(context.getResources().getColor(R.color.textsecure_primary));
  setSmallIcon(R.drawable.icon_notification);
  setContentTitle(context.getString(R.string.app_name));
  setContentIntent(PendingIntent.getActivity(context, 0, new Intent(context, ConversationListActivity.class), 0));
  setCategory(NotificationCompat.CATEGORY_MESSAGE);
  setPriority(TextSecurePreferences.getNotificationPriority(context));
  setGroupSummary(true);
}
 
开发者ID:CableIM,项目名称:Cable-Android,代码行数:12,代码来源:MultipleRecipientNotificationBuilder.java

示例7: buildLaunchIntent

import org.thoughtcrime.securesms.ConversationListActivity; //导入依赖的package包/类
private PendingIntent buildLaunchIntent() {
  Intent intent              = new Intent(this, ConversationListActivity.class);
  intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  PendingIntent launchIntent = PendingIntent.getActivity(getApplicationContext(), 0, intent, 0);
  return launchIntent;
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:7,代码来源:KeyCachingService.java


注:本文中的org.thoughtcrime.securesms.ConversationListActivity类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。