[android-developers] Problem in calling sms application in android 3.0 and above

2012-05-21 Thread Sivasankar K
Following is the piece of code by which i am trying to open the android
device default sms application with message and number to be prefilled

String uri = smsto:4162315;
String body = h;
Intent sendIntent = new Intent(Intent.ACTION_SENDTO);
sendIntent.addCategory(Intent.CATEGORY_DEFAULT);
sendIntent.setType(vnd.android-dir/mms-sms);
sendIntent.setData(Uri.parse(uri));
sendIntent.putExtra(sms_body, body);
sendIntent.putExtra(compose_mode, true);
startActivity(sendIntent);


when i run this code in android 4.0 emulator the sms application opens with
the data prefilled but when in run in device i am getting only the body and
not the number.

when i check it with android 3.0, it is to be vice versa, the number gets
filled and body is been empty.

Does anyone know the solution for this problem?


-- 
K Siva Sankar

-- 
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] android market in app product purchase not showing “PURCHASED”

2011-11-14 Thread Sivasankar K
In my app I am doing in app from android market site where the user can buy
a product which he wants.

According to my app when the user clicks a button the payment box gets
opened. When the user clicks the button Accept and Buy the payment gets
transferred and When I get the text InAppProductID:PURCHASED I will start
the download process.

But when I tried it in my own account and the amount is been transferred to
my account from the credit card I am using but the I didn't get the word
InAppProductID:PURCHASED. Instead of that I am getting only
InAppProductID:sending purchase request.

Normally how many minutes it will take to say that
InAppProductID:PURCHASED. I have my product to be a UnManaged product, is
this any wrong.

can anyone please explain me about this

-- 
K Siva Sankar

-- 
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 list out items from android market for in app purchase

2011-11-01 Thread Sivasankar K
i am trying to make an android app based on in app purchase. In my app i
have a sample video and if any one wants to buy it, i want to make an in
app purchase through android market site.

I gone through the in implementation here

I downloaded the sample app and i tried to use it for checking purpose, I
added my Public key of my market account and i have added the video name i
have to show to the user. In my market account, in the in app product list
i have added the details of my video title, description, product id.

In the developer site i found the following line

Do not publish the sample application; leave it as an unpublished draft
application. The sample application is for demonstration purposes only and
should not be made publicly available on Android Market.

When i run the app and click the buy button an alert box gets appeared
saying that The Item that you requested is not available for purchase.

Pls say me where i am going wrong..


-- 
K Siva Sankar

-- 
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] Re: how to list out items from android market for in app purchase

2011-11-01 Thread Sivasankar K
My sample app is in unpublished state and when i click the *buy* button,
the page showing the amount as like in android market site is not
appearing and instead of that i am getting a alert box saying as follows

*The Item that you requested is not available for purchase.*

Why the above alert box comes, whether the app to be in Published state or
am i missing some thing else.

On Wed, Nov 2, 2011 at 9:57 AM, Zsolt Vasvari zvasv...@gmail.com wrote:

 It seems like what you are describing is telling you in plain English
 what's wrong.  Where are you confused?

 On Nov 2, 12:13 pm, Sivasankar K sivasanka...@greatinnovus.com
 wrote:
  i am trying to make an android app based on in app purchase. In my app i
  have a sample video and if any one wants to buy it, i want to make an in
  app purchase through android market site.
 
  I gone through the in implementation here
 
  I downloaded the sample app and i tried to use it for checking purpose, I
  added my Public key of my market account and i have added the video name
 i
  have to show to the user. In my market account, in the in app product
 list
  i have added the details of my video title, description, product id.
 
  In the developer site i found the following line
 
  Do not publish the sample application; leave it as an unpublished draft
  application. The sample application is for demonstration purposes only
 and
  should not be made publicly available on Android Market.
 
  When i run the app and click the buy button an alert box gets appeared
  saying that The Item that you requested is not available for purchase.
 
  Pls say me where i am going wrong..
 
  --
  K Siva Sankar

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




-- 
K Siva Sankar

-- 
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 make a url get fitted to an android device screen

2011-10-09 Thread Sivasankar K
i want to load an url either in browser or webview, but i need the entire
page to be fitted inside the device screen. There should not be any scroll
bars either in horizontal or vertical.
I cant make any changes in the web side.

In that particular webpage i have a image of width960 and height640, placed
with some buttons over it to go to some other pages. Whenever i loaded the
page i gets loaded in a enlarged way. I am able to reduce the page by
zooming in manually. I want the entire page to get fitted to the screen by
its own. How to do this pls help me friends

-- 
K Siva Sankar

-- 
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] Re: HTTP Post of Image

2011-07-28 Thread Sivasankar K
In your manifest file add permissions to camera and for uploading internet
permission as follows

uses-permission android:name=android.permission.INTERNET /
uses-permission android:name=android.permission.CAMERA /

On Thu, Jul 28, 2011 at 11:07 AM, perumal316 perumal...@gmail.com wrote:

 Hi Siva,

 But my application keeps on crashing when I insert this line:
 URI mCapturedImageURI =
 getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
 values);

 Must I add any permission in the manifest file?

 Basically I just want to get the string containing the path to the
 image saved e.g: /sdcard/DCIM/12345.jpg

 Must I use contentprovider?

 Thanks In Advance,
 Perumal



 On Jul 28, 12:23 pm, Sivasankar K sivasanka...@greatinnovus.com
 wrote:
  using the uri of content resolver you can get the path where it is
 getting
  stored
 
  URI mCapturedImageURI =
  getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
  values);
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
 
intent.putExtra(MediaStore.ACTION_IMAGE_CAPTURE,
 capturedImage);
intent.putExtra(MediaStore.EXTRA_OUTPUT, mCapturedImageURI);
 
 
 
 
 
 
 
 
 
  On Thu, Jul 28, 2011 at 8:14 AM, perumal316 perumal...@gmail.com
 wrote:
   Hi All,
 
   I am using the following intent to invoke the camera:
 
   Intent cameraIntent = new
   Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
   startActivity(cameraIntent);
 
   The image is saved into the sdcard with the time/date as the name. I
   want to do a HTTPPost of this image once the picture is taken.
 
   How do I get the name of the picture stored? Or how to I change the
   name of the image stored?
 
   Thanks In Advance,
   Perumal
 
   --
   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
 
  --
  K Siva Sankar

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




-- 
K Siva Sankar

-- 
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] Date Picker using xml layout - problem in android app

2011-07-28 Thread Sivasankar K
i have some problems in using the date picker from xml layout.

in my app when the user clicks a text view a custom dialog box opens. In the
layout of the custom dialog box i am showing a date picker which i have
place in my xml file. When it appears in the app i want a particular date to
be viewed, for example as 01 Jan 1950. Every time it opens it is showing the
present date only.

In my dialog box i have a set and cancel buttons. The Cancel button cancels
the dialog box where as when i click the Set button i want the current date
to be stored to a String.

In another activity of my app in a custom dialog box i want to show a date
picker only with the year columns, i dont need the date and month columns.
How to get it, please help me friends

-- 
K Siva Sankar

-- 
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] HTTP Post of Image

2011-07-27 Thread Sivasankar K
using the uri of content resolver you can get the path where it is getting
stored

URI mCapturedImageURI =
getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
values);
  Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

  intent.putExtra(MediaStore.ACTION_IMAGE_CAPTURE, capturedImage);
  intent.putExtra(MediaStore.EXTRA_OUTPUT, mCapturedImageURI);



On Thu, Jul 28, 2011 at 8:14 AM, perumal316 perumal...@gmail.com wrote:

 Hi All,

 I am using the following intent to invoke the camera:

 Intent cameraIntent = new
 Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
 startActivity(cameraIntent);

 The image is saved into the sdcard with the time/date as the name. I
 want to do a HTTPPost of this image once the picture is taken.

 How do I get the name of the picture stored? Or how to I change the
 name of the image stored?

 Thanks In Advance,
 Perumal

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




-- 
K Siva Sankar

-- 
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] Viewflipper instead of webview it's not working in android?

2011-07-25 Thread Sivasankar K
Try like this

LinearLayout
 ViewFlipper
LinearLayout
 WebView/WebView
   /LinearLayout
   LinearLayout
 WebView/WebView
   /LinearLayout
  /ViewFlipper
/LinearLayout

if your are flipping the views by a button set the urls to flow
alternatively over the webview

On Mon, Jul 25, 2011 at 12:33 PM, vijayakumar M iamvijayaku...@gmail.comwrote:

 Hi Friends,

 i have list url that url i have load in webview.
 if i open apps it will display first url.  then i flip it will load next
 url . but now that flipper i not working? why. please help me friends.




 XML structure
 main.xml
 Line.
 Viewflipper /
 /Line...



 webview.xml

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:orientation=vertical
 android:layout_height=fill_parent
 
 WebView
 android:id=@+id/webview
 android:fillViewport=true
  android:scrollbars=none
  android:scrollbarAlwaysDrawHorizontalTrack=false
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 /WebView

 /LinearLayout

 --




 Nobody can go back and start a new beginning, but anyone can start today
 and make a new ending
 -
 Thanks,
 Regards,
 νιנαソαkum@r M
 BloG:http://iamvijayakumar.blogspot.com/
 Mob.No:09048382536(Kerala)
 Mob.No:09751076707(TN)


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




-- 
K Siva Sankar

-- 
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] Shared preference

2011-06-22 Thread Sivasankar K
Try to store all the values in an array and then list out those value in
listview.

On Wed, Jun 22, 2011 at 2:23 PM, Jayanthi jaia...@gmail.com wrote:

 Hi,
  I am working for GPS alert my spot , here whenever I touch the map I
 get the respective lat and longitude now I use shared preference to
 save the lat and loc put whenever I save the old value is replace by
 new value . I have to show all the GeoPoint in a listview how to do
 that please share your Ideas

 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




-- 
K Siva Sankar

-- 
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 change image in android while switching between activities

2011-06-17 Thread Sivasankar K
in my app in activity A i have a list view showing some details along with
an image at the bottom and a button at the top. When the user clicks in the
list  it opens a new activity B.

If the user clicks the back button he returns back to activity A and there i
want to show a new Image in the image View. In iPhone we are to use a method
called View will appear.

like that is there any method in android. How to do this, please help me
friends.

-- 
K Siva Sankar

-- 
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] any library to use camera in android

2011-06-17 Thread Sivasankar K
I want to know is there any common library for camera that can be used in
all android devices. Because when i started my app in that works on image
capture i write my own code and others code from some blogs, but the
response differs for each devices.

In motorola milestone the default image capture is to be landscape but i
needed it for portrait because of that images look blurred. The same code
works good in HTC and Nexus so i thought it to be  the problem with the
motorola device. Later i found  the default camera works good and fine.

So i changed the code as follows

 public void camera()
 {
 Log.e(camera action,Strated);
String fileName = temp.jpg;
ContentValues values = new ContentValues();
values.put(MediaStore.Images.Media.TITLE,fileName);
mCapturedImageURI =
getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
values);
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

intent.putExtra(MediaStore.ACTION_IMAGE_CAPTURE, capturedImage);
intent.putExtra(MediaStore.EXTRA_OUTPUT, mCapturedImageURI);

startActivityForResult(intent,
Appconstant.CAPTURE_PICTURE_INTENT);
 }

this time the code works good in all device but i am unable to locate the
path were the image gets stored.

So i created the external directory to save my images with a timeStampFormat
as a name for my images.

And now in my HTC device, only the name seems to be appeared and not the
image. Image gets stored in its default position as
sdcard/dcim/camera

When i checked with all devices the default position for saving the images
gets varied.

How to get my camera app fit for all android device.

Else how to know the place where the images getting stored in the all
android devices.

-- 
K Siva Sankar

-- 
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] Is it possible to have an animated gif as the images in an android app

2011-06-15 Thread Sivasankar K
Is it possible to have an animated gif as the images in an android app.

-- 
K Siva Sankar

-- 
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 place an url in android email

2011-06-14 Thread Sivasankar K
in my app i am sharing some data via email. In the body of my app i have
typed some contents, along them i have added an url. I want the url to be
highlighted in blue and when the user clicks it i want to open the webpage
in my app. How to do this

-- 
K Siva Sankar

-- 
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] how to upload file?

2011-06-14 Thread Sivasankar K
What you want to upload ? video or image..

2011/6/15 νιנαソkum@r iamvijayaku...@gmail.com

 Hi,

 How to upload file in android . can anyone give some example ?


 Thanks
 vijayakumar

 --




 Nobody can go back and start a new beginning, but anyone can start today
 and make a new ending
 -
 Thanks,
 Regards,
 νιנαソαkum@r M
 BloG:http://iamvijayakumar.blogspot.com/
 Mob.No:09048382536(Kerala)
 Mob.No:09751076707(TN)


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




-- 
K Siva Sankar

-- 
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 get Map on signed Android application?

2011-06-12 Thread Sivasankar K
in my i have a map application. I have got my finger print and my api key.
When i run the app from my eclipse to device straightly i am able to see the
map, but when i run the app after creating as a zip aligned .apk file there
is  No map backgrounds Was able browse and search but still no map
backgrounds.

Please help me to solve my issue.

-- 
K Siva Sankar

-- 
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] How to get Map on signed Android application?

2011-06-12 Thread Sivasankar K
thanx a lot i works

2011/6/13 νιנαソkum@r iamvijayaku...@gmail.com

 workspace--rightclick--- click export---export android
 apps--next--next---enter keystore file name---next---enter key
 alis---finish

 On Mon, Jun 13, 2011 at 9:59 AM, Sivasankar K 
 sivasanka...@greatinnovus.com wrote:

 in my i have a map application. I have got my finger print and my api key.
 When i run the app from my eclipse to device straightly i am able to see the
 map, but when i run the app after creating as a zip aligned .apk file there
 is  No map backgrounds Was able browse and search but still no map
 backgrounds.

 Please help me to solve my issue.

 --
 K Siva Sankar

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




 --




 Nobody can go back and start a new beginning, but anyone can start today
 and make a new ending
 -
 Thanks,
 Regards,
 νιנαソαkum@r M
 BloG:http://iamvijayakumar.blogspot.com/
 Mob.No:09048382536(Kerala)
 Mob.No:09751076707(TN)


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




-- 
K Siva Sankar

-- 
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] Integrating Facebook in Android application

2011-06-06 Thread Sivasankar K
you better use the github source for facebook,because it's standard api
developed by facebook itself... from the link
https://github.com/facebook/facebook-android-sdk

or else try with fbconnect, http://code.google.com/p/fbconnect-android/

On Mon, Jun 6, 2011 at 12:51 PM, Goutom goutom.sust@gmail.com wrote:

 Hello All

 Now I am trying to integrate facebook in my android application.I have a
 text box and a button named share in my application.I will write something
 in the text box and will press button share, then a facebook login form
 will come and after entering the username and password it will post the
 status in my facebook account.I am using easy facebook android sdk(
 www.easyfacebookandroidsdk.com).Can some one show me any tutorial which
 dose same.

 Regards
 Goutom

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




-- 
K Siva Sankar

-- 
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] Camera activity problem differs for each android devices

2011-06-01 Thread Sivasankar K
in my app i am using the camera activity to capture an image and i
want to upload the image to a server by getting it's path. I have
created an External Storage Directory of my own an d i am storing the
images in that folder. The problem is when i run my app in a Motorola
device the image gets captured and stored in the correct folder and it
gets uploaded.

But when i run the app i an HTC device, the image gets captured and
the folder is created but the image gets stored in some other folder
and because of that image is not uploaded and gets crashed...

Following is my code

public void startCamera()
{
 Intent intent = new
Intent(android.media.action.IMAGE_CAPTURE);
 File folder = new
File(Environment.getExternalStorageDirectory() + /Images);
 boolean success = false;
 if(!folder.exists())
 {
success = folder.mkdir();
 }
 final Calendar c = Calendar.getInstance();
 path = /sdcard/Images/+timeStampFormat.format(new Date())
+.jpg;
 File photo = new File(path);
 intent.putExtra(MediaStore.EXTRA_OUTPUT,Uri.fromFile(photo));
 Uri imageUri = Uri.fromFile(photo);
 startActivityForResult(intent, TAKE_PICTURE);
}
  @Override
public void onActivityResult(int requestCode, int resultCode,
Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
switch (requestCode)
{
case TAKE_PICTURE:
if (resultCode == Activity.RESULT_OK)
{
Log.e(resultCode,Activity Result +path);
String image = path;
FileUploader(path);
}
super.onActivityResult(requestCode, resultCode, data);
}
}

Why such a problem appears, i afraid that the same problem may occur
in all android devices, how to over come this problem
Please help me friends

-- 
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] which jar file can be used to play an audio file in android

2011-05-06 Thread Sivasankar K
When I was searching through google I found a java program created in
netbeans to calculate the bpm of a song. It was working with a lot of
JAR files.

I used the same code for my android app and it showed lot of errors
due to the missing of only one JAR file. I added the JLayer1.0.1 jar
file and all the errors were cleared.

Now the app is working good but the bpm calculation is creating some
new problems. It gives the bpm of a song which is less than 1 min but
the others songs are not always been in process for a hour. And the
songs are not been played in the background.

When I checked with the java program there it is calculating the bpm
of all songs and the songs are been played and I can hear it.

What is the problem I am facing here? Is this all because of the JAR
file, am I supposed to use any other JAR files? Please help me
friends


-- 
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] which jar file can be used to play an audio file in android

2011-05-06 Thread Sivasankar K
When I was searching through google I found a java program created in
netbeans to calculate the bpm of a song. It was working with a lot of JAR
files.

I used the same code for my android app and it showed lot of errors due to
the missing of only one JAR file. I added the JLayer1.0.1 jar file and all
the errors were cleared.

Now the app is working good but the bpm calculation is creating some new
problems. It gives the bpm of a song which is less than 1 min but the others
songs are not always been in process for a hour. And the songs are not been
played in the background.

When I checked with the java program there it is calculating the bpm of all
songs and the songs are been played and I can hear it.

What is the problem I am facing here? Is this all because of the JAR file,
am I supposed to use any other JAR files? Please help me friends


-- 
K Siva Sankar

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