U
U
Ulyan Romanov2015-05-12 19:34:24
Android
Ulyan Romanov, 2015-05-12 19:34:24

How to write an application with a schedule?

I am only a 2nd year college student. But not far off the diploma. I have already chosen the topic and this application (at least for now on android) with the schedule of my own college. The structure of the application is simple:
1) First, select a person - a teacher or a student. If a teacher, then enter initials, show a schedule with "wrapped" days.
2) If a student, then select a group and show the schedule as in paragraph 1.
I only know C++ and mostly it's working with arrays. I know that more is needed, but the study will be as it is written. The worst thing is, I don't know where to start and how it will interact. I want to clarify:
1) Is it possible to write a complete application of this kind in C ++? If so, how? You don’t want to jump from one language to another without well-established knowledge.
2) I understand that I will need to write a parsing of the schedule on the site? (Is it also possible in C++?)
3) In what form will the group schedule be presented to me? Can I send them directly to the app? (I may be talking nonsense, you correct it)
4) The schedule is essentially stored on the server, then it can provide a relationship?
Are there any relevant links with a similar topic? Is there an API for this kind of task? I look forward to any help and useful advice.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
Roman Kitaev, 2015-05-12
@deliro

Qt .
There may or may not be an API (which is likely) - depending on whether the site provides it or not. But, to be honest, I have not yet seen the websites of universities with API (maybe I didn’t look well).
Working with arrays is not a job. It's like saying: "I know how to cook food and mostly I brew Rollton"
The answer to the second question is Googled at times.
The third did not understand at all.
The schedule is stored on the server, but, for speed and offline capability, it is still better to cache the data in Sqlite and update it once a day (if possible) or on request.

O
Oleg Gamega, 2015-05-12
@gadfi

What you don't need:
1. C++
2. scrape the site

You don’t want to jump from one language to another without well-established knowledge.
each task has its own tool, even taking into account the fact that you don’t know java, ui is still written in java, pulling java from c ++ and ndk from java is expensive
You have a server with a database on it, just write to the university schedule website rest api (no matter what language the site is in, the task is still the simplest)
On the client side, everything is simple - a regular client-server application.
REST API (I recommend using retrofit + gson for it), database ─ out of the box in android SQLite (Google recommends a provider + loader for working with the database and I agree with him, it’s very convenient), ui ─ there’s enough imagination here.

M
Makaleks, 2015-05-19
@Makaleks

A painfully serious task with such knowledge of C ++. When writing a GUI, you cannot do without classes, Qt has already been advised to you. In the same library, there are ways to work with the network and not only. But universities usually (haven't met) don't provide an API for working with their site, and therefore there are different options, and parsing is not the best one for you. Since the schedule for that and the schedule is rarely updated, you can simply fill this schedule with "handles" (for example, on the server for such updates), and then process it.
But that's not the point. Judging by

I only know C++ and mostly it's working with arrays
there is a feeling that there is no skill in writing programs of the scale you proposed. I hope the need to focus on separate compilation (so that each run does not take 10 seconds), the maximum division into functions and checking for the correctness of input parameters (which will allow you to write high-quality code and use it in other projects) will not be news. Well, of course, knowledge of the design rules for maximum debugging comfort.
But that's not all. All this looks like a promising long-term construction, and therefore I advise you to first of all make a prototype - a version that is maximally truncated in terms of functionality from high-quality code, with a big eye on the extension. Planning is needed, which cannot be neglected here.
In general, it is worth acquiring a contact with whom it would be possible to clarify such issues.
1: yes, of course, you can write something else in C ++, although almost complete control over each operation promises a long development cycle (sometimes they use a completely different programming language for prototypes, full of abstractions, such as Python). For Qt, I advise you to start with the book
"Qt 4.8. Professional C ++ Programming" (M. Schlee)
And I hope that you have something like
"The Complete Guide to C ++" (G. Schildt)
Android is really more suitable for Java, but for C ++ there are ways to write for mobile platforms (not only Android).
Good luck

D
Dmitry Shinkar, 2015-05-13
@DeadCowsDontMoo

I can only say that an application of this kind can be written in java, or it can be done using web-a, depending on what is best for you ...

A
Alexander Dubina, 2015-05-21
@struggleendlessly

in c++ it is possible, but it will be easier in java (for android), and even easier on sysharp (windows, android, ios).
start not with your application, but with lessons, for example, on writing a calculator, since you have such huge gaps in mobile development (knowledge) that it makes no sense to tell the intricacies of building your application

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question