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

5015 posts

Uber Geek
+1 received by user: 1001

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


 
 
 
 


Try Wrike: fast, easy, and efficient project collaboration software


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 »

Opera launches new mobile browser: Opera Touch
Posted 25-Apr-2018 20:45


TCF and Telcos Toughen Up on Scam Callers
Posted 23-Apr-2018 09:39


Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38


Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55


How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08


How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15


iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13


Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11


111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50


Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41


Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29


Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22


Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18


Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47


Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25



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.