+-Discord Shoutbox


Alternatively, join us on Discord directly.
You can help CodeWalrus stay online by donating here.

[Android] CodeWalrus Post Notifier

Started by Snektron, April 16, 2015, 01:34:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yuki

UDP is connectionless, so SMF don't care if the message arrived to its destination, the packet got lost, the server is off or whatever, and won't block until some sort of confirmation, that's why I chose it over TCP (which makes sure the packet arrived to destination in the right order and stuff). And when the server is 127.0.0.1 I don't think there's packet loss.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

Duke "Tape" Eiyeron

This and UDP doesn't care abut which packet comes before another. There aren't any attempts to get the original flow at client side.
  • Calculators owned: A lot.

DJ Omnimaga

That's good then. Good luck Cumred for the project and to whoever is involved in the SMF side of the notifier. :)
  • Calculators owned: TI-84 Plus, TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Nintendo 64, Wii U

Snektron

May 09, 2015, 12:03:45 PM #18 Last Edit: May 09, 2015, 12:12:27 PM by Cumred_Snektron
Hello! It's been a while since we announced this project and yesterday i finally decided to start coding.
I've implemented android's recyclerview so it looks nice with not too much effort. Also i added a http requester and a xml parser
so it can display posts.

As you can see, nothing is done about the raw HTML yet. Also there is not yet a menubar.
The menubar will also contain a fancy side menu for options and such. Also there is not yet a notification service.
The source is also on github: https://github.com/QuantumInfinity/CodeWalr.us-Post-Notifier
Let me know if you like it / have suggestions ;)

Also since this is a project for cw... *cough* featured project *cough cough* :P
But seriously maybe thats a good idea.
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

Looks very good so far! Will there be options to open the browser to view the thread? This would be a must I think. And yeah I considered a sub-forum for this, although it depends if you plan to update this more in the future once it's released to public. That would make MinePrime (next update that adds crafting) and the post notifier the next two sub-forum additions.
  • Calculators owned: TI-84 Plus, TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Nintendo 64, Wii U

Snektron

Quote from: DJ Omnimaga on May 09, 2015, 04:22:47 PM
Looks very good so far!

Thanks! :D

Quote from: DJ Omnimaga on May 09, 2015, 04:22:47 PM
Will there be options to open the browser to view the thread?

Yeah i was already planning to add that, but i don't know if i wrote it under the features

Quote from: DJ Omnimaga on May 09, 2015, 04:22:47 PMAnd yeah I considered a sub-forum for this, although it depends if you plan to update this more in the future once it's released to public. That would make MinePrime (next update that adds crafting) and the post notifier the next two sub-forum additions.

That depends on how many there is to update. I will at least keep it maintained and add features if necissary :)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


novenary

Sounds fun. With the new mobile theme it will make using the forum on a phone pretty neat. :3

Yuki

That looks pretty nice Cumred. I'm definitely checking it out. And if you want a server/mod to run on CW you can always ask me.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

Snektron

Thanks :) And yeah i'm already developing a mod :P
Currently the mod adds one action feature, "walrifier". It returns the id of the latest message. The app will then check
if the latest ID is the same as the new ID and if not, request the full feed from the ".xml" action. Though it might be better to strip it down and make my own feed via a subaction (if im making a mod anyway). I'm also thinking of making a subaction where you supply the last checked ID and it returns a list of ID's/posts since the supplied ID (with a limit ofcourse). This way doesn't require a server, while its probably just as data-efficient (and is probably lighter for the server too). I wan't the least amount of data as possible, so it can also run on mobile data without consuming a lot of data. This way it probably wouldn't even be a Mb per day, which is a quite acceptable amount i'd say.
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


novenary

Hmmm nice. I'm not having too many problems with data usage but again I have a 3GB plan. Not everyone does tho.

Snektron

Yeah i was using 200MB before, now i have 1GB. But for the people who are having no/low data, i'll just add a option :)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


CKH4

This looks very cool. Maybe you could add an option to fetch irc too? But then it'd be like wirc for android sort of.
  • Calculators owned: TI-83+, TI-84+


DarkestEx

@Cumred_Snektron, why don't you use a PHP page to preprocess the feed online, where you have unlimited traffic and then send only n-items to the client.
Or tell the client, how many messages happened since a specific id and then fetch only those.
  • Calculators owned: TI-84+, Casio 101-S, RPN-Calc, Hewlett-Packard 100LX, Hewlett-Packard 95LX
  • Consoles, mobile devices and vintage computers owned: Original Commodore 64C, C64 DTV, Nintendo GameBoy Color, Nintendo GameCube, Xbox 360, PlayStation 2

Snektron

  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DarkestEx

Quote from: Cumred_Snektron on May 09, 2015, 10:26:00 PM
Yeah thats what im going to do :)
Ah okay.
I already wrote a good part of that actually before I posted that reply.
You can check it out soon.
  • Calculators owned: TI-84+, Casio 101-S, RPN-Calc, Hewlett-Packard 100LX, Hewlett-Packard 95LX
  • Consoles, mobile devices and vintage computers owned: Original Commodore 64C, C64 DTV, Nintendo GameBoy Color, Nintendo GameCube, Xbox 360, PlayStation 2

Powered by EzPortal