[android-developers] how to disable the enlarge

2012-01-01 Thread Perry
hi, I am using following method to create a bitmap and canvas. myBG = Bitmap.createBitmap(theScreenWidth, theuserScreenHeight, Config.ARGB_); Canvas myCanvas = new Canvas(myBG); After I draw something to myBG and use drawbitmap method to canvas. I found that the myBG be enlarged. Who can

[android-developers] Re: Setting TabSpec Content using Source Code

2012-01-01 Thread Dancing Fingers
The obvious answer is to set the id manually: inputLayout.setId(1); Chris -- 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

Re: [android-developers] native code bebug

2012-01-01 Thread Kristopher Micinski
Look into 'ndk-gdb' It doesn't look entirely well documented, but you should be able to attach, set breakpoints, etc.., as usual kris On Wed, Dec 28, 2011 at 12:46 AM, praveen.bvb...@gmail.com praveen.bvb...@gmail.com wrote: Hi all,        I need the procedure to debug native source code of

[android-developers] get icons and show on the widget

2012-01-01 Thread felix
hi all i want to get the list of running applications icons and show on the widget, now i can get the icons in activity or service but i don`t know how to get icons in widget and how to send a icon from a service to a widget. -- You received this message because you are subscribed to

[android-developers] Re: MediaPlayer HTTP streaming buffering: any settings?

2012-01-01 Thread port443
OK, I found a kind of way out; not perfect though. I create two MediaPlayer instances (primary and secondary); I also create three files. I have a thread which reads HTTP stream and buffers N seconds to first file. Second file goes to secondary player's prepare method. Third file is played by

[android-developers] Handling screen layout change in Android

2012-01-01 Thread Ali Chousein
Recently I wrote a blog on handling screen layout change in Android to share my experiences on this subject. Hope it'll be useful for other developers. http://android-screen-layout.blogspot.com/ - Ali Chousein Weather-Buddy

[android-developers] How to stream audio

2012-01-01 Thread Giuseppe
Dear experts, I would like to stream one way the audio from device A to device B. The device could be on mobile network or inside two different wlan. Please suggest what approach to use and if some example available. Thank you in advance. G. -- You received this message because you are

[android-developers] Re: Advanced Touch Control: passing touch event from one view to another

2012-01-01 Thread Sky
Bump. I've tried everything I can think of. I'm definitely going to need a pointer to move forward on this. If my description above is not adequate I can post code or even make my app available so you can see the behavior I am talking about. On Dec 29 2011, 6:28 pm, Sky

[android-developers] Re: NPE in Pre Compiler using Eclipse 3.7.1

2012-01-01 Thread James Black
I found that dx.jar was not in platform-tools/lib so I copied it from platforms\android-3\tools\lib and that may have fixed my problem. At least everything is compiling, and the emulator started up. Should dx.jar be with the SDK? On Dec 31 2011, 10:51 pm, James Black planiturth...@gmail.com

Re: [android-developers] How to stream audio

2012-01-01 Thread Michael Banzon
This problem is not Android specific. To have multiple clients on different networks (and probably behind different firewalls/proxies/etc.) communicating you'll need to introduce some kind of middle man (call it a server if you like). On Sun, Jan 1, 2012 at 11:18 PM, Giuseppe

[android-developers] Can't see Hello World on AVD Unable to create sensors port:

2012-01-01 Thread OpaSmurf
Attempting to use Hello Android as confirmation that my ADK is working. Have installed tools on Linux and XP with same results. Divide and conquer approach appears to exonerate eclipse. The following terminal commands give the same result without eclipse. An incredible animated virtual android

Re: [android-developers] Layout control for onscreen input method

2012-01-01 Thread Fred Stluka
Dreamtrove, Sounds like a job for RelativeLayout. See: http://developer.android.com/resources/tutorials/views/index.html http://developer.android.com/resources/tutorials/views/hello-relativelayout.html http://developer.android.com/guide/topics/ui/declaring-layout.html --Fred

[android-developers] Re: latitude / longitude / altitude / direction of photo/image-taken in metadata of android-camera ?

2012-01-01 Thread gjs
Hi, Sure, try my app http://market.android.com/details?id=com.imageotag Regards On Dec 29 2011, 11:48 pm, henke54 henk...@gmail.com wrote: Can it be possible that a Android camera can 'capture' the correct 4 'dimensions' : latitude / longitude / altitude / direction of photo/ image-taken ,

[android-developers] Re: Clarification on DPI

2012-01-01 Thread jc
On Dec 29 2011, 10:06 pm, Jonathan jlani...@gmail.com wrote: And how in the world do they get a 2/3 scaling factor? HDPI density is 240 dpi, see http://developer.android.com/reference/android/util/DisplayMetrics.html#DENSITY_HIGH if dp = px / (dpi/160) and dp = px * scaling factor then scaling

Re: [android-developers] Advanced Touch Control: passing touch event from one view to another

2012-01-01 Thread Yang Bo
Sorry,I donnot quite get you. Are the views in the same activity? 在 2011-12-30 上午10:31,Sky myonceinalifet...@gmail.com写道: I have one custom made view that I can drag across the screen horizontally. Within this view is a ScrollView. I already have it so I can decide whether the user is dragging

[android-developers] Using contacts picker with filtering

2012-01-01 Thread Eric
Hi all, I'm using the following code to launch the Contacts Picker: Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); //another display style: //intent.setType (android.provider.ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);

[android-developers] addFooterView(view,data,isSelectable) Explanation

2012-01-01 Thread Alex Fu
Can someone provide an example as to how this function, http://developer.android.com/reference/android/widget/ListView.html#addFooterView(android.view.View, java.lang.Object, boolean), would work? As with a ListView, you need an adapter. Which adapter does this function uses? The same adapter for

[android-developers] Re: single_apk_On_multiple_devices

2012-01-01 Thread VenomVendor™
Remove images from the Folder drawable-mdpi, drawable-ldpi, Just put High Definition images in drawable-hdpi. i wld suggest u to test the APK file directly in the Tab, if u dont have, atleast configure the emulator Properly -- You received this message because you are subscribed to the Google

[android-developers] Re: Android unit testing with ContentProviders and databases

2012-01-01 Thread Diego Torres Milano
The best solution is probably a RenamingDelegatingContext, that will allow your tests to use a different database than your 'live' one. There are examples of RenamingDelegatingContext and other mock injections in Android Application Testing Guide [http://

[android-developers] Why doesn't the ADT show me the javadoc for a class in android.jar when I have the javadoc path set for the jar?

2012-01-01 Thread David Karr
This may be completely Eclipse-specific, but perhaps not. I find it's very inconsistent whether I can get Eclipse to show me the Javadoc for an Android class or method, even when I appear to have valid javadoc attached to the android.jar file. For instance, right now I'm viewing a class in a

Re: [android-developers] Re: single_apk_On_multiple_devices

2012-01-01 Thread Teena sharma
Thanxs On Mon, Jan 2, 2012 at 10:08 AM, VenomVendor™ yoganandh2...@gmail.comwrote: Remove images from the Folder drawable-mdpi, drawable-ldpi, Just put High Definition images in drawable-hdpi. i wld suggest u to test the APK file directly in the Tab, if u dont have, atleast configure the

[android-developers] Null Pointer Exception

2012-01-01 Thread chander
Hi, Happy new year to all.. I am writing a code for simple navigation between different pages in android application. I created a Button and then on Click event i am setting my ContentView. i have written same code for 2 buttons working fine. but when i am writing click event for 3rd button

Re: [android-developers] Null Pointer Exception

2012-01-01 Thread Mukesh Srivastav
OMG. Chander you need to read and understand the basics of Android ! There is a way to call or navigate from one activity to other is using Intent. secondly, not sure,why are you using AbsoulteLayout ? Please start reading the Android documentation, to start with below is the link for your

[android-developers] Code folder(pjsua) is missing in the folder(CsipSimple-src-org-pjsip)

2012-01-01 Thread vishal singh
Hi all, Thanks for great development. I am using CSipsimple project,but when today I checkout the project from trunk (http://csipsimple.googlecode.com/svn/trunk/) and ported in the eclipse i got the errors. I searched that error and compare with other checkout code the one code folder(pjsua) is