PushBots应用程序崩溃 [英] PushBots App Crash

查看:252
本文介绍了PushBots应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出一个Android应用程序,它使用使用PushBots推送通知服务。

I am making an Android App which uses Push Notification services using PushBots.

我想要做的是,当我收到一个推送通知,我要保存在邮件中的TextView的,这样我可以拥有所有收到的短信的历史。

What i want to do is, when i receive an Push Notification, I want to save the Message in an TextView, so that i can have an History of all the Messages Received..

我这样做,是写在PushBots网站收到推送通知的一切,我甚至只能成功,只有当应用程序是开放的。

I did everything that is written on the PushBots website to receive The Push Notification, and I am even Successfully only and only when the App is open..

如果当应用程序未在手机上运行,​​我收到一个通知,然后应用程序崩溃。

If i Receive an notification when the App is not running on the Phone, then the App Crashes.

所以请你能不能帮我解决这个应用程序崩溃的问题?甚至帮助我,以显示在TextView中的已收信息。

So Please can you help me to solve this App crashing Problem?? And even help me to show the Received msg in an TextView.

推荐答案

检查YouTube上的视频教程(的 http://www.youtube.com/watch?v=faop6vBBe3E

Check the video tutorial on youtube (http://www.youtube.com/watch?v=faop6vBBe3E)

我会在这里引用过:

请确保您复制PushBots.jar文件到你的Andr​​oid项目的库文件夹中。   而且还要确保你扩展应用程序类,并在其onCreate方法初始化PushBots,检查步骤6,7在此链接查看更多细节的 https://pushbots.com/developer/tutorial#/android/existing/step/4

Please make sure you've copied PushBots.jar file into libraries folder of your android project. And also make sure you extended Application Class, and initialized PushBots in its onCreate method, check out steps 6,7 in this link for more details https://pushbots.com/developer/tutorial#/android/existing/step/4

下面是一个示例code:

here's a sample code:

import com.pushbots.push.Pushbots;
import android.app.Application;

public class MyApplication extends Application {
  @Override
  public void onCreate() { 
    super.onCreate();
    Pushbots.init(this, "", "");
  }
}

这篇关于PushBots应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆