[android-developers] Re: Child View events in adapter for gallery

2010-12-09 Thread sunrises
Hi Treking,
Thank you for your reply
case 1:when I added click listeners for each image in the adapter then
the gallery app stopped scrolling, so I chosen another alternative
case 2:in which I used HorizontalScrollView which consists in
LinearLayout as child aging this LinearLayout contains a lot number of
LinearLayouts again each of these child LinearLayouts contains two
ImageViews as child for each ImageView I added OnClickListeners...It
is good if the images which are static, but Im downloading the Images
from my HTTP server.. it takes time to load the images and it some
times throws the unknown host exception(in OS 2.2, but  works better
in 2.1) even my network does not have any problems..Im not sure where
it is wrong...
I have used the asynchronous image loading for downloading the
images..still Im searching alternatives  to improve the scrolling and
downloading the images
My goals are:
1.designing layout as two rows and each row contains images which are
downloaded from the internet
which should have smooth horizontally scrolling
2.each ImageView should handle the click event seprately
3.Need  to down load the images asynchronously
Thank You

On Dec 9, 4:32 am, TreKing treking...@gmail.com wrote:
 On Tue, Dec 7, 2010 at 4:18 AM, sunrises surya@gmail.com wrote:
   I need to handle the user events separately for each ImageView..

 Then add click handlers separately to each ImageView.

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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] Re: Child View events in adapter for gallery

2010-12-09 Thread sunrises
My concept is similar to 
http://lifehacker.com/5636202/droidiris-is-a-gesture+based-google-images-search-tool

On Dec 9, 7:08 pm, sunrises surya@gmail.com wrote:
 Hi Treking,
 Thank you for your reply
 case 1:when I added click listeners for each image in the adapter then
 the gallery app stopped scrolling, so I chosen another alternative
 case 2:in which I used HorizontalScrollView which consists in
 LinearLayout as child aging this LinearLayout contains a lot number of
 LinearLayouts again each of these child LinearLayouts contains two
 ImageViews as child for each ImageView I added OnClickListeners...It
 is good if the images which are static, but Im downloading the Images
 from my HTTP server.. it takes time to load the images and it some
 times throws the unknown host exception(in OS 2.2, but  works better
 in 2.1) even my network does not have any problems..Im not sure where
 it is wrong...
 I have used the asynchronous image loading for downloading the
 images..still Im searching alternatives  to improve the scrolling and
 downloading the images
 My goals are:
 1.designing layout as two rows and each row contains images which are
 downloaded from the internet
 which should have smooth horizontally scrolling
 2.each ImageView should handle the click event seprately
 3.Need  to down load the images asynchronously
 Thank You

 On Dec 9, 4:32 am, TreKing treking...@gmail.com wrote:

  On Tue, Dec 7, 2010 at 4:18 AM, sunrises surya@gmail.com wrote:
    I need to handle the user events separately for each ImageView..

  Then add click handlers separately to each ImageView.

  -
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

-- 
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] Child View events in adapter for gallery

2010-12-07 Thread sunrises
Hi
I have a gallery(since I need horizontal scroll) application in which
I need to display images in two rows,for that I have written adapter
in which getView() will return a TableLayout which consists two
ImageViews,but my problem is whenever I select the item in the gallery
it returns the TableLayout object,but I need to handle the user events
separately for each ImageView..

Thank You

-- 
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] How to fix imageviews in customized 2d shapes

2010-11-22 Thread sunrises
Hi,
I need to fix images in customized 2D shapes,for example if we have a
2D diamond shape,I need to insert the image to that shape,I extended
the ImageView class and Im able to create diamond shape with the help
of canvas in onDraw() method..But Im unable to insert the image into
that diamond shape,please help 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] creating diamond shape

2010-11-21 Thread sunrises
Hi,
how can we create diamond shape view using 2D or 3D,I need to show the
Images in that customized view instead of default ImageView class
Thank you

-- 
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] Re: Dynamic images slide show along with context menu and about smooth swipe event..Urgent suggestion/Idea needed..

2010-08-22 Thread sunrises
waiting for suggestion...

On Aug 20, 10:26 am, sunrises surya@gmail.com wrote:
 Hi,thanks for your suggestions
 I have a lot of images to show as slide show,I did it using thread
 concepts in which a slide show thread continuously updates the UI for
 every 10 seconds(time interval between images) using handler, when
 user touches and moves his finger(horizontally towards left/right ) on
 the screen then the slide show should forward/backward images, I tried
 to accomplish it by implementing onTouch() method in OnTouchListener .
 But I did not get smooth swipe at all..please correct me...here is my
 code..
         public boolean onTouch(View v, MotionEvent event) {
                 switch (event.getAction()) {
                 case MotionEvent.ACTION_DOWN:
                         firstX=event.getX();//firstX is instance variable
                         break;
                 case MotionEvent.ACTION_MOVE:
                       if(firstX - event.getX()  SWIPE_DISTANCE){         //
 SWIPE_DISTANCE value 120)
                                 /*  here the code to show the next
 image by updating UI using handler and stops the slide show
                                    thread for 10 secs after that the
 slide show thread will starts again*/
                          }else if( event.getX()-firstX  
 SWIPE_DISTANCE){
                     /*  here the code to show the previous image by
 updating UI using handler and stops the slide show
                                     thread for 10 secs after that the
 slide show thread will starts again*/
                            }
                 }
                     }//end of method
 On Aug 19, 11:49 pm, TreKing treking...@gmail.com wrote:

  On Thu, Aug 19, 2010 at 6:46 AM, sunrises surya@gmail.com wrote:
   awaiting your Idea/suggestion
  On Thu, Aug 19, 2010 at 7:11 AM, sunrises surya@gmail.com wrote:
   No Solution?

  You expect someone to solve you problem in 25 minutes?
  It doesn't matter how urgent you think your problem is, it's really not -
  especially not to the rest of us.

  On Thu, Aug 19, 2010 at 6:46 AM, sunrises surya@gmail.com wrote:
   it forwards/ backwards more than one image,no smooth swipe

  That tells us exactly nothing. If you actually want help, you'll have to
  elaborate on the problem (like what you're doing now to swipe, and how
  you've tried to fix the problem).

  And do wait more than a half hour to bump your thread.

  -
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

-- 
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] Dynamic images slide show along with context menu and about smooth swipe event..Urgent suggestion/Idea needed..

2010-08-19 Thread sunrises
Hi,
I have to show the more than 150 images dynamically(so I did not
prefer ViewFlipper)  as slide show and I did it with the help of
threads and I presented it with context menu, but I have to show the
next image or previous image when user swipe the screen.. I tried it
by implementing OnTouchListener but when I tested it , it forwards/
backwards more than one image,no smooth swipe and context menu did not
appear at all...awaiting your Idea/suggestion
ThankYou.

-- 
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] Re: Dynamic images slide show along with context menu and about smooth swipe event..Urgent suggestion/Idea needed..

2010-08-19 Thread sunrises
No Solution?

On Aug 19, 4:46 pm, sunrises surya@gmail.com wrote:
 Hi,
 I have to show the more than 150 images dynamically(so I did not
 prefer ViewFlipper)  as slide show and I did it with the help of
 threads and I presented it with context menu, but I have to show the
 next image or previous image when user swipe the screen.. I tried it
 by implementing OnTouchListener but when I tested it , it forwards/
 backwards more than one image,no smooth swipe and context menu did not
 appear at all...awaiting your Idea/suggestion
 ThankYou.

-- 
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] Re: Dynamic images slide show along with context menu and about smooth swipe event..Urgent suggestion/Idea needed..

2010-08-19 Thread sunrises
Hi
Context menu disappear since I returned true value in onTouch()
function when implemented OnTouchListener, context menu problem
solved, but still swipe problem there..

On Aug 19, 5:11 pm, sunrises surya@gmail.com wrote:
 No Solution?

 On Aug 19, 4:46 pm, sunrises surya@gmail.com wrote:

  Hi,
  I have to show the more than 150 images dynamically(so I did not
  prefer ViewFlipper)  as slide show and I did it with the help of
  threads and I presented it with context menu, but I have to show the
  next image or previous image when user swipe the screen.. I tried it
  by implementing OnTouchListener but when I tested it , it forwards/
  backwards more than one image,no smooth swipe and context menu did not
  appear at all...awaiting your Idea/suggestion
  ThankYou.

-- 
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] Re: Dynamic images slide show along with context menu and about smooth swipe event..Urgent suggestion/Idea needed..

2010-08-19 Thread sunrises
Hi,thanks for your suggestions
I have a lot of images to show as slide show,I did it using thread
concepts in which a slide show thread continuously updates the UI for
every 10 seconds(time interval between images) using handler, when
user touches and moves his finger(horizontally towards left/right ) on
the screen then the slide show should forward/backward images, I tried
to accomplish it by implementing onTouch() method in OnTouchListener .
But I did not get smooth swipe at all..please correct me...here is my
code..
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
firstX=event.getX();//firstX is instance variable
break;
case MotionEvent.ACTION_MOVE:
  if(firstX - event.getX()  SWIPE_DISTANCE){ //
SWIPE_DISTANCE value 120)
/*  here the code to show the next
image by updating UI using handler and stops the slide show
   thread for 10 secs after that the
slide show thread will starts again*/
 }else if( event.getX()-firstX  
SWIPE_DISTANCE){
/*  here the code to show the previous image by
updating UI using handler and stops the slide show
thread for 10 secs after that the
slide show thread will starts again*/
   }
}
}//end of method
On Aug 19, 11:49 pm, TreKing treking...@gmail.com wrote:
 On Thu, Aug 19, 2010 at 6:46 AM, sunrises surya@gmail.com wrote:
  awaiting your Idea/suggestion
 On Thu, Aug 19, 2010 at 7:11 AM, sunrises surya@gmail.com wrote:
  No Solution?

 You expect someone to solve you problem in 25 minutes?
 It doesn't matter how urgent you think your problem is, it's really not -
 especially not to the rest of us.

 On Thu, Aug 19, 2010 at 6:46 AM, sunrises surya@gmail.com wrote:
  it forwards/ backwards more than one image,no smooth swipe

 That tells us exactly nothing. If you actually want help, you'll have to
 elaborate on the problem (like what you're doing now to swipe, and how
 you've tried to fix the problem).

 And do wait more than a half hour to bump your thread.

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-10 Thread sunrises
Hi,
I have got the solution please refer the link
http://groups.google.com/group/android-developers/browse_thread/thread/41852900bd603070/583943d91dc9f754?lnk=gstq=insufficient+memory#583943d91dc9f754
, but I added the option -partition-size 1024 in run
configurations-target-Additional Emulator Command Line Options
Thanks to All

-- 
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] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-10 Thread sunrises
Hi
Thanks for your suggestions, but I should kept the images within phone
only
again thanks to all

On Aug 10, 12:07 pm, Alessandro Pellizzari a...@amiran.it wrote:
 On Mon, 09 Aug 2010 23:02:23 -0700, sunrises wrote:
  I have got the solution please refer the link
 http://groups.google.com/group/android-developers/browse_thread/

 thread/41852900bd603070/583943d91dc9f754?lnk=gstq=insufficient
 +memory#583943d91dc9f754

  , but I added the option -partition-size 1024 in run
  configurations-target-Additional Emulator Command Line Options
  Thanks to All

 Only the Samsung Galaxy S has more than 1 GB of /data size.
 The Samsung Galaxy has 800 KB.
 Nearly all the other phones have about 150-250 MB in that partition.

 I would follow the suggestion others gave you, and would reduce the app
 size to a max of 2 or 3 MBs.

 Bye.

-- 
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] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
Hi,
I am working with android2.2 and I have large no.of Image files and
total size of those files more than 30 MB and I have stored them in
asset folder, while Im trying to run the emulator,it shows the 
Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE  in console
and It does not show any thing regarding my application even launcher
icon also..
how shall we put all the 30 MB data in android project?

-- 
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] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
Hi, thanks for your reply,but I should need to store them as phone
memory,I did not get appropriate answer even I googled for the maximum
project size for android and .apk file , I did lot of projects by
downloading from net..I need alternative solution..

On Aug 10, 3:56 am, William Ferguson william.ferguson...@gmail.com
wrote:
 Don't include them with your application.
 When the application first starts, if the external storage contains
 enough space, download your images and store them there.
 For what its worth, I wouldn't download an mobile app that was 30MB,

 On Aug 9, 10:03 pm, Rahul rahulvarma.kalidindi0...@gmail.com wrote:

  Hi,

  I have the same problem too... Can anyone tell me how to insert huge
  amount of data(say 30-40 mb of images) on my application...

  On Aug 9, 3:54 pm, sunrises surya@gmail.com wrote:

   Hi,
   I am working with android2.2 and I have large no.of Image files and
   total size of those files more than 30 MB and I have stored them in
   asset folder, while Im trying to run the emulator,it shows the 
   Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE  in console
   and It does not show any thing regarding my application even launcher
   icon also..
   how shall we put all the 30 MB data in android project?

-- 
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] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
Hi, thanks for your reply,but I should need to store them as phone
memory,I did not get appropriate answer even I googled for the maximum
project size for android and .apk file , I did lot of projects by
downloading from net..I need alternative solution..

On Aug 10, 3:56 am, William Ferguson william.ferguson...@gmail.com
wrote:
 Don't include them with your application.
 When the application first starts, if the external storage contains
 enough space, download your images and store them there.
 For what its worth, I wouldn't download an mobile app that was 30MB,

 On Aug 9, 10:03 pm, Rahul rahulvarma.kalidindi0...@gmail.com wrote:

  Hi,

  I have the same problem too... Can anyone tell me how to insert huge
  amount of data(say 30-40 mb of images) on my application...

  On Aug 9, 3:54 pm, sunrises surya@gmail.com wrote:

   Hi,
   I am working with android2.2 and I have large no.of Image files and
   total size of those files more than 30 MB and I have stored them in
   asset folder, while Im trying to run the emulator,it shows the 
   Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE  in console
   and It does not show any thing regarding my application even launcher
   icon also..
   how shall we put all the 30 MB data in android project?

-- 
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] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
Hi, thanks for your reply,but I should need to store them as phone
memory,I did not get appropriate answer even I googled for the maximum
project size for android and .apk file , I did lot of projects by
downloading from net..I need alternative solution..

On Aug 10, 3:56 am, William Ferguson william.ferguson...@gmail.com
wrote:
 Don't include them with your application.
 When the application first starts, if the external storage contains
 enough space, download your images and store them there.
 For what its worth, I wouldn't download an mobile app that was 30MB,

 On Aug 9, 10:03 pm, Rahul rahulvarma.kalidindi0...@gmail.com wrote:

  Hi,

  I have the same problem too... Can anyone tell me how to insert huge
  amount of data(say 30-40 mb of images) on my application...

  On Aug 9, 3:54 pm, sunrises surya@gmail.com wrote:

   Hi,
   I am working with android2.2 and I have large no.of Image files and
   total size of those files more than 30 MB and I have stored them in
   asset folder, while Im trying to run the emulator,it shows the 
   Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE  in console
   and It does not show any thing regarding my application even launcher
   icon also..
   how shall we put all the 30 MB data in android project?

-- 
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] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
Hi, thanks for your reply,but I should need to store them as phone
memory,I did not get appropriate answer even I googled for the maximum
project size for android and .apk file , I did lot of projects by
downloading from net..I need alternative solution..

On Aug 10, 3:56 am, William Ferguson william.ferguson...@gmail.com
wrote:
 Don't include them with your application.
 When the application first starts, if the external storage contains
 enough space, download your images and store them there.
 For what its worth, I wouldn't download an mobile app that was 30MB,

 On Aug 9, 10:03 pm, Rahul rahulvarma.kalidindi0...@gmail.com wrote:

  Hi,

  I have the same problem too... Can anyone tell me how to insert huge
  amount of data(say 30-40 mb of images) on my application...

  On Aug 9, 3:54 pm, sunrises surya@gmail.com wrote:

   Hi,
   I am working with android2.2 and I have large no.of Image files and
   total size of those files more than 30 MB and I have stored them in
   asset folder, while Im trying to run the emulator,it shows the 
   Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE  in console
   and It does not show any thing regarding my application even launcher
   icon also..
   how shall we put all the 30 MB data in android project?

-- 
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] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
HI,
I have a lot of images which are approximately 30 MB,I had put them in
assets folder but while try to run the emulator it shows the
Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE in
console,please me how to I need to use them for android application
and I have tried by increasing heap size but no use,please tell me the
solution.. what is maximum file size for android project.

-- 
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] Re: show more photos

2010-01-28 Thread sunrises
Thank you Nerdrow

On Jan 29, 3:55 am, Nerdrow troybe...@gmail.com wrote:
 - cache the images to disk
 - use a ListString to store the paths to the cached images
 - extend a BaseAdapter and use the ListString as your data source
 - add a setPage(int page) method to set which page of 10 images you're
 on
 - in getView() adjust the value of position to account for the page
 index

 quick example from memory:

 public class PagedPhotoAdapter extends BaseAdapter {

   private static final int PHOTOS_PER_PAGE = 10;

   private final LayoutInflater mInflater;
   private final ListString mPhotoPaths;
   private final int mPageCount;

   private int mPage = 0;

   public PagedPhotoAdapter(Context context, ListString photoPaths) {
     mInflater = LayoutInflater.fromContext(context);

     mPhotoPaths = photoPaths;

     mPageCount = (mPageCount.size()/PHOTOS_PER_PAGE);
   }

   public void setPage(int page) {
     mPage = page  0 ? 0 : page  mPageCount ? mPageCount : page;
   }
   @Override public int getCount() {
     return PHOTOS_PER_PAGE;
   }
   @Override public Object getItem(int position) {
     return position;
   }
   @Override public int getItemId(int position) {
     return position;
   }
   @Override public View getView(int position, View convertView,
 ViewGroup parent) {
     final int adjPosition = ((PHOTOS_PER_PAGE * mPage)+position)-1;

     final ImageView imageView =
       (ImageView)(convertView==null?mInflater.inflate
 (R.layout.layout_id, null):convertView);

     imageView.setImageBitmap(BitmapFactory.decodeFile(mPhotoPaths.get
 (adjPosition)));

     return imageView;
   }

 }

 On Jan 28, 4:40 am, surya prakash surya@gmail.com wrote:



  Hi
  I am getting photos from website and display them in Grid view, but
  here I do not want display all of them at time,
  1. I want show only 10 photos and a more link below the grid , but i
  can display more link at top, how can I add it at bottom?
  2.when user click on more it should display the another 10 photos
  only, I need to refresh the grid, how can we refresh the grid?

  Thank  you

-- 
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] Re: show more photos

2010-01-28 Thread sunrises
Thank you Frank Weiss

On Jan 29, 8:11 am, Frank Weiss fewe...@gmail.com wrote:
 It may also help you to look at Romain Guy's PhotoStream demo application.
 The source is available at code.android.com.

-- 
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] How to add core java libraries

2009-12-26 Thread sunrises
Hi,
I have to add java libraries javax.xml to the my android project,
while I am trying to add them it shows the error Conversion to Dalvik
format failed with error , please help me
Thank you

-- 
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] Re: How to add core java libraries

2009-12-26 Thread sunrises
Thanks Mark,
Please will you provide alternative , or any hints?


On Dec 26, 5:22 pm, Mark Murphy mmur...@commonsware.com wrote:
 sunrises wrote:
  I have to add java libraries javax.xml to the my android project,
  while I am trying to add them it shows the error Conversion to Dalvik
  format failed with error , please help me

 You cannot safely do that. I would find an alternative parsing engine
 that does not rely upon javax.xml classes beyond those already in Android.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 _Android Programming Tutorials_ Version 1.0 In Print!

-- 
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] Re: How to add core java libraries

2009-12-26 Thread sunrises
Thanks Mark,
Actually I need to develop XMLRPC client in adnroid for XMLRPC server,
I have used Apache XMLRPC libraries which are working in java, not in
android,since those need javax.xml libraries

On Dec 26, 5:45 pm, Mark Murphy mmur...@commonsware.com wrote:
 sunrises wrote:
  Please will you provide alternative , or any hints?

 I have absolutely no idea what you are trying to do, other than add
 something from javax.xml to your application. If you ask a very
 low-level question, you will get a very low-level answer.

 Generally speaking, Android already has three XML parsers (DOM, SAX, and
 XPP), so you should stick with one of those, or libraries that only
 require one of those.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 _Beginning Android_ from Apress Now Available!

-- 
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] Re: How to add core java libraries

2009-12-26 Thread sunrises
Thanks Mark

On Dec 26, 6:17 pm, Mark Murphy mmur...@commonsware.com wrote:
 sunrises wrote:
  Actually I need to develop XMLRPC client in adnroid for XMLRPC server,
  I have used Apache XMLRPC libraries which are working in java, not in
  android,since those need javax.xml libraries

 http://code.google.com/p/android-xmlrpc/

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 _Beginning Android_ from Apress Now Available!

-- 
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] My program if fine in emulator but not on device, Inflate Exception

2009-11-22 Thread sunrises
Hi,
I write a Gallery program to display photos from sdcard, it shows the
photos fine but when user clicks on photo, it needs to display a
dialogue box or toast, it also works in emulator but not in G1 device
it shows errors like
android.view.InflateException: Binary XML file line #46: Error
inflating class java.lang.reflect.Constructor
I could not find the right solution
Thank you

-- 
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] Using third party libraries

2009-11-18 Thread sunrises
Hi
In my project I am using org.apache.commons library and my application
runs well in the emulator, but when I published as a signed
application in another emulator or g1 device it does not working
especially the apache library classes,but  user interface and
databases which are related to android are working fine.. and how can
we get the log information in emulator, or g1 device after installing
application...
Thanks

-- 
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