Search in sources :

Example 21 with ImApp

use of org.awesomeapp.messenger.ImApp in project Zom-Android by zom.

the class RemoteImService method checkUpgrade.

private void checkUpgrade() {
    ImApp app = ((ImApp) getApplication());
    if (app.needsAccountUpgrade()) {
        Intent notificationIntent = new Intent(this, MainActivity.class);
        PendingIntent launchIntent = PendingIntent.getActivity(getApplicationContext(), 0, notificationIntent, 0);
        getStatusBarNotifier().notify(getString(R.string.upgrade_action), getString(R.string.upgrade_desc), getString(R.string.upgrade_desc), notificationIntent, false, false);
    }
}
Also used : ImApp(org.awesomeapp.messenger.ImApp) PendingIntent(android.app.PendingIntent) Intent(android.content.Intent) PendingIntent(android.app.PendingIntent)

Aggregations

ImApp (org.awesomeapp.messenger.ImApp)21 RemoteException (android.os.RemoteException)10 IImConnection (org.awesomeapp.messenger.service.IImConnection)8 IContactListManager (org.awesomeapp.messenger.service.IContactListManager)6 IOException (java.io.IOException)5 Activity (android.app.Activity)4 Intent (android.content.Intent)4 View (android.view.View)4 Cursor (android.database.Cursor)3 Paint (android.graphics.Paint)3 TextView (android.widget.TextView)3 XmppAddress (org.awesomeapp.messenger.plugin.xmpp.XmppAddress)3 IChatSession (org.awesomeapp.messenger.service.IChatSession)3 BitmapDrawable (android.graphics.drawable.BitmapDrawable)2 CropImageView (com.theartofdev.edmodo.cropper.CropImageView)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)2 Contact (org.awesomeapp.messenger.model.Contact)2 Imps (org.awesomeapp.messenger.provider.Imps)2 AddContactAsyncTask (org.awesomeapp.messenger.tasks.AddContactAsyncTask)2 AlertDialog (android.app.AlertDialog)1