[android-developers] Re: Ynt: Gallery view image zoom option in multi touch..

2011-09-18 Thread ragupathi ragupathi
Hi,
   Sorry for the delay im tried your code its showing error on the
getScaleX() and getScaleY() methods. If u dont any other idea?

-- 
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] Play video with based on orientation

2011-09-12 Thread ragupathi ragupathi
Hi every one,
 im new one for android. im developing one application that
application getting videos from sd card and display thumbnail view.
after user click any one video it will be play its working fine to me.
but if that video file is taken from landscape means it will be play
landscape, or that video file taken from portrait means it will play
portrait view.so i search this long time but i could not find
anything. so any one knows any idea share with me.




Thanks  Regards
MMRPs

-- 
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] drag and drop in api level 3

2011-08-02 Thread ragupathi ragupathi
Hi android developers,

Im developing one app. its working fine in that app home screen have
multiple views i want switching that views user needs. like HTC mobile
home screen icons. if any one have 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 image zoom option in multi touch..

2011-07-25 Thread ragupathi ragupathi
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] Custom GridView with ArrayAdapter out of sync with backing data

2011-07-07 Thread ragupathi ragupathi
Hi every one,
 im developing one program for android gridview and displaying
images from getting images in sdcard and displayed. when i click one
image need to add one images in that gridview child. its working
fine.. bit my problem is when im scrolling down the un selected images
was highlighted. here im post my code..


package com.SdcardIma;


import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;

/**
 * Loads images from SD card.
 *
 * @author Mihai Fonoage
 *
 */
public class SdcardIma extends Activity implements
OnItemClickListener {

/**
 * Grid view holding the images.
 */
private ListString pathlist=new ArrayListString();

private ListObject viewList=new ArrayListObject();
private ListInteger checkList=new ArrayListInteger();
private int count =0;
private GridView sdcardImages;
  //  private boolean isVisble = false;
/**
 * Image adapter for the grid view.
 */
private ImageAdapter imageAdapter;
/**
 * Display used for getting the width of the screen.
 */
private Display display;

/**
 * Creates the content view, sets up the grid, the adapter, and
the click listener.
 *
 * @see android.app.Activity#onCreate(android.os.Bundle)
 */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Request progress bar
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.main);

display = ((WindowManager)
getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();

setupViews();
setProgressBarIndeterminateVisibility(true);
loadImages();
}

/**
 * Free up bitmap related resources.
 */
protected void onDestroy() {
super.onDestroy();
final GridView grid = sdcardImages;
final int count = grid.getChildCount();
ImageView v = null;
for (int i = 0; i  count; i++) {
v = (ImageView) grid.getChildAt(i);
((BitmapDrawable) v.getDrawable()).setCallback(null);
}
}
/**
 * Setup the grid view.
 */
private void setupViews() {
sdcardImages = (GridView) findViewById(R.id.sdcard);
sdcardImages.setNumColumns(display.getWidth()/95);
sdcardImages.setClipToPadding(false);
sdcardImages.setOnItemClickListener(SdcardIma.this);
imageAdapter = new ImageAdapter(getApplicationContext());
sdcardImages.setAdapter(imageAdapter);
}
/**
 * Load images.
 */
private void loadImages() {
final Object data = getLastNonConfigurationInstance();
if (data == null) {
new LoadImagesFromSDCard().execute();
} else {
final LoadedImage[] photos = (LoadedImage[]) data;
if (photos.length == 0) {
new LoadImagesFromSDCard().execute();
}
for (LoadedImage photo : photos) {
addImage(photo);
}
}
}
/**
 * Add image(s) to the grid view adapter.
 *
 * @param value Array of LoadedImages references
 */
private void addImage(LoadedImage... value) {
for (LoadedImage image : value) {
imageAdapter.addPhoto(image);
imageAdapter.notifyDataSetChanged();
}
}

/**
 * Save bitmap images into a list and return that list.
 *
 * @see android.app.Activity#onRetainNonConfigurationInstance()
 */
@Override
public Object onRetainNonConfigurationInstance() {
final GridView grid = sdcardImages;
final int count = grid.getChildCount();
final LoadedImage[] list = new LoadedImage[count];

for (int i = 0; i  count; i++) {
final ImageView v = (ImageView) grid.getChildAt(i);
list[i] = new LoadedImage(((BitmapDrawable)
v.getDrawable()).getBitmap());
}

return list;
}
/**
 * Async task for loading the images from the SD card.
 *
 * @author Mihai Fonoage
 *
 */
class LoadImagesFromSDCard extends AsyncTaskObject, LoadedImage,
Object {

/**
 * Load images from SD Card in the background, and display
each image on the screen.
 *
   

[android-developers] gallery images onSignalStrengthsChanged Error

2011-07-04 Thread ragupathi ragupathi
hi every one,


im developing small project, in this project i will getting all images
from the android phone gallery its working fine. but when im
displaying that images in android grid view means some images only
loaded, remaining images are showing like  07-04 14:06:53.965: DEBUG/
StatusBarPolicy(26819): onSignalStrengthsChanged  in logecat. so any
one knows pls help me i need to urgent this... pls

-- 
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] gridview problem

2011-07-04 Thread ragupathi ragupathi
hi every one,

im developing grid view program, in this program im displaying
images in grid view. the images displayed with help of adapter class.
in that adapter class i will pass list of images that images getting
from phone gallery. the gallery images getting string path and
converted to bitmap and set to the image view in that adapter class.
in my phone gallery have more than 100 images but only displayed 54
images and again display. pls 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] back button problem

2011-06-30 Thread ragupathi ragupathi
hi every one,

im new one for in android. im developing one application. im using
database if i calling new activity to store the values in database it
working fine. but when i came back to previous activity it not
reloaded that previous activity. it will display same as old content.
i need when im clicking back button it reloaded (refresh) all content
in the activity.. can any one help me pls..



advance thaks...

-- 
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: Setting up Eclipse for android source

2011-06-30 Thread ragupathi ragupathi
can u post whats your error message!..


On Jun 30, 9:54 pm, PPCS mailtored...@gmail.com wrote:
 Hello All,

 I am a newbie to Android and I am trying to setup Eclipse with the
 downloaded Android repository.

 All the documents/links found in Internet explain setting up Eclipse
 for a new project or importing an existing project.

 I have downloaded froyo repo but when I am importing a project,
 SoftKeyboard, into Eclipse, it is giving errors. So, could you plz let
 me know if I am doing anything wrong.

 Also, I want to be able to modify the stack (framework and libraries).
 Is it possible to do that from Eclipse?

 Thanks,
 PPCS

 PS: I am new to Java-based coding.

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

2011-05-06 Thread ragupathi ragupathi
The error class is myitemoverlay.


this class comes error for me

On Fri, May 6, 2011 at 5:59 AM, TreKing treking...@gmail.com wrote:

 On Thu, May 5, 2011 at 6:57 AM, ragupathi ragupathi 
 ragumm...@gmail.comwrote:

 hi im developing google application it focus some problem
 like noclassdeffounderror exception.


 The exception should tell you which class is not found. Post that.


 -
 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


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

2011-05-05 Thread ragupathi ragupathi
hi im developing google application it focus some problem like
noclassdeffounderror exception. Any one knows post the solutions. when
this problem is occurred means when im call a new class not a activity
like overlay class the error is shown. if i will start a new project
and develop this only means working fine but my project its not
working.

manifest file:

uses-library android:name=com.google.android.maps/
/application
uses-permission android:name=android.permission.CAMERA/
  uses-permission android:name=android.permission.READ_CONTACTS/
  uses-permission android:name=android.permission.WRITE_CONTACTS/
  uses-permission android:name=android.permission.INTERNET/
  uses-permission
android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS/
  uses-permission android:name=android.permission.VIBRATE/
  uses-permission android:name=android.permission.FLASHLIGHT/
  uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE/

  !-- Wifi related  --
  uses-permission android:name=android.permission.WRITE_SETTINGS /
  uses-permission
android:name=android.permission.CHANGE_WIFI_STATE /
  uses-permission
android:name=android.permission.ACCESS_WIFI_STATE /
  uses-permission
android:name=android.permission.ACCESS_NETWORK_STATE /
  uses-permission android:name=android.permission.WAKE_LOCK /

uses-permission android:name=android.permission.INTERNET/
  uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/
uses-feature android:name=android.hardware.camera/uses-feature
uses-sdk android:minSdkVersion=5 /


this is my map activity class

public class Wherepagechange extends MapActivity {

private OnGroupDetails onGroupDetails=new OnGroupDetails();
private ValueHolder valueHolder = 
ValueHolder.getSingletonObject();
private ChekinMarkerModel chekinMarkerModel;
public MapView myMapView;
private ListView chickinList;
GeoPoint mapPoint = null;
private Activity activity=this;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.wherepagechange);
chickinList = (ListView) 
findViewById(R.id.ckickin_list);
myMapView = (MapView) findViewById(R.id.myMapView);

myMapView.setBuiltInZoomControls(true);
myMapView.getMapCenter();
MapController mapController;
mapController = myMapView.getController();
mapController.setZoom(4);
ListOverlay mapOverlays = myMapView.getOverlays();
Drawable drawable =
this.getResources().getDrawable(R.drawable.bar_icon);
MyItemOverlay itemizedoverlay = new 
MyItemOverlay(drawable);

GeoPoint point = new GeoPoint(1924,-9912);
OverlayItem overlayitem = new OverlayItem(point, Hola, 
Mundo!,
I'm in Mexico City!);

itemizedoverlay.addOverlay(overlayitem);
mapOverlays.add(itemizedoverlay);
}
}



this is myitemoverlay class:



public class MyItemOverlay extends ItemizedOverlayOverlayItem {


private ArrayListOverlayItem mOverlays = new
ArrayListOverlayItem();
//private Context con;

public MyItemOverlay(Drawable defaultMarker) {
super(boundCenterBottom(defaultMarker));
// TODO Auto-generated constructor stub
}

public void addOverlay(OverlayItem overlay) {
mOverlays.add(overlay);
populate();
}

@Override
protected OverlayItem createItem(int i) {
// TODO Auto-generated method stub
return mOverlays.get(i);

}

@Override
public int size() {
// TODO Auto-generated method stub
return mOverlays.size();

}
}






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