[android-developers] How can I create this type of Rectangle??

2009-07-25 Thread sagar.indianic
Hi all, I have got a problem. How can i create the following rectangle by using Rect class?? __ __ __ __ I mean Diagonal Rectangle. Is it possible through Rect class?? if not then any other way?? plz help..its urgent!! --~--~-~--~~~---~--~~ You

[android-developers] Re: How to Set the Wall Paper Programatically in android?

2009-07-23 Thread sagar.indianic
Hi Romain, I just used setWallpaper() method. It is working. But when orientation changes image gets cropped. So how can I provide landscape version of the image?? Is there any way to provide landscape version of the wallpaper?? On Jul 10, 8:38 pm, Romain Guy romain...@google.com wrote: All

[android-developers] Re: Rotating image using setImageMatrix()

2009-06-29 Thread sagar.indianic
, -centerY);         matrix.postTranslate(centerX, centerY); --http://www.deepdroid.com On Jun 27, 10:32 am, sagar.indianic sagar.india...@gmail.com wrote: Hi all, I rotate image using setImageMatrix() function. I first use getImageMatrix() function to get matrix then i use

[android-developers] Rotating image using setImageMatrix()

2009-06-27 Thread sagar.indianic
Hi all, I rotate image using setImageMatrix() function. I first use getImageMatrix() function to get matrix then i use matrix.postRotate (90). Rotation works fine. But it rotates around top/left corner of image. i want to change that pivot point to center of the image. how can I do that

[android-developers] Re: Parsing SOAP request

2009-06-22 Thread sagar.indianic
You dont need to parse manually... First get the ksoap2-j2se-full-2.1.2.jar.. Search you will get it.. then use the following code.. private static String SOAP_ACTION = namespace/FunName; private static String METHOD_NAME = method_name; private static final String NAMESPACE = namespace;

[android-developers] Getting Pixel color values of the canvas

2009-06-16 Thread sagar.indianic
Hello, How can I get Pixel color of a coordinate??? There is no method like canvas.getColor(x,y). Actually, I am new to game developement. I am developing a Game which will restrict object if it comes to that boundary like in pac-man. How can I check that object has reached upto the boundary??

[android-developers] Accelerometer readings - Screen coordinates

2009-06-08 Thread sagar.indianic
Hello every1, I am developing a small application for learning purpose which will move image when accelerometer readings change. I want a mapping of accelerometer values to screen coordinates. I am using trial and error method rite now. But it seems that it will not help. Is there any

[android-developers] Re: 2D animation with User interaction

2009-06-05 Thread sagar.indianic
on the image position and use the intersects method. On Jun 5, 6:03 am, sagar.indianic sagar.india...@gmail.com wrote: Hello, I want to develop a simple application which will move an image accelerometer readings change. How can i implement that? is it possible using openGL only

[android-developers] Re: Problem with MapActivity on the 1.5 release

2009-05-28 Thread sagar.indianic
write uses-library android:name=com.google.android.maps / as a child of appliaction tag in anroidmenifest.xml file. also write uses-permission android:name=android.permission.INTERNET/ uses-permission uses-permission

[android-developers] Re: WebView get position within page

2009-04-30 Thread sagar.indianic
Wat type of position are you talking about?? If u want to get position of the text within the webview then you can use javascript for that. Give unique id inside the tag of which you want to get the position. Then use javascript function document.getElementById ('yourId').offsetTop(); On Apr

[android-developers] VERIFY ERROR

2009-04-29 Thread sagar.indianic
Hello everyone, I tried to use XMLTool api available on google code to parse my big xml file. In this process, I get the following error..Verify error 04-29 17:14:09.489: INFO/dalvikvm(273): Failed resolving Lcom/mycila/ xmltool/XMLDocDefinition; interface 128 'Ljavax/xml/namespace/

[android-developers] Webview and language support

2009-03-09 Thread sagar.indianic
I have a local html file encoded in utf 8. It has some fonts in urdu language. I want to display those character. But it seems that webview is not displaying them..it displays squares instead of text..ne idea? Thanks.. Sagar --~--~-~--~~~---~--~~ You

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2009-03-05 Thread sagar.indianic
I think I have got the solution for this. Before using BitmapFactory.decodeFile() create a byte array of 16k and pass your byte array for temp storage in decoding process. It works for me.. Code: byte[] byteArrayForBitmap = new byte[17*1024]; BitmapFactory.Options opt = new

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2009-03-05 Thread sagar.indianic
I think I have got the solution for this. Before using BitmapFactory.decodeFile() create a byte array of 16k and pass your byte array for temp storage in decoding process. It works for me.. Code: byte[] byteArrayForBitmap = new byte[16*1024]; BitmapFactory.Options opt = new

[android-developers] Scrollview scrolling

2009-02-17 Thread sagar.indianic
Hello... I have a webview in a scrollview... webview displays my text.. I have a searching feature also. It highlights my serched term. Now I want to scroll to that searched string..it should automatically scroll to that searched term.. How can I do that? I tried with methods like scrollTo and

[android-developers] Re: Scrollview scrolling

2009-02-17 Thread sagar.indianic
when you have time about it.. On Feb 17, 8:01 am, sagar.indianic sagar.india...@gmail.com wrote: Hello... I have a webview in a scrollview... webview displays my text.. I have a searching feature also. It highlights my serched term. Now I want to scroll to that searched string..it should

[android-developers] Re: Setting margins for an imageview using code

2009-02-17 Thread sagar.indianic
you to set the margins via the setMargins() method. On Feb 16, 10:59 pm, sagar.indianic sagar.india...@gmail.com wrote: Hello guys..This is urgent..can u plz help.. On Feb 16, 2:35 pm, Sagar Parmar sagar.india...@gmail.com wrote: Hello every1, I want to set margin for an imageview

[android-developers] Re: Setting margins for an imageview using code

2009-02-16 Thread sagar.indianic
Hello guys..This is urgent..can u plz help.. On Feb 16, 2:35 pm, Sagar Parmar sagar.india...@gmail.com wrote: Hello every1, I want to set margin for an imageview through code. i coudnt find any method for that .. XML attribute is android:layout_marginLeft..what is the java method ??

[android-developers] Event to get that phone is in potrait/landscape mode

2009-02-03 Thread sagar.indianic
Hello, I want to get notification when user changes its phone mode (landscape/ potrait).. How to get this event notification?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Howto remove thread from Dalvik VM????

2009-01-31 Thread sagar.indianic
Thanks for reply fadden.. Is there any replacement for threads..or else I will have to change my logic as u described.. On Jan 31, 7:20 am, fadden fad...@android.com wrote: On Jan 30, 6:30 am, Sagar Parmar sagar.india...@gmail.com wrote: I am using Thread to display animation..I create a

[android-developers] regarding OutOfMemoryException

2009-01-26 Thread sagar.indianic
Hello everyone, I am trying to downlaod a file from the net. It is an mp3 file and big in size. I m able to get connection but when trying to create a bufffer for file, I get out of memory exception please help its urgent... Code is: URL u = new URL(http://--;); URLConnection