Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Android


Advertisements:








Android :: Click On Image / Pass Image To Another Activity / Page


I am very new to Android (and Java) originally a C# developer.. and am struggling with the concepts and terminology.
I have been through almost all the tutorials and have decided to start on my first test app.The first part of my app is going to involve using the gallery widget (based on the hello gallery tutorial) to display a load of images. (these images will eventually come from the phones camera, but I will cross that bridge later!) My images are currently stored in the drawable folder in my project.As a first step I want to just have the user click on an image and it pops up full screen, just so I know how to get reference to it, but I am struggling. Evetually I want the user to click an image, then a window/activity(?) will open asking them for a bit of text. This will then be store in sqllite against the image. Code...


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Android :: Pass Value Back To Same Activity On Button Click And Refresh Page?
I need to pass a value back to the same activity and refresh the activity to generate new data. Can anyone please provide me some ideas/guidance on how to do it?
I had try using intent to call the same activity but it doesn't work. Here is the code which i tried to use intent code...

View Replies!   View Related
Android : Pass Image To Another Activity?
I figured out how to pass a String value between activites thanks to this site, however I'm having trouble passing an image. What I'm trying to to is have a user click a button that opens the gallery and allows selecting of a picture. Then I have another button that opens another activity that displays an ImageView. I want to be able to have that ImageView's image be the chosen one from the previous activity.

Here is the class that has the button I'm clicking to open the gallery and retrieve the chosen image: code...

What I'm not sure about is in the OnActivityResult if I should pass the selectedImage or the chosenimage in the b.putExtra("bitmap", selectedimage); line. I tried both but I didn't see an image on the second activity. Also I wasn't sure in the PreviewScreen class if I'm setting the imageview correctly. Any help is appreciated. Thanks.

View Replies!   View Related
Android :: Reverse Image Load Order - Loading Animation In A Image View While The Real Image Is Loaded?
I use http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview/3068012#3068012 to load images in a ListView and a GridView. It works but the images are loaded form bpttom to top. How to fix that?

Bonus Question: Can I use a loading animation in a image view while the real image is loaded? Right now it's just a default image.

View Replies!   View Related
Android :: Pass Image To New Intent
I've got a problem My app show a first layout like: Gridview1 (3 images in 1 row) ImageView1 (1 image) Gridview2 (3 images in 1 row) ImgaeView2 (1 image) Gridview3  (3 images in 1 row) ImgaeView3 (1 image) When you clik over an image it will be open full screen in a second layout, The problem was that I don't know how to pass the image to the new intent. Now I've the next code:

public AdapterView.OnItemClickListener pulsarImagen = new AdapterView.OnItemClickListener()     {                 public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,long arg3)                 {                         Intent intent = new Intent(GridViewer.this , GalleryViewer.class);                         intent.putExtra("id", arg0.getItemIdAtPosition (arg2));                         startActivity(intent);                         //finish();                 }     };

But the ItemID is always 0. Before I've only one gridview and then I passed the item's position. But now I've 3 different gridviews and I don't know if the position of item selecte it's from gridview 1,2 or 3. I supose that the great solutin it will be to pass the id resource (image) but I don't know how to pass it. Can you help me?

View Replies!   View Related
Android :: What Is Radio Image / Flash Image / System Image?
It will be helpful if any one can help me out in understanding the concept of radio,flash,system image in android mobile device. Also why are they required? and what is their role in Device?

View Replies!   View Related
Android :: Need To Make An Image Click Able?
I'm kind of new to this whole thing so I need some help. I have an application that creates an Image View On Create. I want to make this image click able and have it open a browser to a specific link. How would I do this? I'm having trouble specifically with the setOnClickListener because the parameters are not accepting an OnClickListener. I'm developing for Android 1.6

View Replies!   View Related
Android :: How To Make An Image Easier To Click?
I placed an image in each List View Item at the right side,In the layout xml,I set its width and length as 20dip ,kind of small,and I find it is hard to click at it cause the image only occupied 20*20 dip,I hope the length of it doesn't change,while its height full filling the parent,
I tried :android:layout_width="20dip"
android:layout_height="fill_parent"
but it doesn't work. Below is my xml:
<Relative Layout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/item"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="6dip"
android:background="#FFFFFF">
<Image View android:id="@+id/avatar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin Right="6dip"
android:src="@drawable/default_happy_face"/>

View Replies!   View Related
Android :: Display Dropdown On Click Of Image
In my android application, i am displaying images of different categories.When i click on these images i would like to get a small list of the items in that particular category.What should i use for that.I am not sure which control will satisfy this and how can i use it.Could any one please suggest me with a solution?

View Replies!   View Related
Android :: Apply Click Event To Image In Droid With Source Code?
I want to apply click event to image .how to apply with source code

View Replies!   View Related
Android :: Developer To Write An Image Application / Google Image Search API
Eldev LLC is looking for android developer familiar with google image search API to write a new application.

View Replies!   View Related
Android :: Capture Much Larger Image Than The Current Small Image Captured By G1
I want to capture much larger image than the current small image captured by the android g1 phone camera.

View Replies!   View Related
Android :: Image Transparency - Load An Image File Into An ImageView Object
Is there a way to load an image file into an ImageView object, and then define a transparent color for this object?

View Replies!   View Related
Android :: View Multiple Image With System Image Viewer
We can view an image with What if we have some images? How can we put the extras to let the viewer know we have /sdcard/a.jpg, /sdcard/b.jpg, /sdcard/c.jpg ? I hope to do this in a time because starting an activity is very expensive. Code...

View Replies!   View Related
Android :: Change Source Image For Image View When Pressed
I have a scroll view with lots of image buttons. I want to change the image for an image button when it's pressed. The thing is that I want the image to remain until another image button is pressed. That's why I couldn't use a selector. What is the best practice to achieve his?

View Replies!   View Related
Android :: Show Loading Image Of GIF Image For A Finate Time?
I want to show a loading Image of GIF type for a finite time .how to do this. Please tell me the solution if anyone knows.

View Replies!   View Related
Android :: Trying To Open New Image On Clicking A Image Button
Can anybody please guide me how to write the code for opening the new image after clicking the imagebutton in android. I have tried something like this:
package com.example.imageButton;
import android.app.Activity; import android.os.Bundle;
import android.view.View; import android.widget.ImageButton;
public class imageButton extends Activity {
private static ImageButton seqIBtn;//these are the three imageButton private static ImageButton vidIBtn;private static ImageButton infoIBtn; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); seqIBtn = (ImageButton) findViewById(R.id.btnSequence); vidIBtn = (ImageButton) findViewById(R.id.btnVideo); infoIBtn = (ImageButton) findViewById(R.id.btnInfo);}

View Replies!   View Related
Android :: Use Built In Image Viewer To Display Image
Just wondering if its possible to use the built in image viewer to display an image sourced from a database. I'm hoping I can pass the byte[] as an extra to the ACTION_VIEW intent, but can't find any docs on it so far. Alternatively I'll have to roll my own viewer or first write the image out to a file and pass that to the intent.

View Replies!   View Related
Android :: Image Capture / Get Both Original Image / A Thumbnail
I want to take a picture with camera, after read the document and googling,I found, if i don't want the original picture,i just use
Code...

View Replies!   View Related
Android : How Can I Layout 1 Image View On Top 1 Image On Bottom
I have a vertical LinearLayout. I would like to layout 1 ImageView on top and 1 ImageView at the bottom of that LinearLayout. I tried putting 'android:gravity="top"' and 'android:gravity="bottom"' in each of the ImageView, but both ImageView appears at the top of the LinearLayout. Is there a way to fix it?

CODE:................

View Replies!   View Related
Android :: Custom Background Image Show Click Animation In Android
How to make button show it is clicked (by setting it go down/some change) for buttons using custom background image in Android.
I do not want to include more images and set different one to different states like shown in google hello views example.

View Replies!   View Related
Android : Changes In Crop Image Activity?
We are facing problem with cropimage activity, is there any changes? it gives error related to permission.

java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.EDIT dat=content:// media/external/images/media/12 cmp=com.android.camera/.CropImage (has extras) } from ProcessRecord{43b72040 374:com.abc/10028} (pid=374, uid=10028) requires null

View Replies!   View Related
Android :: How To Get Which Image Is On Focus In An Image Gallery?
I am playing around with the Gallery widget.I would like to know how can we get the position of the image on focus in the gallery. For example having several pictures in my gallery, if I tap my finger to the right, pictures will come and go until it stop to one. How one can get the position of this one picture that is currently on focus ?I don't know if I was clear enough, if there is anything you want me to add do not hesitate.

View Replies!   View Related
Android :: Zooming Image About Centre Of Image
I have an android application that needs to zoom an image about centre. i implemented the code...

View Replies!   View Related
Android :: Display Image In Image Viewer
I'd like to show a png in the built-in image viewer. Code...

View Replies!   View Related
Android :: How To Add Decorator Image On Top Of Image View?
I have an ImageView in my android layout. And I would like to add a 'decorator' image at the lower right corner of my image view. Can you tell me how can I do it? I am thinking of doing with a FramLayout with 2 image views as its child, but how can i make one image the lower right corner of another?

View Replies!   View Related
Android :: Image Intent From URL To Browser Or Other Activity
I want to have an image open from a URL to an intent, most likely the browser or maybe a picture previewer like the one built into twidroyd.I've gotten plain URLs to open to the browser. I just can't figure out what action or category to specify,

View Replies!   View Related
Android :: Want To Create A ListView Activity With An Image In Every Row
I have been trying to create a ListView Activity with an ImageView in every row. I've used this tutorial: http://developer.android.com/resources/samples/ApiDemos/src/com/examp... The issue is that there are always some dividers missing whenever I run the example. The dividers are disappearing/appearing and flickering as i scroll the list (tested in emulator and HTC Tattoo). Strange is that the same example downloaded from the market (API Demos app) behaves correctly. Here is a screenshot of how it looks: http://yfrog.com/4cnokp.

View Replies!   View Related
Android :: How To Assign An Image To A Button In My Activity
I want to assign an image to one of the buttons in my activity??

how do i do that??
and for that where shall i place image.jpeg or any othr image file??

View Replies!   View Related
Android :: Activity Image Background Size?
I am a bit confused on creating an image which will be acting as a background for my activities. So, in short, my aim is that my application should be able to fit the different screen sizes. Therefore, what size in pixel should my three images be to be able to fill the screen of the device in ldpi, mdpi and hdpi?

View Replies!   View Related
Android : How Can I Get Image Resource ID / Send It To Other Activity?
I am using a GridView. It contains images. When I click on any item of this grid view I want this image Resource ID to be sent to another activity. Where can I display this image in larger size?
How can I get Image Resource ID and send it to other activity?

View Replies!   View Related
Android : Render An Activity To Image File?
I know you can't take a screenshot without having root access, but is there a way to render an activity and all the contents to an image file?

anyone have code to do this? it would be nice to have any dialogs, menus, etc... as well, but not required.

View Replies!   View Related
Android :Can I Add Image Buttons In Each Droid Activity?
Can any one guide me how to add some menu related buttons at the bottom of each activity?

View Replies!   View Related
Android : How To Add A Background Image To Droid Activity
My goal is to develop a GUI application on top of a background image with buttons in specific places on the image. The first step is to display the background.

The image can be displayed with resources and is described in several FAQs including this one:

how-to-add-background-image-to-activity

It compiles and runs without errors, but the background is black. Here is the main.xml file:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@+id/rootRL" xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background">
</RelativeLayout>

The image has been in png, 9.png, and jpg format with basenames of 'main' and 'background'. It builds but does not display. Making clean and recompiling does not help.

This behavior occurs on both the emulator and on hardware -- an Atmel AT91SAM9M10-G45-EK. The SDK version is 2.0.1.

View Replies!   View Related
Android :: How To Update Image At Refreshing Page In Android?
Is any possibility to update the image in the image button or image view at the time of refreshing the page in android.

View Replies!   View Related
Android :: Image Capture Intent / Activity Not Get Called
I start an IMAGE_CAPTURE Intent like this, and my activity's onActivityResult() get called: Intent i = new Intent (android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null); i.putExtra("return-data", true);
startActivityForResult(i, PICK_ICON_FROM_CAMERA_ID);
But, if I start my Intent like this, the Capture Image Intent did get called, but my activity's onActivityResult() never get called:
Intent i = new Intent (android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null); i.putExtra(MediaStore.EXTRA_OUTPUT, Uri.parse("file:/" + "MyTestFile")); i.putExtra("outputFormat", Bitmap.CompressFormat.PNG.name());
startActivityForResult(i, PICK_ICON_FROM_CAMERA_ID);

View Replies!   View Related
Android :: How To Upload Image Taken By Calling Camera Activity?
I have an image which is taken from andorid by calling image _capture how do i upload it to a windows server?

View Replies!   View Related
Android :: Error Showing Image After Switching Activity
i'm having the above problem when switching my activity. In the first activity i have a GalleryView showing all my images and an ImageView show the selected image from the gallery. Now i want to switch to the next activity and keep the same image from the ImageView on screen in the second activity. Here is how i show my images:Is there like an id or something saying what's on screen at the moment of the switch? How can i accomplish this?

View Replies!   View Related
Android :: Loading Random Image When Activity Is Brought Up - Not Working ?
I've been staring at this for hours. It compiles fine with no errors and loads the activity on my nexus. The button and the menu items load fine with no issues at all. It's simply not loading any of the drawables i'm specifying :/ any ideas what I did wrong?

All I want is whenever this activity is brought up it randomly chooses an image from the drawables i specify.

CODE:...........................

View Replies!   View Related
Android :: Way To Have Image Overlaid Over Another Image
Is there a way to have an image overlaid over another image. For example, I have an instance where I have an imageview and I would like another imageview to take up the same space and appear over the first image. I don't know if there is a way of doing this. I tried putting the second imageview within the first imageview, but that's apparently not allowed in the layout xml files. So is there perhaps a way of doing it with a different layout, such as absolute or frame?

View Replies!   View Related
Android :: Moving Image Over Another Image?
I need to design a board UI using android platform. i was planning to take one image as board and moving the required images over the board. How do i achieve the same? I need to split the board based on coordinates and  need to move the required images to specifies coordinates. Is there any andorid api for image movements and animation?

View Replies!   View Related
Android :: When Save Image - Specify Image Name?
I have the following code to save a bitmap to a jpg file.

It works except I couldn't specify the file name.

The image file is save in /sdcard/dcim/Camera.

How do I specify a file name, or even the saved path?

CODE:.......................

View Replies!   View Related
Android :: Scale Image To Maximum Size In Dialog-style Activity
I have an activity which uses android:theme="@android:style/Theme.Dialog". The activity contains an ImageView which can show images of different dimensions. The ImageView should scale the Image so that it entirely fits into the window, at least on axes fits entirely and maintains the original aspect ratio. The size of the dialog should only be as large as the ImageView (plus its border width).

I tried the following but the dialog window always uses the whole available space:

code:............................

View Replies!   View Related
Android :: Did Google Remove Ability To Call Crop Image Activity From 2.x Apps?
I'm no longer seeing an Intent Filter declared for the CropImage activity in the Eclair ... is there another way to re-use this activity? http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=...

View Replies!   View Related
Android : Can I Pass String To Another Page?
I am new to Android development. I want to transfer transfer my String(username) to another page.. i m having some problems on it...so wil u please tel me the answer..

View Replies!   View Related
Android :: Image View That Is Fixed Size Regardless Of Image Size
I have an ImageView which I want to always be the same size. If the image is smaller than the view, I'd like it to be centred in the view. If the Image is larger than the view then I'd like it scaled down - with aspect ratio preserved.I've had several attempts at this myself

View Replies!   View Related
Android :: How Can We Pass Two String Values Of One Activity To Another Activity
first.java String[] items={"one","two"}; Bundle map = new Bundle(); map.putStringArray ("link",items); Intent myintent = new Intent(view.getContext(),two.class); myintent. put Extras (map) ;startActivityForResult(myintent,0); second.java Bundle map=this. get Intent() .getExtras(); String links=map.getString("link"); tell me that how can i get the two string values from one activity to another one. such as links[0]="one"; and links[1] ="two";

View Replies!   View Related
Android :: Starting Second Activity From Main Activity On Button Click
Need an example of how to create/start a new activity from the main activity. I have a button click event on the main layout. Originally I just used setContentView(R.layout.secondactivity); which brings up the layout but I don't think that is correct since the secondactivity class is not instantiated at this point yet. I have looked for such an example and can not find one.

View Replies!   View Related
Android :: Pass Data To New Activity
I have two activity in my project. I am callilng second activity from main activity. can some one tell me how can i pass some data to that activity? Simply i want to pass object array. Can some one tell me how can i do it ?

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved