It is currently Sun Jun 25, 2017 8:47 pm



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Basic Stocks - Internet Stock Quotes.
Unread postPosted: Sat Apr 15, 2017 1:52 pm 
Offline
User avatar

Joined: Thu Nov 21, 2013 7:00 pm
Posts: 639
Finally managed to scrape up enough weekends to finish this milestone
of mine - A way to get stock info from Yahoo using it's easy to use csv API.

It is not unlike Yahoo's official app except this one's entirely written in Basic!.

I suspect it's not bug free, as I'm rushing to finish it before my Easter holiday.
And I only tested it on two phones. So reports will be fully appreciated.

Tips:
You can tap on the bottom buttons, the column headers and the app title (top).

If you get a "No data" popup (which you inevitably will), then it's probably
the data connection, so you should try hitting the refresh button (↻) again.

Source:
To get to the code, rename the .apk to .zip and extract.

-enjoy!Image


Attachments:
File comment: v1.2 - quick fixes for deletes, app exit and url re-directs.
bstocks1200.apk [476.51 KiB]
Downloaded 15 times

_________________
- Failure is not an option. It is bundled with the software. -


Last edited by humpty on Tue May 09, 2017 11:30 am, edited 3 times in total.
Report this post
Top
 Profile  
 
 Post subject: Re: Basic Stocks - Internet Stock Quotes.
Unread postPosted: Sun Apr 16, 2017 1:17 am 
Offline
User avatar

Joined: Sat Dec 08, 2012 2:14 am
Posts: 1147
Location: From Blighty
Extremely impressive humpty. I added a stock too as seen in screen-shot. I moved it up to check the GUI for bugs. I think though, it should read format wise 18.20 rather than 18.2?

Also, I have to refresh when I run the app to get a result as you have stated, but thought you might need to know. The connection is on 4G as you can see with reasonable signal strength [ASFAIK the bars may not really represent true signal strength between manafacturers], and I'm on a provider where normally connectivity is very fast.

When I exit the app thru the menu, it seems to go back to the Editor. Again attached a screen-shot.

Interesting to note on my device the notification area appears in white.

I never thought about pulling other API's/communication between other packages across into BASIC!, so you just added something else on my To-Do list...

Something is odd, after deletion of a stock and reloading. The deleted stock seems to appear until I refresh with a new one I've added...?

Mog
[Edit] Reloading = I meant restarting the app.


Attachments:
Screenshot_2017-04-16-09-11-56.png
Screenshot_2017-04-16-09-11-56.png [ 14.08 KiB | Viewed 475 times ]
Screenshot_2017-04-16-09-11-40.png
Screenshot_2017-04-16-09-11-40.png [ 117.36 KiB | Viewed 475 times ]
Report this post
Top
 Profile  
 
 Post subject: Re: Basic Stocks - Internet Stock Quotes.
Unread postPosted: Sun Apr 16, 2017 9:31 am 
Offline
User avatar

Joined: Sat Dec 08, 2012 2:14 am
Posts: 1147
Location: From Blighty
There's something else that's weird. When I exited via the back key and the GUI 'Exit app? No Yes' it exited clean. Also again now via your air vent/hamburger icon menu it exits clean and does not go back to the Editor like it did before.

This is bizarre.

?

I cleared the data as well as the settings in the app, but cannot replicate this problem again.

?

[I don't know if you have been following posts here, but things have been behaving strangely on Marshmallow and BASIC! with regards to EXIT command.

What I have been thinking is to put down some on screen video recording app so you can see "odd Marshmallow behaviour" and uploading the video file to the forum. However, I've yet to have problems with commercial apps, that don't use BASIC!.].

Mog


Report this post
Top
 Profile  
 
 Post subject: Re: Basic Stocks - Internet Stock Quotes.
Unread postPosted: Sun Apr 16, 2017 10:44 am 
Offline
User avatar

Joined: Thu Nov 21, 2013 7:00 pm
Posts: 639
Thanks Mog,
Yes, the auto-refresh and number format is something I will be working on the next version.
I also discovered it crashes if you delete all the stocks! :? :lol:
I didn't know about the Exit thing (I couldn't replicate it on Marshmallow 6.0).
Thanks for the reports.

_________________
- Failure is not an option. It is bundled with the software. -


Report this post
Top
 Profile  
 
 Post subject: Re: Basic Stocks - Internet Stock Quotes.
Unread postPosted: Mon Apr 17, 2017 12:29 am 
Offline
User avatar

Joined: Mon Aug 18, 2014 1:16 pm
Posts: 1337
Very nice humpty

Regards Roy
Attachment:
stock.PNG
stock.PNG [ 198.33 KiB | Viewed 377 times ]


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred