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

5106 posts

Uber Geek
+1 received by user: 1059

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:





News »

Microsoft Dynamics 365 Business Central launches
Posted 10-Jul-2018 10:40


Spark completes first milestone in voice platform upgrade
Posted 10-Jul-2018 09:36


Microsoft ices heated developers
Posted 6-Jul-2018 20:16


PB Technologies charged for its extended warranties and warned for bait advertising
Posted 3-Jul-2018 15:45


Almost 20,000 people claim credits from Spark
Posted 29-Jun-2018 10:40


Cove sells NZ's first insurance policy via chatbot
Posted 25-Jun-2018 10:04


N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07



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.