Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
webviewでの長押し時に画像取得
727 views
Skip to first unread message
pitper
unread,
Apr 12, 2011, 3:23:07 AM
4/12/11
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の会
こんにちはpitperです。
webviewで長押し時に画像が取得できず困っています。
画像のURLさえ取得出来れば解決するのですが、
https://sites.google.com/a/techdoctranslator.com/jp/android/guide/ui/menus
http://www.xn--rhq6sw9f0w7aevaf9ak89m.jp/android/androidLecture/Menu/Menu.html
以上のサイトを参考に作成していまして、リンクが貼っている画像なら取得できますが貼っていない画像となると、
コンテキストメニューのonCreateContextMenu()に処理が渡ってきません。
http://d.hatena.ne.jp/STAR_ZERO/20101021/1287670497
こちらのonLongClick()を使った方法でも同様で、リンクが貼っていない画像となると処理が渡ってきません。
標準のブラウザでは取得できるので、解決できる方法はあるのだと思いますが、
ソースを見ても特別なことはしていないように見えます。(単なる知識不足っぽい)
どうしたら解決できるのでしょうか。
ご教授よろしくお願いします。
pitper
unread,
Apr 13, 2011, 4:38:35 AM
4/13/11
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の会
pirperです。
エミュレータとxperia x10 では問題なく動作しました。
HTC Desire HD の場合は上手くいきませんでした。
ただ、HTC Desire HD でも標準のブラウザでは成功するのでそこが謎ですね。
On 4月12日, 午後4:23, pitper <
y.kumur...@gmail.com
> wrote:
> こんにちはpitperです。
>
> webviewで長押し時に画像が取得できず困っています。
>
> 画像のURLさえ取得出来れば解決するのですが、
https://sites.google.com/a/techdoctranslator.com/jp/android/guide/ui/...http://www.xn--rhq6sw9f0w7aevaf9ak89m.jp/android/androidLecture/Menu/.
..
Reply all
Reply to author
Forward
0 new messages