• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Widget to check provider for Mins, Texts and network Data

Dheano

Newbie
I'm looking into the possibility of creating an Application that can see how many Texts, Minutes and MB on your network data is left for the month.

I'm on O2, and if I text the word 'Balance' to '20202', O2 send me a text telling me what my allowance is.

I'm sure you could create a widget that when clicked, sends that text, then reads the text back and pops-up just like your balance does when you've sent a text or had a phone call.

I was also thinking, it could delete both threads inside 'Messaging' after it receives the text back, so your last text can show up as your wife, best friend or whoever you've been texting and won't clog up 'Messaging' with threads.

I've looked around and I've asked Martin Adamek (creator of APNdroid) if he could help and also Diogo Juni
 
uhm, O2 is its own provider, in the UK...

Ok im a super newb at developing but im gonna give this a try. I skimmed the sms section of the api and it doesnt look too difficult. dont hold your breath though. can you tell me which phone you have and which os?
 
This would differ by carrier though. For Verizon Wireless you call #3282 (#DATA) and then they send you a text with the info.
 
nickf77: Yeah, but you could include settings - it could read your providor and have the number built in, so it would save the user setting up. At first, I would use O2 as a BETA.

I'm running 2.2 on HTC Dream/G1(CyanogenMod 6.0.0 RC1), but I would like this to work from 1.5 up, to include all of the android market.

I would of course do much testing on my phone too, even if it means downgrading to 1.5, 1.6, 2.1 and my current 2.2.

tytdfn: Sounds fun, I would like to be of service, why not add me on Windows Live Messenger HERE :)
 
The personal assistant app will check your verizon account and report this info, but it's not a widget.
 
I started making the application in Eclipse today, went horribly wrong. I cant code in XML or anything so this will be difficult, I'm used to handling CSS, HTML and some JS and PHP but none of this!!

I would contact the likes of O2, Orange, T-Mobile, but it would be better if you could have ONE APP to cover them all.
 
tytdfn: Sounds fun, I would like to be of service, why not add me on Windows Live Messenger HERE :)

Ughh i hate everything M$(cept xp) so wanna just add me on google wave? or just tell me ur google email and ill add u on my contacts and we can chat through the igoogle home page and through the gmail also and throught our phones too

Edit: Found out how to recieve sms's. That was my roadblock yesterday and i gave up. Turns out the api is moderately disorganized like people said before. Now I'm looking at a website thats a crash course into building widgets.
 
Building widgets is easy. Only downside is that getting them to work is slightly tricky...

And sure, I'll PM you my Gmail :)
 
At last!

As it stands, my application, when clicked, sends a text to the number. I also receive the text. I am currently looking into the UI containing the received SMS.

So far so good!

No force closes or anything - API is set for Cupcake (1.5) and I have tested on 1.6 Emulator and my HTC Dream on 2.2 (CyanogenMod - FroYo).
 
Back
Top Bottom