[android-developers] Gallery View and SQLite database
Hi all, I have a sqlite database of 100+ low res images saved as Blob data. I am creating an App that has a GalleryView and I would like to display the 100+ images from my database in this view. The user can scroll through the horizontally scrolling list and select the one he wants to see full screen. I am using a sample app that takes sample images from 'res/drawable' folder to display them on the gallery view. I would like to do the same but pull images from the database instead. Can someone guide me? Thanks, AB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery view image zoom option in multi touch..
Hi every one, i did gallery view program in this gallery view have some images it will be displayed one by one. i need to zoom which images is viewed. so anyone know the idea share with me... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery view problems - external memory
Hi all, I have developed a very simple gallery (it started as the hello gallery example) where I have added code to get the images from the content provider. It should return all images from the SD card but it is returning no images, my gallery view is blank. I am a fairly new developer, just working my way around the tutorials online. Here is the code. package com.tutorials; import java.util.ArrayList; import android.app.Activity; import android.content.ContentResolver; import android.content.Context; import android.content.res.TypedArray; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore.Images.Media; import android.provider.MediaStore.Images.Thumbnails; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.BaseAdapter; import android.widget.Gallery; import android.widget.ImageView; import android.widget.Toast; public class HelloGallery extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Gallery g = (Gallery)findViewById(R.id.gallery); g.setAdapter(new ImageAdapter(this)); g.setOnItemClickListener(new OnItemClickListener(){ public void onItemClick(AdapterView parent, View v, int position, long id){ Toast.makeText(HelloGallery.this, + position, Toast.LENGTH_SHORT).show(); } }); } public class ImageAdapter extends BaseAdapter{ int mGalleryItemBackground; private Context mContext; //get images from phone public ArrayListUri getImageTable(){ ArrayListUri arrayList = new ArrayListUri(); try{ ContentResolver cr = getContentResolver(); String imageId = Media._ID; Toast toast = Toast.makeText(mContext,imageId,Toast.LENGTH_LONG); toast.show(); String [] images = new String[]{imageId}; //Get Uri of ContentProvider MediaStore.Images.ImageColumns Uri mediaUri = Thumbnails.EXTERNAL_CONTENT_URI; Cursor managedCursor = managedQuery(mediaUri, images, null, null, null); startManagingCursor(managedCursor); int columnIndex = managedCursor.getColumnIndexOrThrow(imageId); for(int i=0;imanagedCursor.getCount();i++){ managedCursor.moveToPosition(i); int id = managedCursor.getInt(columnIndex); arrayList.add(Uri.withAppendedPath(mediaUri, + imageId)); } }catch(Exception e){ Toast toast = Toast.makeText(mContext,e.toString(),Toast.LENGTH_LONG); toast.show(); } return arrayList; } public ImageAdapter(Context c){ mContext = c; TypedArray a = obtainStyledAttributes(R.styleable.HelloGallery); mGalleryItemBackground = a.getResourceId( R.styleable.HelloGallery_android_galleryItemBackground, 0); a.recycle(); } @Override public int getCount() { // TODO Auto-generated method stub return 0; } @Override public Object getItem(int position) { // TODO Auto-generated method stub return position; } @Override public long getItemId(int position) { // TODO Auto-generated method stub return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub ImageView i = new ImageView(mContext); //i.setImageResource(mImageIds[position]); i.setImageURI(getImageTable().get(position)); i.setLayoutParams(new Gallery.LayoutParams(150, 100)); i.setScaleType(ImageView.ScaleType.FIT_XY); i.setBackgroundResource(mGalleryItemBackground); return i; } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
[android-developers] Gallery view
Hello all I have multi-listeners on gallery view, first listener is on the image located in the gallery, the second listener is longpress of gallery item, and the third is ontouch event. I use the otouch event in order to drag the image to down, the problem is when I scroll the gallery the horizontally the ontouch is invoked and with scrolling the view is dragged. Can I now that the gallery is now scrolling so I deactivate the dragging, or any solution. any help is appreciated. thanks -Anas Samara -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery View Null covertView
Good afternoon, Does anyone at Google know when the null return for Gallery view may be resolved? I know it was slated for long ago but didn't make it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Gallery View Null covertView
There is not ETA for now. On Tue, Aug 10, 2010 at 12:10 PM, SImplyG2010 thomas.sheppar...@gmail.com wrote: Good afternoon, Does anyone at Google know when the null return for Gallery view may be resolved? I know it was slated for long ago but didn't make it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery View Customization
Hi All, i want to customize the Gallery widget like a conveyer belt having icons. Please note that this icons conveyer chain is of circular nature that is if there are 5 icons and user is navigating towards left side so icons which gets disappeared at right side, again appears back on left side of chain… just think of a circular ring. Please see the link below [url]http://101bestandroidapps.com/app/UltimateFavesPRO/556/[/url] how can create that.. please suggest me.. Thanks Giri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery view weird green color
Hi, i use Gallery, and don't know why the background color has weird green color on sdk 2.1. It didn't happen on 1.5. Please help. thx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery view not working well
I am facing a problem in scrolling in Gallery view. When i scroll slowly it works fine but when i scroll fast the it shows jerks as it takes time to create objects to display. Can anybody tell how can i implement this in separate thread to load images in gallery so that it would not affect the scrolling. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery View with Text: Styling
I currently have a Gallery Widget very similar to Gallery2.java in the API examples. It is a gallery widget populated by a simple adaptor of text. What I am trying to do is make the selected (the item at the center of the gallery widget) text and background a certain color and the other visible items a different color. It should be a simple task, but I am unable to find a tutorial or the place in which to insert these options. Code which will modify the existing Gallery2.java to display the center item as Red for example whereas the other items remain the gray color would be very helpful. Many thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery View using images from file (Dynamic vs. Static images)
The api demo for gallery uses resource id's to access the drawables in the gallery. I have tried multiple ways to use images from file. My steps... - 1. grab filepaths and save all files as a drawable array - 2. using the same logice in the api demo, I ste the background to the drawable instaed of the resid That's All I felt the need to replace from the api demo, which seems to fail miserably since the images do not appear in my test app. If you have any hints to help with this let me know, Thanks Billy Y --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---