milkcocoa0902 / kosenmobile Goto Github PK
View Code? Open in Web Editor NEW豊田高専のお知らせをチェックするためのAndroid APPです。その他、単位計算なども出来ます。
Home Page: http://me.milkcocoa.info
License: MIT License
豊田高専のお知らせをチェックするためのAndroid APPです。その他、単位計算なども出来ます。
Home Page: http://me.milkcocoa.info
License: MIT License
RSSことお知らせで、Webページを更新する際に、リファクタではなく新規掲載されているケースがある。
これを検出する仕組みが必要。
アプリデバッグ時、端末にインストールすると過去のxmlやらdbが勝手に湧き出てくるせいで正しくデバッグが行えない。
キャッシュ等を削除しても無限に湧き出てきて迷惑この上ない。
これらの解決方法が不明なため、下記の対応を取る。
Syllabus関連
新たに SHA1
エンドポイントを実装し、起動時にファイル整合性を確認する
RSS関連
新たに Inquiry
エンドポイントを作成。これは、IDを指定するとサーバ上のDBの中身を返してくれる
通所通りデータベースオープン
何件かランダムに Inquiry
に問い合わせ。
一致していればそのまま。
不一致ならばデータが間違っていると判断して、ファイルを再度作り直す。
ファイルエクスプローラにより、KosenMobile APPのデータベースファイルが削除された。
ファイルの保管場所に問題がある可能性。
そこで、配置場所の変更を検討
科目IDのパースが変
Navigation Menuを導入したが、挙動がおかしい。
おそらく、レイアウト実装時に上下関係が逆になっている
NavigationViewの初期化処理をそれぞれのActivityでやるのはめんどくさいので、baseクラスを作成してそれをもとにしたActivityへと移行する。
例:
class NavigationViewActivity{}
class SyllabusActivity : NavigationViewActivity{}
Android.Database.Sqlite.SQLiteException
no such table rss (sqlite code 1);
while compiling;
SELECT id, title, detail, hash FROM rss ORDER BY date DESC, (OS error -2; No such file or directory)
詳細をそのまま翻訳すると ファイルが存在しない
もしくは rss
というテーブルがない.
File.Exists()
によるとファイルは存在している.
また,PCにて同様の操作をしたところ,クエリは正常に処理される.
発生端末
HUAWEI MEDIAPAD M3
Syllabus.xmlのデータが欠けてる
多分、AddじゃなくてTryAddしなきゃいけない
関連 #7
RSSの詳細がWebサイトではなくPDFである場合にはWebViewはその内容をレンダリングすることが出来ない。
そのため、PDFかどうかを判定してIntentを発行する仕組みを作る必要がある。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.