parse-android-sdk

Parse Receiver android code after sending push from php

给你一囗甜甜゛ 提交于 2020-01-16 01:10:16
问题 I have a PHP code to send push notification, PHP script returns `{"result":true} but its not displayed on the device. I think I need to write a custom receiver code. I have the Receiver class as: package com.phpand; import org.json.JSONException; import org.json.JSONObject; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; public class ParseReceiver extends BroadcastReceiver { private

Playing music from Parse.com android

淺唱寂寞╮ 提交于 2020-01-05 14:11:10
问题 so I'm implementing like music playlist app, my audios are uploaded to Parse.com as mp3 , I want to retrieve those audios .. final Button btn = (Button) v.findViewById(R.id.button); final ParseFile fileObject = object.getParseFile("music"); if (fileObject != null) { fileObject.getDataInBackground(new GetDataCallback() { @Override public void done(byte[] bytes, com.parse.ParseException e) { final String audioFileURL = fileObject.getUrl(); mediaPlayer = new MediaPlayer(); mediaPlayer.reset();

Set Limit to Zero in Parse Counter

情到浓时终转凉″ 提交于 2019-12-25 18:52:54
问题 I'm trying to set my counter in parse to not go below zero when the score is being decremented, at the moment it can go to negative numbers. How can I set the minimum limit to be zero? This is what I've managed to do so far: btnPointTeamD.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { object.increment("team_d_score"); object.saveInBackground(); } }); btnMinusTeamC.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {

Set Limit to Zero in Parse Counter

我只是一个虾纸丫 提交于 2019-12-25 18:51:06
问题 I'm trying to set my counter in parse to not go below zero when the score is being decremented, at the moment it can go to negative numbers. How can I set the minimum limit to be zero? This is what I've managed to do so far: btnPointTeamD.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { object.increment("team_d_score"); object.saveInBackground(); } }); btnMinusTeamC.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {

Problems with parse Query in ParseObject

让人想犯罪 __ 提交于 2019-12-13 03:09:12
问题 I'm having trouble with this query. What i want to accomplish here is according to the idChatSeleccionadoAppUsuario(KYLmvSGP1…) i can have all the messages and User(Usuario) inside the list. This is what i have tried so far: ParseQuery<ParseObject> query = ParseQuery.getQuery("Conversaciones"); queryChat=ParseObject.createWithoutData("Chat",idChatSeleccionadoAppUsuario); query.whereEqualTo("ChatId", queryChat); query.include("Usuario"); query.include("ChatId"); query.findInBackground(new

Parse server dashboard login

℡╲_俬逩灬. 提交于 2019-12-06 12:38:28
问题 So, I am new to Android Studio. I'm following an online course step by step. I'm using ParseServer on AWS. I've managed to get my appId, etc. and can connect with a Java SSH Client directly from my browser. My app can successfully store information in the ParseServer, but I can't access the parse dashboard. When I try to it asks me to enter my username and password -- which I don't have. I've found a file (in bitnami terminal) and I think that I should maybe make myself an account in here? #