Conversation
Androidアプリのメインの部分です。今現在担っている動作は、位置情報の取得とバーの設置です。
これは、MainActivityで作ったバーの動作を記述したものです。このファイルと、action_bar_menu2.xmlとsample_action_provider.xmlの3つのファイルでMainactivity内のQRコードと書かれたボタンを表示しています。
これは、Mainactivityに動作の可能なボタンを置くための記述です。このファイルでこのバーには、SampleActionProviderのプログラムが適用されるようになります。
17~48行目にあるClientProcThreadの中で、ソケットの受け渡しを行うような仕様となっています。 実際にメッセージを送る記述は61~71行目です。 しかし、このプログラムは受け取ったメッセージを繋いでいる全メンバーに送信する仕様なので、ここを後々変更しないといけません。
MainActivity
myapplication2
ただ、まだあまり理解していないような状態で書いているので、コメントアウトしています。
データベースのテーブルusersの中で、user_idに当たるものがどれに当たるのかがわからなかったので、まだ未完成です。 そこを修正すれば、動くはずです。
This reverts commit a807378.
This reverts commit 3a15673.
RegFriends.javaは表示されるユーザIDを9桁に揃え、先頭0埋めし、3桁ごとに空白を入れるようにしました。 parent_registor.phpはデータベースの格納先を修正しました。
RegFriends.javaでは、開いた際にユーザIDを取得する記述にしているので、申請時にはユーザIDをセッションを用いて取得するのはやめました。
これまでQRコードにしていたのは、GoogleのURLだったので、そこをユーザIDの入った文字列に修正しました。それに伴い、必要となったところも修正しました。
友達登録を双方向的に
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
データベースのテーブルusersの中で、user_idに当たるものがどれに当たるのかがわからなかったので、まだ未完成です。
そこを修正すれば、動くはずです。