Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


wintersm

87 posts

Master Geek

Trusted

#76262 31-Jan-2011 20:10
Send private message

Hi..

I have started to make a version of my 2Degrees android widget for Vodafone as requested.

Search market for "Vodafone NZ Balance Widget" or something like that.

This is BETA at the moment, as I have found some errors in the prepay balance web page when retrieved through the java http client. I am using the m.vodafone.co.nz site to get the information..

Currently I am able to parse out correctly

On Account, Spend This month, PXT, TXT, Anytime Minutes, Offpeak Minutes

Prepay - Balance, Calling Credit 
  Here where it gets tricky, when received through the http client, the page renders up an error message in the table, so either the first item will have the error and non other will show, or the last will have the error, and you wont get the expiry date.

Now - I need "Tag" information for other balance items, eg Data, Internet packages, this way I can parse them and handle them correctly, they should show in the balance page the first time, or if you log onto m.vodafone.co.nz I need to see what is in the left coloumn..

eg above account i had access to has

10 PXT
100 TXT 
20 Anytime Minutes
60 Offpeak Minutes


So, help me add more things in by posting them here! Any comments / problems would be appreciated. 




Phone: Google Nexus 1 , stock Gingerbread 2.3.4 Self Rooted.

View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2 | 3 | 4
paulchinnz
Circumspice
793 posts

Ultimate Geek

Trusted
Lifetime subscriber

  #433378 31-Jan-2011 20:26
Send private message

Thanks I've a running balance now which is great.

I'm not entirely sure what you mean by the left column ... I can say that on SupaPrepay, would be great to know about My Add-Ons in terms of Top up Bonus minutes remaining, BestMate 1000 txts and minutes remaining, and Broadband Lite data remaining.



athor
123 posts

Master Geek


  #433380 31-Jan-2011 20:32
Send private message

Hey,

I've just given the widget a go. I had some Force Closes the first few times I tried to update. I tried reentering my login details a few times and it seems to work eventually. I sent a report for one of the crashes.

The widget works well. Looking forward to seeing updates for more addons etc.

Heres the 'tags' for my addons from the html source. Hope this is what you need.

<td class="name">

Top up Bonus -
<span>100 weekend mins to VF mobiles &amp; NZ landlines</span>
<td class="name">

TXT2000 -
<span>2000 TXTs to VF mobiles</span>
<td class="name">

Broadband Lite -
<span>100MB of data</span>
</td>


wintersm

87 posts

Master Geek

Trusted

  #433461 31-Jan-2011 22:34
Send private message

athor: Hey,

I've just given the widget a go. I had some Force Closes the first few times I tried to update. I tried reentering my login details a few times and it seems to work eventually. I sent a report for one of the crashes.




MMM,, I have looked at where the error has occured, when you login to m.vodafone.co.nz, do you get "My Spend is $" (something)..

It seems that it was missing, I have not handled that one, if it is missing can you message me the html from the vodafone site (if you are comfortable doing that)., I need to check the differences.

:)

 




Phone: Google Nexus 1 , stock Gingerbread 2.3.4 Self Rooted.



athor
123 posts

Master Geek


  #433521 1-Feb-2011 08:54
Send private message

I don't see anything that says My Spend.

I have send you the html from the page.

marmel
1924 posts

Uber Geek

ID Verified
Trusted

  #433570 1-Feb-2011 10:06

I've tried downloading this a few times this morning and it doesn't appear to be working. Downloads to about 5% then quickly goes to installed successfully.

Problem is the app doesn't appear on the apps page and you can't choose open from the market page either as it is greyed out.

I'm using HTC Desire Froyo.

wintersm

87 posts

Master Geek

Trusted

  #433573 1-Feb-2011 10:11
Send private message

Its a widget so it wont appear in the apps page on you phone, you have to long press on your launcher to add widgets..






Phone: Google Nexus 1 , stock Gingerbread 2.3.4 Self Rooted.

marmel
1924 posts

Uber Geek

ID Verified
Trusted

  #433575 1-Feb-2011 10:13

Ahhhh thanks :-)

 
 
 

Move to New Zealand's best fibre broadband service (affiliate link). Free setup code: R587125ERQ6VE. Note that to use Quic Broadband you must be comfortable with configuring your own router.
allstarnz
1719 posts

Uber Geek

Trusted

  #433588 1-Feb-2011 10:36
Send private message

great, I like.

Is there any way to get remaining MB's left for my data plan?

wintersm

87 posts

Master Geek

Trusted

  #433722 1-Feb-2011 15:31
Send private message

just uploaded an update that may show "Broadband Lite" on pre-pay, i say "May" as there is a bug in the vodafone page which may stop it from showing, this is out of my control..

Give it a go and see..





Phone: Google Nexus 1 , stock Gingerbread 2.3.4 Self Rooted.

athor
123 posts

Master Geek


  #433983 1-Feb-2011 22:20
Send private message

I've downloaded the update but I'm getting Force Closes when updating the widget from the full screen view. I've submitted a report.

wintersm

87 posts

Master Geek

Trusted

  #433997 1-Feb-2011 22:52
Send private message

athor: I've downloaded the update but I'm getting Force Closes when updating the widget from the full screen view. I've submitted a report.


yup fixed just now..  




Phone: Google Nexus 1 , stock Gingerbread 2.3.4 Self Rooted.

athor
123 posts

Master Geek


  #434001 1-Feb-2011 23:06
Send private message

Love the response times =)

It's updating fine now. I'm also getting my Top up Bonus minutes showing now, but no broadband lite.

Ragnor
8221 posts

Uber Geek

Trusted

  #434511 2-Feb-2011 21:26
Send private message

Best Mate 1000:
<td class="name">BestMate1000 - <span>1000 TXTs &amp; 1000 mins</span></td>

Mobile Internet 2Go 50MB:
<td class="name">Mobile Internet 2Go - <span>50MB of data</span></td> 

Total Addon Charges:
<div class="addonCharges">
  <h3>My Add-On charges are <span>(excludes cancelled Add-Ons)</span></h3>
  <h4>$12.00/mth</h4>
</div> 


Pretty nasty html, h3 and h4 abused!

wintersm

87 posts

Master Geek

Trusted

  #434537 2-Feb-2011 22:23
Send private message

It is nasty html, I will look at adding those tomorrow!!

:)

I still have not figured out if there is a way around the bug in their html for pre-pay customers (why its different html display/layout between prepay and on-account is beyond normal reasoning)..

;)




Phone: Google Nexus 1 , stock Gingerbread 2.3.4 Self Rooted.

wintersm

87 posts

Master Geek

Trusted

  #434841 3-Feb-2011 14:23
Send private message

Ragnor: can you paste the whole table row code for the best mate line, this one having 1000 text and 1000 minutes, i need to see how the "remaining" amounts are given out..

thanks.
 




Phone: Google Nexus 1 , stock Gingerbread 2.3.4 Self Rooted.

 1 | 2 | 3 | 4
View this topic in a long page with up to 500 replies per page Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.