[android-developers] Re: Programmatically start / launch VPN connection

2014-06-23 Thread areefnadaf
HI, Did u get any crack to create our own VPN? please let me know... On Wednesday, February 10, 2010 1:59:22 AM UTC+5:30, j wrote: I am developing Enterprise applications that need to connect to servers behind the firewall. Can my app start VPN connection programmatically? There are 2

[android-developers] VideoView and content provider

2014-06-23 Thread Paul Levin
Hi, According to the Android API for VideoView, it can load images (videos) from a content provider. Yet I can not find any examples of how to write a content provider that can do this. Can you point me to such an example? Thanks, Paul -- You received this message because

[android-developers] Re: how to inject non-english characters

2014-06-23 Thread Miha
Hi! I'm also injecting keys, but I have developed a custom keyboard using /dev/uinput. I need to translate unicode keys to android key events and I'm using the getEvents method on KeyCharacterMap class like you guys. I'm also facing the same problem, that accented characters can not be

[android-developers] Setting/Determining size of PopupWindow based on contents.

2014-06-23 Thread Nathan
I brought this up years ago. https://groups.google.com/forum/#!topic/android-developers/hZk5YYsmv_4 I want to either set or determine the size of the popupwindow. Is it still impossible? The size is not a constant. If I call mContentView.getWidth(); The first time it is zero. The second

Re: [android-developers] Setting/Determining size of PopupWindow based on contents.

2014-06-23 Thread Kostya Vasilyev
Just measure the popup's content view by calling contentView.measure with the appropriate MeasureSpec objects. Add padding from the popup's background, if appropriate. Viola! You have the exact size in pixels to use as the popup window's width and height. Some sample code from the framework

[android-developers] Multiple client ids for Google API access

2014-06-23 Thread prudhvi
Hi Guys , I have an requirement for accessing both Google Maps and Google drive for same application (same package name :) ) . Do I need to create multiple client Ids for each API access or One client Id is fine for all Google API access Thanks in Advance -- You received

Re: [android-developers] Setting/Determining size of PopupWindow based on contents.

2014-06-23 Thread Nathan
Is this the idea? int widthSpec = MeasureSpec.UNSPECIFIED; int heightSpec = MeasureSpec.UNSPECIFIED; mContentView.measure(widthSpec, heightSpec); int W = mContentView.getMeasuredWidth(); int H = mContentView.getMeasuredHeight(); Doing that, I get actual