Android 订阅解析通道的用户输入
我需要一种用户订阅特定频道的方式。我使用parseAndroid 订阅解析通道的用户输入,android,parsing,push-notification,Android,Parsing,Push Notification,我需要一种用户订阅特定频道的方式。我使用parse.com上安装示例中的示例创建了一个频道 PushService.subscribe(context"Giants",MainActivity.class); 既然频道已经创建,我需要一种方式让用户选择是否要订阅该频道 PushService.subscribe(context"Giants",MainActivity.class); 有人能帮忙吗?我找到了解决办法。对于任何感兴趣的人来说,这里有一段代码可以很好地完成这项工作: publ
.com
上安装示例中的示例创建了一个频道
PushService.subscribe(context"Giants",MainActivity.class);
既然频道已经创建,我需要一种方式让用户选择是否要订阅该频道
PushService.subscribe(context"Giants",MainActivity.class);
有人能帮忙吗?我找到了解决办法。对于任何感兴趣的人来说,这里有一段代码可以很好地完成这项工作:
public void onClick(View v) {
String loc = localitate.getSelectedItem().toString();
String str = strada.getText().toString();
sendFeedback (loc,str);
private void sendFeedback(String loc, String str) {
// TODO Auto-generated method stub
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.addAllUnique("channels", Arrays.asList(loc+str));
installation.saveInBackground();
我找到了解决办法。对于任何感兴趣的人来说,这里有一段代码可以很好地完成这项工作:
public void onClick(View v) {
String loc = localitate.getSelectedItem().toString();
String str = strada.getText().toString();
sendFeedback (loc,str);
private void sendFeedback(String loc, String str) {
// TODO Auto-generated method stub
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.addAllUnique("channels", Arrays.asList(loc+str));
installation.saveInBackground();
我找到了解决办法。对于任何感兴趣的人来说,这里有一段代码可以很好地完成这项工作:
public void onClick(View v) {
String loc = localitate.getSelectedItem().toString();
String str = strada.getText().toString();
sendFeedback (loc,str);
private void sendFeedback(String loc, String str) {
// TODO Auto-generated method stub
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.addAllUnique("channels", Arrays.asList(loc+str));
installation.saveInBackground();
我找到了解决办法。对于任何感兴趣的人来说,这里有一段代码可以很好地完成这项工作:
public void onClick(View v) {
String loc = localitate.getSelectedItem().toString();
String str = strada.getText().toString();
sendFeedback (loc,str);
private void sendFeedback(String loc, String str) {
// TODO Auto-generated method stub
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.addAllUnique("channels", Arrays.asList(loc+str));
installation.saveInBackground();
我相信你必须根据你的代码片段切换到IOS标签。对不起,我编辑了代码。我感兴趣的是android。我相信你必须根据你的代码片段切换到IOS标签。对不起,我编辑了代码。我感兴趣的是android。我相信你必须根据你的代码片段切换到IOS标签。对不起,我编辑了代码。我感兴趣的是android。我相信你必须根据你的代码片段切换到IOS标签。对不起,我编辑了代码。我感兴趣的是安卓。有没有办法让用户订阅频道而不是安装?我猜安装是基于设备的,但是如果我让用户在同一设备上登录和注销怎么办?有没有办法让用户订阅频道而不是安装?我猜安装是基于设备的,但是如果我让用户在同一设备上登录和注销怎么办?有没有办法让用户订阅频道而不是安装?我猜安装是基于设备的,但是如果我让用户在同一设备上登录和注销怎么办?有没有办法让用户订阅频道而不是安装?我猜安装是基于设备的,但是如果我让用户在同一台设备上登录和注销呢?