Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


6 posts

Wannabe Geek


Topic # 60744 2-May-2010 03:50
Send private message

Hello:

All I want to do is simply display a URL image. Does anyone have a template I
could use that already displays an image that I can possibly use?
I've been looking all over the internet and the only answers I've
found are extremely complex that include other code.

I'm very good at learning something once I can get it to work from my
end then proceed to analyzing the code.

I am VERY new at Android programming and xml.

Thanks!

PS -- Anyone know any good newbie guides that have full samples of code or downloadable projects for common tasks?

Create new topic

dpw

812 posts

Ultimate Geek
+1 received by user: 13

Trusted

  Reply # 325729 2-May-2010 09:29
Send private message

Righto...first off...a disclaimer: I am a newbie in Android too. However, the xml is somewhat reminiscent of XAML/WPF, which I have to deal with at work. I am also assuming you want to display an image hyperlink? If that's now what you want to do then this is all redundant :o)

Stick an ImageView on your View, then write a event handler for it. The event handler creates an Intent with the URL in the appropriate data and launches the system default browser. I don't have a code snippet for you but I imagine it should be a straightforward thing? 




Android user, software developer, a semi-typical (not a gamer) geek, and a Bernese Mountain Dog nut!

http://savitarbernese.com | https://nz.linkedin.com/in/danywu

5169 posts

Uber Geek
+1 received by user: 1095

Trusted
Subscriber

  Reply # 325745 2-May-2010 10:34
Send private message

Have joined the Google android developers group / forum?

It's very active judging by the digests I get every day. Looks like a great place to ask questions.

http://groups.google.com/group/android-developers/topics

Being Google, It's searchable




____________________________________________________
I'm on a high fibre diet. 

 

High fibre diet




6 posts

Wannabe Geek


  Reply # 325751 2-May-2010 11:19
Send private message

Thanks about the groups -- I've joined .. and no reply yet :(

As for what I'm trying to do, I want to display an image from the internet on the program (not a link to it) without opening a browser.

dpw

812 posts

Ultimate Geek
+1 received by user: 13

Trusted

  Reply # 325858 2-May-2010 19:56
Send private message

dylanh724: As for what I'm trying to do, I want to display an image from the internet on the program (not a link to it) without opening a browser.


Sorry, I interpreted your question wrongly...

Have you had a look through the SDK reference? It is part of the SDK download. I just had a look at the ImageView widget, and it has a public method called setImageURI or some such. I think it takes a Uri, which I assume can be pointed to an http:// one? Not sure...worth a try as a starting point though... 




Android user, software developer, a semi-typical (not a gamer) geek, and a Bernese Mountain Dog nut!

http://savitarbernese.com | https://nz.linkedin.com/in/danywu

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.