24小时盯着币价太累了,谁也做不到,可是谁让币没有休盘时间呢。。
所以只能做一个币价提醒软件了。。
功能:
1、可以添加你关注的币,所有BSC链上都可以
2、实时获取价格信息。
3、设置关注价格。
4、到达关注价格时发出震动和铃声提醒。。
视频演示
24小时盯盘太累,做一个币价提醒软件!,游戏,休闲游戏,好看视频 (baidu.com)
最终的效果是
主要的代码是
监听各种EVENT事件,比对价格,价格对的话 就发出提醒,。,。
package com.example.coinprice.event;
import android.os.Parcel;
import android.os.Parcelable;
/**
* 作者: wx-shadow86311
* Date : 2021/6/23
* Desc :
*/
public class CoinDataEvent implements Parcelable {
public int coinid;
public String name;
public String priceStr;
public double priceDouble;
public String lpSize;
public String lastTradeTime;
public String holder;
public String Daily;
public String PooledBnb;
public String Market;
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.coinid);
dest.writeString(this.name);
dest.writeString(this.priceStr);
dest.writeDouble(this.priceDouble);
dest.writeString(this.lpSize);
dest.writeString(this.lastTradeTime);
dest.writeString(this.holder);
dest.writeString(this.Daily);
dest.writeString(this.PooledBnb);
dest.writeString(this.Market);
}
public void readFromParcel(Parcel source) {
this.coinid = source.readInt();
this.name = source.readString();
this.priceStr = source.readString();
this.priceDouble = source.readDouble();
this.lpSize = source.readString();
this.lastTradeTime = source.readString();
this.holder = source.readString();
this.Daily = source.readString();
this.PooledBnb = source.readString();
this.Market = source.readString();
}
public CoinDataEvent() {
}
protected CoinDataEvent(Parcel in) {
this.coinid = in.readInt();
this.name = in.readString();
this.priceStr = in.readString();
this.priceDouble = in.readDouble();
this.lpSize = in.readString();
this.lastTradeTime = in.readString();
this.holder = in.readString();
this.Daily = in.readString();
this.PooledBnb = in.readString();
this.Market = in.readString();
}
public static final Creator<CoinDataEvent> CREATOR = new Creator<CoinDataEvent>() {
@Override
public CoinDataEvent createFromParcel(Parcel source) {
return new CoinDataEvent(source);
}
@Override
public CoinDataEvent[] newArray(int size) {
return new CoinDataEvent[size];
}
};
}