[android-developers] Not Getting the Exact value of x and y cordinates

2012-05-02 Thread shihab shiha
Hi All, I tried to get the x and y coordinates of one view. why..getx and gety co-ordinates are not matching the view which is touched -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Not Getting the Exact value of x and y cordinates

2012-05-02 Thread shihab shiha
Hi, public boolean onTouch(View view, MotionEvent motionEvent) { if(motionEvent.getAction == MotionEvent.ACTION_POINTER_DOWN){ for(int ptrIndex = 0; ptrIndex motionEvent.getPointerCount(); ptrIndex++) { int id =

Re: [android-developers] Not Getting the Exact value of x and y cordinates

2012-05-02 Thread shihab shiha
Hi,.. Thanks for your response.. 1.Left or touchedView1 is the Button..on which the setOnTouchListener is called in main Activity.And its Ontouch is in custom class implementing OnTouchListener..in this class I'm using UI handler thread to access the button from main Activity. 2.Even after using

Re: [android-developers] Not Getting the Exact value of x and y cordinates

2012-05-02 Thread shihab shiha
Hi.. I tried the idea u gave for testing purpose..and It worked fine..I was able to get the location and co-ordinates..and yes as u said onTouch will be invoked only for one view which touched..but I'm trying to use this ACTION_POINTER_DOWN and this stuff of x and y co-ordinates..so that I could

[android-developers] multi press

2012-04-26 Thread shihab shiha
Hi All, I have been developing a small app that would benefit greatly from a user being able to press 2 buttons at one time. What is the best method for achieving this? I dont think that an OnClickListener works like that, and I have seen examples for doing this with an OnTouch event. However, I

[android-developers] Multitouch for two button

2012-04-25 Thread shihab shiha
Hi all, I need one help. i have two buttons for playing two sound file. i can play the sound easily but my requirement is holding one button and pressing another for getting the second button sound .i cannot access second buttton's id. Any help appreciated Thanks i mentioned all the links which

[android-developers] Multi Touch issues

2012-04-19 Thread shihab shiha
Hi all, I am struggling with a multitouch problem. I have two button for getting two sounds. I tried to enable multi touch for these button. But the problem is If i hold one button and press the second button i am getting the sound of the first one. I have tried many examples but not getting.

[android-developers] retrieving dialogue box value

2012-03-29 Thread shihab shiha
Hi All, I want to pass the edittext value in a dialogue box to listview when i click the save button of the dialogue box. -- 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] Action mask

2012-03-15 Thread shihab shiha
Hi all, Any Body can give the usage of ACTION_MASK -- 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] multi touch

2012-03-15 Thread shihab shiha
Hi , I have two buttons i want to activate multitouch for these two buttons. I have two sound files. i want to play these files using the multi touch concept. Pleas give a solution for this. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] multi touch

2012-03-15 Thread shihab shiha
so cant be apply it for buttons ? On Thu, Mar 15, 2012 at 1:04 PM, android developer android.developer4...@gmail.com wrote: multitouch works only views concept, On Thu, Mar 15, 2012 at 12:40 PM, shihab shiha shihabkp.andr...@gmail.com wrote: Hi , I have two buttons i want to activate

Re: [android-developers] Customizing Button

2012-02-21 Thread shihab shiha
If you have patience to answer my question i will explain it with the help of an image. Pleas respond to this mail On Mon, Feb 20, 2012 at 6:51 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 20, 2012 at 1:09 AM, shihab shiha shihabkp.andr...@gmail.comwrote: But what kind of condtion i

Re: [android-developers] Android Button Customization

2012-02-19 Thread shihab shiha
I tried it with image button also. now also i am getting the same problem On Fri, Feb 17, 2012 at 8:09 PM, fei ji ufo22940...@gmail.com wrote: I think image button can also be a good choice. You just need to set a attribute called android:src which reference to the image file you want to use.

Re: [android-developers] Customizing Button

2012-02-19 Thread shihab shiha
I think this is the only solution for that. I can access the x and y cordinates of the image. But what kind of condtion i can give for activate the visible part ? On Fri, Feb 17, 2012 at 7:38 PM, TreKing treking...@gmail.com wrote: On Fri, Feb 17, 2012 at 6:46 AM, shihab shiha shihabkp.andr

Re: [android-developers] Re: Android Button Customization

2012-02-17 Thread shihab shiha
2. create cbutton extent Button and override onDraw method and then instate of button use cbutton Can you explain this one little widely. I tried the first one but it doesnt give the exact solution what i expect On Fri, Feb 17, 2012 at 1:08 PM, moktarul anam mokta...@gmail.com wrote: you can

Re: [android-developers] Re: How can i export my sqlite database from intellj idea?

2012-02-17 Thread shihab shiha
tarihinde shihab shiha shihabkp.andr...@gmail.comyazdı: ya but you can open it using command mode. just go command mode and change your directory into the android sdk . android-sdk-linux/tools and type ./ddms then you will get the window from there you can get the access to the sdcard and all

Re: [android-developers] Re: How can i export my sqlite database from intellj idea?

2012-02-17 Thread shihab shiha
which os you are using ? On Fri, Feb 17, 2012 at 4:48 PM, Duygu Kahraman duygu.kahram...@gmail.comwrote: where is the ddms in ide? 17 Şubat 2012 13:15 tarihinde shihab shiha shihabkp.andr...@gmail.comyazdı: I am using intellij . i can access the sdcard using ddms. i tried it using command

Re: [android-developers] Re: How can i export my sqlite database from intellj idea?

2012-02-17 Thread shihab shiha
is not include ddms and you can not push /data/data/packagename/ etc. Can anybody help me? 17 Şubat 2012 08:57 tarihinde shihab shiha shihabkp.andr...@gmail.com yazdı: ya but you can open it using command mode. just go command mode and change your directory

[android-developers] Customizing Button

2012-02-17 Thread shihab shiha
Hi all, I am facing a problem regarding with button customization. i am attaching the image below. i want to activate the onclick on the visible part of this image. the problem is if i click near to this image that means it takes as rectangle. i want to activate only that image potion itself. how

Re: [android-developers] Re: How can i export my sqlite database from intellj idea?

2012-02-16 Thread shihab shiha
you can use ./ddms On Fri, Feb 17, 2012 at 10:37 AM, moktarul anam mokta...@gmail.com wrote: best way is use adb shell 1. adb shell 2. cd /data/data/packagename/ 3. adb pull database ./ Enjoy Moktarul On Feb 16, 8:18 pm, Duygu Kahraman duygu.kahram...@gmail.com wrote: I am using

Re: [android-developers] Arabic text

2012-02-16 Thread shihab shiha
I am aslo searching for this solution. If you find any thing about this pleas let me know Thanks in advance On Fri, Feb 17, 2012 at 9:30 AM, Areesha kamran arkamr...@gmail.com wrote: I have to write Islamic verses in android application. Can any one guide me what steps should i follow. Should

[android-developers] setting image over a canvas circle

2012-02-16 Thread shihab shiha
Hi All, How can i set an image over the canvas drawables ? i have one circle i created it using canvas . i want to put an image over the drawings using xml file.how can i do that . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Re: How can i export my sqlite database from intellj idea?

2012-02-16 Thread shihab shiha
...@gmail.com wrote: Hi I think ddms feature is not there in intellj Moktarul On Feb 17, 10:20 am, shihab shiha shihabkp.andr...@gmail.com wrote: you can use ./ddms On Fri, Feb 17, 2012 at 10:37 AM, moktarul anam mokta...@gmail.com wrote: best way is use adb shell 1