BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-20-2009, 03:07 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 9530
PIN: N/A
Carrier: o2
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Add image to mainscreen

Please Login to Remove!

Hi all, I am really struggling to find a solution to what seems a simpe issue. I have a url which is an image path to an image!

I want this displayed on my mainscren class on my blackberry app. What is the process i need togo through to get it displayed on the screen of my app?

Regards

brendan
Offline  
Old 08-20-2009, 05:35 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

And the image is stored where?

On the device?

On a server?
Offline  
Old 08-20-2009, 08:19 PM   #3 (permalink)
New Member
 
Join Date: Jul 2009
Model: 8830
PIN: N/A
Carrier: T-Mobile
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

As i understand your requirement, you should retrieve the image via http (reference to the http connection) and then put this image as a bitmap field in your mainscreen.
Offline  
Old 08-21-2009, 02:58 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 9530
PIN: N/A
Carrier: o2
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

but how to do i do that? Prob can suss out http connection to download via inputstream but how do i then put it on screen? That's what i'm struggling with.
Offline  
Old 08-21-2009, 03:27 AM   #5 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by brendanmc25 View Post
but how to do i do that? Prob can suss out http connection to download via inputstream but how do i then put it on screen? That's what i'm struggling with.
What is the response you are getting from the HTTPConenction? byte array or what? Create a Bitmap from the response that you are getting like create bitmap from byte array. THen proceed to use this bitmap to make your bitmapfield.

P.S. Its imp to mention how far you've reached and where exactly u r stuck so that we can provide more specific reply.
Offline  
Old 08-21-2009, 08:41 AM   #6 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

You need to work with some of the sample programs that ship with the JDE.

There is an HTTP demo, and there are several demo programs that place an image in the screen using BitmapField.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.