How to collects data transferred(upload/download) by mobile internet
on android device from particular moment (date & time) and display it above status bar across the screen..
Asked
Active
Viewed 155 times
0

Pradeep Sodhi
- 2,135
- 1
- 19
- 19
2 Answers
0
You can learn how to get transferred data on android from here How to obtain amount of transferred data through Wi-Fi from other applications?
and here's the notifications link,
http://developer.android.com/guide/topics/ui/notifiers/notifications.html
just a little google search.

Community
- 1
- 1

Sercan Ozdemir
- 4,641
- 3
- 34
- 64
0
private final Runnable mRunnable = new Runnable() {
public void run() {
TextView RX = (TextView)findViewById(R.id.RX);
TextView TX = (TextView)findViewById(R.id.TX);
long rxBytes = TrafficStats.getTotalRxBytes()- mStartRX;
RX.setText(Long.toString(rxBytes));
long txBytes = TrafficStats.getTotalTxBytes()- mStartTX;
TX.setText(Long.toString(txBytes));
mHandler.postDelayed(mRunnable, 1000);
}
}

Android
- 8,995
- 9
- 67
- 108
-
http://www.techrepublic.com/blog/software-engineer/create-a-network-monitor-using-androids-trafficstats-class/774/ – Android Mar 26 '14 at 06:59
-
I want to get data transfer from particular moment not from device booting the above methods you are using give data transfering amount from booting... – Pradeep Sodhi Mar 26 '14 at 07:08