Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
PCからAndroid端末へメッセージをPopup表示させたい。
318 views
Skip to first unread message
katsunori konda
unread,
Mar 14, 2013, 1:53:45 AM
3/14/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
お世話になります。
PCからあるメッセージを作成し、そのメッセージを
Android端末にPopup表示させるようなソフトを作成したいと思っています。
WANではなく、PCとAndroid端末のみのクローズなLAN(Wifi)で接続して
行いたいと思います。
そういったソフトを作成する場合、どのようなプロトコル・サービス等を
利用すればできますでしょうか?
AndroidはSDK等を利用し、PC側はWindows機にて
VB.NET
などを利用したいと思います。
ご教授の程、よろしくお願いいたします。
けんぞ(たかはしこうぞう)
unread,
Mar 15, 2013, 12:24:34 PM
3/15/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
「android socket listener example」でぐぐるとサンプルがありますので
例)
http://www.edumobile.org/android/android-development/socket-programming/
とりあえず動かしてみて検討してはいかがでしょう
※Socket通信などの知識はあるものという前提です
2013年3月14日木曜日 14時53分45秒 UTC+9 katsunori konda:
しかじろう
unread,
Mar 16, 2013, 2:07:29 AM
3/16/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-group-japan
PCにサーバー立てて、クライアントから定期的に見るとかでもいいかもしれませんね。
2013/3/16 けんぞ(たかはしこうぞう) <
kenzo...@gmail.com
>:
> --
> このメールは Google グループのグループ「日本Androidの会」の登録者に送られています。
> このグループから退会し、メールの受信を停止するには、
android-group-j...@googlegroups.com
> にメールを送信します。
> このグループに投稿するには、
android-g...@googlegroups.com
にメールを送信してください。
>
http://groups.google.com/group/android-group-japan?hl=ja
> からこのグループにアクセスしてください。
> その他のオプションについては、
https://groups.google.com/groups/opt_out
にアクセスしてください。
>
>
--
/**
* @name : しかじろう【渡辺 慎二郎】
* @blog :
http://shikajiro.github.com/
* @mail :
shik...@gmail.com
* @profile
http://shikajiro.github.com/#/about/index
*/
katsunori konda
unread,
Mar 17, 2013, 8:48:51 PM
3/17/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
けんぞ様
shikajiro様
アドバイスありがとうございます。
返答遅れて申し訳ありませんでした。
やはりソケット通信でしょうか。
Androidでのソケット通信は初めてですので
サンプルを見て確認したいと思います。
PCサーバへクライアントから見るようなソフトを作成し
確認したいと思います。
ありがとうございました。
2013年3月14日木曜日 14時53分45秒 UTC+9 katsunori konda:
お世話になります。
チョンボ
unread,
Mar 17, 2013, 10:44:51 PM
3/17/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
初めまして。
最近ネットワーク関連を学んだばかりの者ですが、参考までに。
PCとAndroidの1:1の通信でしたらTCP通信になると思いますので、
Android側は受信側ですのでJavaのServerSocketクラスを使用して通信する事になると思います。
まず、PCから対象へPingが通るかどうかも最初に確認すると安心です。
VB.NET
に関しては無知ですのでAndroid側だけ失礼致します。
Shigeo Mutoh
unread,
Mar 18, 2013, 5:42:02 AM
3/18/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
tmhouseこと武藤です。
もしUDPでやるのではれば、自分が前に書いた(元はこのMLで見つけたコード)
サンプルが以下からたどれます。
https://groups.google.com/forum/?fromgroups=#!topic/androweal/dRs-87Ee7Ss
ただ、アプリが起動していなくても受信しようとするならば、それなり
に実装する必要があります。Serviceを使って待ち受けるとかです。
Windows側では同じくUDPを使うわけですが、たぶん同じぐらい簡単に
書けるものと思われます。
katsunori konda
unread,
Mar 19, 2013, 2:05:09 AM
3/19/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
武藤様
どうもありがとうございます。
参考にさせて頂きます。
ソースをダウンロードして
動作確認してみたいと思います。
2013年3月18日月曜日 18時42分02秒 UTC+9 TM:
Reply all
Reply to author
Forward
0 new messages