Re: [android-developers] When can we expect source code release for icecream sandwich version?
Thanks for your info. But I didn't asked whether I will get it or not, I know that. I asked when. If you don't know because its not clear, no need to reply. On Wed, Oct 19, 2011 at 6:34 PM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Oct 19, 2011 at 8:50 AM, swapnil kamble swap.kam...@gmail.com wrote: When can we source code release for icecream sandwich ? Someday. Maybe. In other words, you will find out when it will be released only after it has been released. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- 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 -- Swapnil -- 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] When can we expect source code release for icecream sandwich version?
Thanks On Thu, Oct 20, 2011 at 4:19 PM, Oli Wright oli.wri...@gmail.com wrote: Any particular reason you felt the need to be rude when someone tries to assist you with a question you were more than capable of researching the answer for yourself? -- 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 -- Swapnil -- 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] When can we expect source code release for icecream sandwich version?
Hi Android Developers, When can we source code release for icecream sandwich ? We are eagerly waiting for this release. Lots of things are implemented that we are looking for. Thanks in advance Swapnil -- 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] [SOLVED] Real Multi touch in Android - Going Open Source!!!
Cool app. I just tried it, works awesome. Nice work Swapnil On Mon, Oct 10, 2011 at 2:08 PM, Asim asim.mit...@gmail.com wrote: Hey Everyone, I've been working on a project to improve android's multi touch capability. The droid has really poor binding between touch events and views. I've worked around its drawbacks to create something that works like microsoft surface. Here's a video of what I've made. Check it out: http://www.youtube.com/watch?v=m5w8EDM3Sgc I've also decided to go open source with this project so that everyone can benefit from my work. If you're interested in taking this project forward, visit my blog @ http://blog.asimmittal.net/blog1.php/tech/android/real-multitouch-on-android-andash-going-open-source Thanks Asim Mittal -- 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 -- Swapnil -- 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] Use of Live Wallpaper as a background in android application
Thanks a lot Dianne. Worked like a charm. On Mon, Apr 11, 2011 at 12:34 PM, Dianne Hackborn hack...@android.comwrote: activity android:name=... android:theme=@android:style/Theme.Wallpaper / On Sun, Apr 10, 2011 at 9:26 PM, swapnil kamble swap.kam...@gmail.comwrote: Hi All, I am trying to set my application's background with live wallpaper. With the older static wallpaper mechanism, there was one API getWallpaper(), using which we were able to get current wallpaper's drawable and use it as a background in our own application. Now I am looking for a API or mechanism using which I could also make my application's background act as current live wallpaper. Basically whenever user sets the live wallpaper, along with HOME /Launcher activity, it should take effect in my application as well. What is the key, when I say set wallpaper it gets applied to HOME activity ? Is it somewhere in Wallpaperservice or HOME activity ? Does anyone has any ideas about this ? Thanks Swapnil -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Swapnil -- 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] Launch Gallery App at folder level instead of All pictures
Hi All, I want to launch Gallery app for image selection. I am using following code, Intent intent = new Intent(); intent.setType(image/*); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent,Select Picture), 1); But its launching ImageGallery activity, and directly going inside All pictures folder which includes images from all folders. Whereas I am looking for a parent level view, so that user can go inside other folders also. Any ideas ? Thanks in advance, Swapnil -- 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] Re: Launch Gallery App at folder level instead of All pictures
I checked with froyo also. Looks like in froyo All pictures is not there. By default, shows folders present. On Mon, Apr 11, 2011 at 6:09 PM, swapnil kamble swap.kam...@gmail.comwrote: Hi All, I want to launch Gallery app for image selection. I am using following code, Intent intent = new Intent(); intent.setType(image/*); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent,Select Picture), 1); But its launching ImageGallery activity, and directly going inside All pictures folder which includes images from all folders. Whereas I am looking for a parent level view, so that user can go inside other folders also. Any ideas ? Thanks in advance, Swapnil -- Swapnil -- 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] Use of Live Wallpaper as a background in android application
Hi All, I am trying to set my application's background with live wallpaper. With the older static wallpaper mechanism, there was one API getWallpaper(), using which we were able to get current wallpaper's drawable and use it as a background in our own application. Now I am looking for a API or mechanism using which I could also make my application's background act as current live wallpaper. Basically whenever user sets the live wallpaper, along with HOME /Launcher activity, it should take effect in my application as well. What is the key, when I say set wallpaper it gets applied to HOME activity ? Is it somewhere in Wallpaperservice or HOME activity ? Does anyone has any ideas about this ? Thanks Swapnil -- 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] SSL handshake failure: for HttpsURLConnection behind the proxy.
Hi All, I need some suggestion in resolving SSL handshake failure issue. When trying to connect to HTTPS url using javax.net.ssl.HttpsURLConnection in android with code below. I set the properties for proxy host, port and tried opening https connection. props.setProperty(https.proxyHost,co.proxyserver.com); props.setProperty(https.proxyPort,8000); URL targetURL = new URL(https://www.fortify.net;); // http://www.fortify.net works properly HttpsURLConnection connection = (HttpsURLConnection) targetURL.openConnection(); //Proxy proxy = new Proxy(Proxy.Type.HTTP,new InetSocketAddress(co.proxyserver.com,8000));//Doesn't work either //connection = (HttpsURLConnection) targetURL.openConnection(proxy); //java.io.IOException: SSL handshake failure: I/O error during system call, Unknown error: 0 connection.connect(); The same code works perfectly fine when ran with jdk on desktop. There is something SSL protocol related error during ssl handshake in s23_clnt.c of openssl code. There are no issues in connecting to http URLs. *- Steps to reproduce * 1. Use the above code in an android activity 2. Run it behind the proxy by correctly replacing proxy host and port *- What happened.* 03-15 11:41:28.069: WARN/System.err(1312): java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error 03-15 11:41:28.069: WARN/System.err(1312): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:597 0x80cfb51f:0x) 03-15 11:41:28.069: WARN/System.err(1312): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect(Native Method) 03-15 11:41:28.069: WARN/System.err(1312): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:305) 03-15 11:41:28.069: WARN/System.err(1312): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:168) 03-15 11:41:28.070: WARN/System.err(1312): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection$HttpsEngine.connect(HttpsURLConnection.java:404) 03-15 11:41:28.070: WARN/System.err(1312): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.connect(HttpsURLConnection.java:146) 03-15 11:41:28.091: WARN/System.err(1312): at com.android.proxytest.HttpProxyTest.javaHttpsRequest(HttpProxyTest.java:354) 03-15 11:41:28.092: WARN/System.err(1312): at com.android.proxytest.HttpProxyTest.access$800(HttpProxyTest.java:49) 03-15 11:41:28.092: WARN/System.err(1312): at com.android.proxytest.HttpProxyTest$8$1.run(HttpProxyTest.java:163) 03-15 11:41:28.092: WARN/System.err(1312): at java.lang.Thread.run(Thread.java:1096) This issue is there in both in eclair as well as froyo. Thanks Swapnil -- 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] Re: SSL handshake failure: for HttpsURLConnection behind the proxy.
Attached the code for the reference On Tue, Mar 15, 2011 at 12:28 PM, swapnil kamble swap.kam...@gmail.comwrote: Hi All, I need some suggestion in resolving SSL handshake failure issue. When trying to connect to HTTPS url using javax.net.ssl.HttpsURLConnection in android with code below. I set the properties for proxy host, port and tried opening https connection. props.setProperty(https.proxyHost,co.proxyserver.com); props.setProperty(https.proxyPort,8000); URL targetURL = new URL(https://www.fortify.net;); // http://www.fortify.net works properly HttpsURLConnection connection = (HttpsURLConnection) targetURL.openConnection(); //Proxy proxy = new Proxy(Proxy.Type.HTTP,new InetSocketAddress(co.proxyserver.com,8000));//Doesn't work either //connection = (HttpsURLConnection) targetURL.openConnection(proxy); //java.io.IOException: SSL handshake failure: I/O error during system call, Unknown error: 0 connection.connect(); The same code works perfectly fine when ran with jdk on desktop. There is something SSL protocol related error during ssl handshake in s23_clnt.c of openssl code. There are no issues in connecting to http URLs. *- Steps to reproduce * 1. Use the above code in an android activity 2. Run it behind the proxy by correctly replacing proxy host and port *- What happened.* 03-15 11:41:28.069: WARN/System.err(1312): java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error 03-15 11:41:28.069: WARN/System.err(1312): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:597 0x80cfb51f:0x) 03-15 11:41:28.069: WARN/System.err(1312): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect(Native Method) 03-15 11:41:28.069: WARN/System.err(1312): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:305) 03-15 11:41:28.069: WARN/System.err(1312): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:168) 03-15 11:41:28.070: WARN/System.err(1312): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection$HttpsEngine.connect(HttpsURLConnection.java:404) 03-15 11:41:28.070: WARN/System.err(1312): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.connect(HttpsURLConnection.java:146) 03-15 11:41:28.091: WARN/System.err(1312): at com.android.proxytest.HttpProxyTest.javaHttpsRequest(HttpProxyTest.java:354) 03-15 11:41:28.092: WARN/System.err(1312): at com.android.proxytest.HttpProxyTest.access$800(HttpProxyTest.java:49) 03-15 11:41:28.092: WARN/System.err(1312): at com.android.proxytest.HttpProxyTest$8$1.run(HttpProxyTest.java:163) 03-15 11:41:28.092: WARN/System.err(1312): at java.lang.Thread.run(Thread.java:1096) This issue is there in both in eclair as well as froyo. Thanks Swapnil -- Swapnil -- 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 HttpsTest.java Description: Binary data
Re: [android-developers] Re: SSL handshake failure: for HttpsURLConnection behind the proxy.
Thanks a lot guys for your replies. @Brian I haven't tried with 2.3 or 3.0. I will try that and will let you know. About other Apache or Google HttpClient. It works perfectly fine, with same proxy server and same https URL. @Yuliy I also had the same doubt. But with same proxy server and https URL it works, so something to do with our side. @Indicator I will try debugging wireshark traces. I will keep you posted. On Wed, Mar 16, 2011 at 2:55 AM, Indicator Veritatis mej1...@yahoo.comwrote: When I have successfully debugged SSL issues before, it was with access to the Apache server logs on the origin server. Set logging to the maximum and see what shows up in the error and connection logs. Or look for known bugs in Apache harmony with the handshake. There is also a way to share the key with Wireshark and decrypt the bytes on the wire, but it is not straightforward, so you should do that only as a last resort. But it is unlikely you will be able to resolve the issue by looking only at logcat. On Mar 14, 11:58 pm, swapnil kamble swap.kam...@gmail.com wrote: Hi All, I need some suggestion in resolving SSL handshake failure issue. When trying to connect to HTTPS url using javax.net.ssl.HttpsURLConnection in android with code below. I set the properties for proxy host, port and tried opening https connection. props.setProperty(https.proxyHost,co.proxyserver.com); props.setProperty(https.proxyPort,8000); URL targetURL = new URL(https://www.fortify.net;); // http://www.fortify.networks properly HttpsURLConnection connection = (HttpsURLConnection) targetURL.openConnection(); //Proxy proxy = new Proxy(Proxy.Type.HTTP,new InetSocketAddress(co.proxyserver.com,8000));//Doesn't work either //connection = (HttpsURLConnection) targetURL.openConnection(proxy); //java.io.IOException: SSL handshake failure: I/O error during system call, Unknown error: 0 connection.connect(); The same code works perfectly fine when ran with jdk on desktop. There is something SSL protocol related error during ssl handshake in s23_clnt.c of openssl code. There are no issues in connecting to http URLs. *- Steps to reproduce * 1. Use the above code in an android activity 2. Run it behind the proxy by correctly replacing proxy host and port *- What happened.* 03-15 11:41:28.069: WARN/System.err(1312): java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error 03-15 11:41:28.069: WARN/System.err(1312): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:597 0x80cfb51f:0x) 03-15 11:41:28.069: WARN/System.err(1312): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect(Native Method) 03-15 11:41:28.069: WARN/System.err(1312): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:305) 03-15 11:41:28.069: WARN/System.err(1312): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:168) 03-15 11:41:28.070: WARN/System.err(1312): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection$HttpsEngine.connect(HttpsURLCon...) 03-15 11:41:28.070: WARN/System.err(1312): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.connect(HttpsURLConnection.java...) 03-15 11:41:28.091: WARN/System.err(1312): at com.android.proxytest.HttpProxyTest.javaHttpsRequest(HttpProxyTest.java:354) 03-15 11:41:28.092: WARN/System.err(1312): at com.android.proxytest.HttpProxyTest.access$800(HttpProxyTest.java:49) 03-15 11:41:28.092: WARN/System.err(1312): at com.android.proxytest.HttpProxyTest$8$1.run(HttpProxyTest.java:163) 03-15 11:41:28.092: WARN/System.err(1312): at java.lang.Thread.run(Thread.java:1096) This issue is there in both in eclair as well as froyo. Thanks Swapnil -- 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 -- Swapnil -- 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: WiFi Problem
Peeyush, You should know when you ask question on this list, it should relate to android. If you have problem in Ubuntu Wifi ask in Ubuntu forum. On Wed, Dec 15, 2010 at 12:04 AM, peeyush varshney varshney.peey...@gmail.com wrote: I have tried the same but i is not working. building Android is fine with me. but WiFi is not working.. On Mon, Dec 13, 2010 at 11:01 AM, nysofmind nysofm...@gmail.com wrote: Left click on the wave icon in the top right create New wireless network enter your network name, select security, and type in key. That should work. Then download eclipse and android sdk. I only mention this because this forum is for android, hope you are fortunate in building your apps. On Dec 12, 11:54 am, peeyush varshney varshney.peey...@gmail.com wrote: Dear All, I have installed ubuntu 10.4. I am trying hard to access internet using WiFI connection. Can somebody tell me how to do enable WiFi access on ubuntu. -- Thank Regards Peeyush Varshney -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank Regards Peeyush Varshney -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Delay in updating the database parameter value
Hi All, I am facing problems in updation of database param value. When I write into that table from code, and try to see it by selecting that table from adb, it shows correct value which was newly updated. But if I do a reboot immediately(within 10-15secs) then after reboot I still see the older value. Not the one which was updated before reboot. But if I wait for 15secs after updating in db and then do the reboot, then everything is fine. I guess problem is because some database buffers are not updated in db. Does anyone has any idea about this issue ? How to forcefully update the database buffers, so that value will not reset to older one after reboot? Thanks Swapnil -- 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] Using Trusting All Certificate but still getting SSLPeerNotVerified exception
Hi All, I want client authentication on my server. I want to trust peer certificate based on user's confirmation. So for that first time i want to trust all received cert, but at this point itself I am getting excpetion in getPeerCertificate as SSLPeerUnVerified. I tried adding handshakecompleted listener but it is not getting invoked..I have already added code setWantClientAuth(true). I have used BKS keystore not JKS, and In standard Java same code works perfectly fine. Here is my server code, * KeyStore keyStore = KeyStore.getInstance(BKS);* keyStore.load(new FileInputStream(KEYSTORE_FILE, KEYSTORE_PASSWORD); String sslKeyManagerFactoryAlgorithm = (Security.getProperty(ssl.KeyManagerFactory.algorithm)==null?SunX509:Security.getProperty(ssl.KeyManagerFactory.algorithm)); // cert algorithm KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(sslKeyManagerFactoryAlgorithm); keyManagerFactory.init(keyStore,KEYSTORE_PASSWORD); keyManagers = keyManagerFactory.getKeyManagers(); SSLContext context = SSLContext.getInstance(TLS); context.init(keyManagers, trustAllCerts, null); SSLServerSocketFactory sslserversocketfactory = context.getServerSocketFactory(); SSLServerSocket sslserversocket = (SSLServerSocket) sslserversocketfactory.createServerSocket(SERVER_PORT); Log.d(TAG,Want Client Auth); sslserversocket.setWantClientAuth(true); Log.d(TAG,Need Client Auth); sslserversocket.setNeedClientAuth(true); mSslsocket = (SSLSocket) sslserversocket.accept(); //Log.d(TAG,not Starting Handshake completed listener); //mSslsocket.addHandshakeCompletedListener(new MyHandshakeListener()); //mSslsocket.startHandshake(); mSslSession = mSslsocket.getSession(); java.security.cert.Certificate[] localcerts = mSslSession.getLocalCertificates(); Log.d(TAG,localcerts SHA1 Thumbprint=* MsgDigest.getThumbprint((X509Certificate)localcerts[0],SHA1)); if(mSslsocket.getNeedClientAuth() == true) { Log.d(TAG,Client Authenticated.\nPeer Certificates are ); java.security.cert.Certificate[] clientcerts = mSslSession.getPeerCertificates(); } else { Log.d(TAG,Client is not authenticated.); } My TrustAllCertificate Manager code is as follows, out of which only checkClientTrusted() is called twice, not getAcceptedIssuers(). private TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { public java.security.cert.X509Certificate[] getAcceptedIssuers() { Log.d(TAG,getAcceptedIssuers); return new X509Certificate[0]; } public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) { Log.d(TAG,checkClientTrusted+certs.length* authtype*authType); for (int i = 0; i certs.length; i+*) { Log.d(TAG,Certificate [* i* ] =+certs[i].toString()); } } public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) { Log.d(TAG,checkServerTrusted certs count+certs.length); } I am stuck on this problem for last 2 days, can someone please help me in getting this working. || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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 To unsubscribe, reply using remove me as the subject.
Re: [android-developers] Re: Using IPSec on Android
Can you please explain how did you achieve this ? So people can benefit from this. On Sun, Feb 28, 2010 at 11:20 AM, Android Development indodr...@gmail.comwrote: I managed to achieve this. Thanks. Indodroid. On Tue, Feb 9, 2010 at 3:46 PM, Android Development indodr...@gmail.comwrote: Hello, How do I establish IPSec Security Associations on Android ? Is there a standard API for doing so ? Or will I need to issue shell commands to achieve it ? Best Regards Indodroid. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Finding if Unlock Pattern Screen is ON/OFF
android.provider.Settings. System.getInt( mContentResolver, Settings.System.LOCK_PATTERN_ENABLED, 0) == 1; This should give you boolean value, whether PATTERN is enabled or not. On Wed, Mar 3, 2010 at 9:54 PM, Jacob jacobroutolo...@gmail.com wrote: Hi all Thanks in advance. 2 questions 1) Is there way to find if the Android unlock pattern screen is ON/ OFF thru programming? My Aim is to send some messages from my application to a server thru network only when the user had unlocked this password kind of screen (device). 2) Is there any Android/Java class to generically find (query) if certain application window is currently on top like question 1? In other words, any Windows manager class to get some info/enumerate windows that are currently being displayed/being in use. Kind regards. Jacob -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Detecting if there is a screen unlock pattern?
android.provider.Settings.System.getInt( mContentResolver, Settings.System.LOCK_PATTERN_ENABLED, 0) == 1; This should give you boolean value, whether PATTERN is enabled or not. On Tue, Feb 16, 2010 at 4:00 AM, paladin quoti...@gmail.com wrote: Is there a way, some API one can call to detect if the user has set a screen unlock pattern or not? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] softkeyboard in Android 1.1
Why you want Android 1.1 ? On Wed, Feb 10, 2010 at 6:32 PM, andu alemf...@yahoo.com wrote: How are you all I want to develop softkeyboard for android 1.1 platform. when I check the sample softkeyboard application in the emulator, some of the imported packages are not accessible. some of them are: import android.inputmethodservice.Keyboard; import android.inputmethodservice.Keyboard.Key; import android.inputmethodservice.Keyboard.Row; import android.view.inputmethod.EditorInfo; are there any similar packages in android 1.1 so as to develop softkeyboard. Andu -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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: moving the softkeyboard from place
Hi, I am also looking for displaying soft keyboard in my layout programmatically (not full screen but always visible.) Do you guys have any idea about this ? On Sat, Feb 6, 2010 at 11:36 PM, Mark Murphy mmur...@commonsware.comwrote: guich wrote: Thanks. Do you know how to *programatically* force the inputmethod to be shown in fullscreen? I don't see an option to do that in InputMethodManager -- you can find out if it is fullscreen, but you can't force it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.9 Available! -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Including virtual keyboard widget in layout
I want to include virtual keyboard in my layout file.I am using foll. code. Is there anything I am missing ? android.inputmethodservice.KeyboardView android:id=@android:id/keyboardView android:background=@android:color/transparent android:layout_alignParentBottom=true android:layout_width=fill_parent android:layout_height=wrap_content android:keyTextSize=22sp / Is there anyone who know about it ? Thanks in advance, Swapnil -- 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] Displaying Virtual Keyboard without expanding EditText
I want to display keyboard when my app gets started. I know we can get Virtual Keyboard when clicked on EditText field, but I want to show Virtual Keyboard without clicking on EditText. Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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: Displaying Virtual Keyboard without expanding EditText
Earlier I did that way only. But unfortunately editext gets expanded.I have my edit Text field at the center of the screen. Below that I want Virtual Keyboard without expanding edittext. 2010/1/28 Per Sandström pg.sandst...@gmail.com I think this works: InputMethodManager inputMethodManager = (InputMethodManager) getSystemService( Context.INPUT_METHOD_SERVICE ); inputMethodManager.showSoftInput ( yourEditText, InputMethodManager.SHOW_FORCED ); you might have to force the edittext to be focused by running yourEditText.requestFocus() first, Im not sure. cheers, On Jan 28, 11:16 am, swapnil kamble swap.kam...@gmail.com wrote: I want to display keyboard when my app gets started. I know we can get Virtual Keyboard when clicked on EditText field, but I want to show Virtual Keyboard without clicking on EditText. Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] MotionEvent ACTION_DOWN throwing security exception for INJECT_EVENT permission
Hi, I have added this line in my androidManifest.xml uses-permission android:name=android.permission.INJECT_EVENT/ I am trying to execute following code, long downTime = SystemClock.uptimeMillis(); long eventTime = SystemClock.uptimeMillis(); Instrumentation inst = new Instrumentation(); MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, x, y, 0); Log.d( LOG_TAG,injecting motion event down ); *inst.sendPointerSync(event); //wm.injectPointerEvent( event,true );* Both above lines are throwing exception W/System.err( 762): java.lang.SecurityException: Injecting to another application requires INJECT_EVENT permission. Do we need anything else too to get it working ? 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
Re: [android-developers] Re: MotionEvent ACTION_DOWN throwing security exception for INJECT_EVENT permission
I am not injecting events in other application. I want to do that when my activity is running . On Mon, Jan 25, 2010 at 4:51 PM, moneytoo m...@seznam.cz wrote: Injecting events to other applications/activities is not allowed. On Jan 25, 9:57 am, swapnil kamble swap.kam...@gmail.com wrote: Hi, I have added this line in my androidManifest.xml uses-permission android:name=android.permission.INJECT_EVENT/ I am trying to execute following code, long downTime = SystemClock.uptimeMillis(); long eventTime = SystemClock.uptimeMillis(); Instrumentation inst = new Instrumentation(); MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, x, y, 0); Log.d( LOG_TAG,injecting motion event down ); *inst.sendPointerSync(event); //wm.injectPointerEvent( event,true );* Both above lines are throwing exception W/System.err( 762): java.lang.SecurityException: Injecting to another application requires INJECT_EVENT permission. Do we need anything else too to get it working ? 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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 estabilish TCP communication between emulators
Run your server on some VM.. I did that only On Mon, Jan 25, 2010 at 7:22 PM, saikiran n saikiran@gmail.com wrote: Hi I have developed an application my pc as server and android as client. I am successfully run it. Now i have opened two emulators and i made necessary redirection to communicate those two emulators. my emulators port are 5554 and 5556 Now my question is i want to run server on 5554 and client on 5556 But this is not working. please tell me how to do it. What are the ip and port numbers i need to use please help me -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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: Modal dialog
I have solved this problem by a synch point between two thread i.e. using CountDownLatch On Mon, Jan 18, 2010 at 6:32 PM, skink psk...@gmail.com wrote: On Jan 18, 1:52 pm, ls02 agal...@audible.com wrote: Yes, I read Android docs about dialogs. However, this still does not answer my trivial questions. I also do not want to block UI thread. Blocking UI thread means you block message pump and UI becomes unresponsive. What I want is to call the function from UI thread that would popup the dialog and this function will not return until the dialog is closed. It is obvious that this modal dialog internally must implement message pump and break this message loop when user closes the dialog. Something similar to DialogBox or MessageBox Windows APIs. I understand that I can implement OnClickListener, but this will effectively call another function in the activity class that pops up this dialog. I cannot this way to return to the same execution point in the function that popped up the dialog. If Android does not have truly modal dialog I wonder what the suggested approach to the following standard situation. Say you have function that at certain point needs to prompt user for some input via a modal dialog and then must use the input from the dialog to continue its execution. see: http://groups.google.com/group/android-developers/browse_thread/thread/f8f1ac25831adcf5/c651bb429b694bba?lnk=gstq=modal+dialog#c651bb429b694bba pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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: blocking UI thread when Yes/No AlertDialog is displayed
Thanks Dianne for your nice explanation. I have used synchronization point between two threads with a timeout value. Its smoothly working for me. Thanks Romain for pointing me to CounterDownLatch. On Sat, Jan 2, 2010 at 2:14 AM, Dianne Hackborn hack...@android.com wrote: On Thu, Dec 31, 2009 at 2:39 AM, swapnil kamble swap.kam...@gmail.comwrote: Have you used MessageBox.show() API in Windows ? If yes then you can understand it easily what I am saying. This is API is not really blocking the thread -- it is running a nested event loop, until the user responds to the dialog. This kind of behavior is very deliberately not implemented in Android because it results in poor application interaction behavior and edge cases, which is especially problematic in an environment like a cell phone when an application must be interruptible at any time. For example, if your application is sitting there blocking its main thread like this, and the user receives an incoming call or handles a notification, what do you think should happen? If we try to pause the activity while in this state to move on to the next thing, we will end up calling Activity.onPause() and all kinds of other questionable stuff while nested down inside of your app. Or if you have a broadcast receiver for, say, the device going to sleep, this code would end up being called from deep in your blocking method call. In all of these cases, it is unlikely for the application to really expect this to happen. These kinds of nested event loops are just bad news. PalmOS was the king example of the horror they cause, but even Windows suffers from it -- all those apps that get in weird unresponsive states while waiting on a dialog? MessageBox is often to blame. My strong suggestion: re-arrange your code to not do this kind of thing. You have some method that needs to get input from the user to return a response? Make that method async as well, to return its result in a callback, because if it needs to wait for the user then that is truly what it is. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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: blocking UI thread when Yes/No AlertDialog is displayed
Hi TreKing, Now there are two option to start this handshake process, one either from UI thread i.e. starting from some onclick event listener. But I can't use this way, because I want to block thread until response is not provided(modal dialog). I still don't understand why do you feel it necessary to execute and block any thread, whether it be the UI thread or your own. I am saying as to block that thread because AlertDialog has async behaviour and I have shown it from handshake callback, where I have to return true/false value. Now what value should I return is Question since answer is not provided at this point. This can't be done with listeners, because that return value or that thread's context is already gone. Have you used MessageBox.show() API in Windows ? If yes then you can understand it easily what I am saying. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Thu, Dec 31, 2009 at 2:49 AM, swapnil kamble swap.kam...@gmail.comwrote: Let me reframe my question. My intention is not to block UI thread but to block a thread when AlertDialog is shown till the user provides confirmation response. I have handshake process, where I have to provide an option to user whether to accept/reject and based on that user response I want to return a boolean value. And unless this response is not provided next line should not get executed, just exactly what Windows MessageBox does. Now there are two option to start this handshake process, one either from UI thread i.e. starting from some onclick event listener. But I can't use this way, because I want to block thread until response is not provided(modal dialog). Blocking this thread means blocking whole app. So this way i can't do this. Second option is to spawn a new worker thread and then run handshaking from it, we don't mind blocking non-ui thread. But again problem here is that I can't show AlertDialog from non UI thread. I know there is an option to post message and display AlertDialog from that Handler, but then in that case my thread continues and completes its execution even if user response is not provided which I don't want. On Wed, Dec 30, 2009 at 1:16 PM, Romain Guy romain...@android.comwrote: If you block the UI thread, the dialog won't work. The user won't be able to click it, and it might not even draw at all. So a very bad idea :) On Tue, Dec 29, 2009 at 10:33 PM, Frank Weiss fewe...@gmail.com wrote: Just like Treking, I'm puzzled by Swapnil's desire to block the UI thread. Perhaps if he explained what he does not want the UI thread doing while the dialog is displayed, would shed light on the issue for all. On Dec 29, 2009 9:59 PM, TreKing treking...@gmail.com wrote: I can put my code in listeners but still I dont want that thread to continue its execution Which thread? The UI thread? I'm pretty sure you DO want the UI thread to continue it's execution. Why would you NOT? What are you trying to accomplish? I can't think of why you would want this behavior... - ... On Wed, Dec 30, 2009 at 12:27 AM, swapnil kamble swap.kam...@gmail.com wrote: Thanks for your ... -- You received this message because you are subscribed to the Google Groups Android Developers group... -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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
Re: [android-developers] Re: blocking UI thread when Yes/No AlertDialog is displayed
Let me reframe my question. My intention is not to block UI thread but to block a thread when AlertDialog is shown till the user provides confirmation response. I have handshake process, where I have to provide an option to user whether to accept/reject and based on that user response I want to return a boolean value. And unless this response is not provided next line should not get executed, just exactly what Windows MessageBox does. Now there are two option to start this handshake process, one either from UI thread i.e. starting from some onclick event listener. But I can't use this way, because I want to block thread until response is not provided(modal dialog). Blocking this thread means blocking whole app. So this way i can't do this. Second option is to spawn a new worker thread and then run handshaking from it, we don't mind blocking non-ui thread. But again problem here is that I can't show AlertDialog from non UI thread. I know there is an option to post message and display AlertDialog from that Handler, but then in that case my thread continues and completes its execution even if user response is not provided which I don't want. On Wed, Dec 30, 2009 at 1:16 PM, Romain Guy romain...@android.com wrote: If you block the UI thread, the dialog won't work. The user won't be able to click it, and it might not even draw at all. So a very bad idea :) On Tue, Dec 29, 2009 at 10:33 PM, Frank Weiss fewe...@gmail.com wrote: Just like Treking, I'm puzzled by Swapnil's desire to block the UI thread. Perhaps if he explained what he does not want the UI thread doing while the dialog is displayed, would shed light on the issue for all. On Dec 29, 2009 9:59 PM, TreKing treking...@gmail.com wrote: I can put my code in listeners but still I dont want that thread to continue its execution Which thread? The UI thread? I'm pretty sure you DO want the UI thread to continue it's execution. Why would you NOT? What are you trying to accomplish? I can't think of why you would want this behavior... - ... On Wed, Dec 30, 2009 at 12:27 AM, swapnil kamble swap.kam...@gmail.com wrote: Thanks for your ... -- You received this message because you are subscribed to the Google Groups Android Developers group... -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] blocking UI thread when Yes/No AlertDialog is displayed
Hi , I am displaying Confirmation type dialog box. I want to pause execution of that thread until answer is provided by user, but since this AlertDialog works asynchronously, I am facing problems in blocking that thread but displaying AlertDialog and continue execution on answer. I tried using wait notify between threads but didn't worked. Anybody Used AlertDialog.wait() method ? I am pasting my code here too, AlertDialog.Builder builder = new AlertDialog.Builder(Demo.ctxt); builder.setMessage(Do you want to Trust testgenservercert) .setCancelable(false) .setPositiveButton(Yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { //uiThread.notify(); System.out.println(Positive Button clicked); } }) .setNegativeButton(No, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { //uiThread.notify(); System.out.println(Negative Button clicked); } }); /*uiThread = Thread.currentThread(); AlertDialog alert = builder.create(); alert.show(); synchronized(alert) { alert.wait(); }*/ -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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: blocking UI thread when Yes/No AlertDialog is displayed
Thanks for your replies. I can put my code in listeners but still I dont want that thread to continue its execution, unless response is not given, just like what windows MessageBox.show() does. I have got a workaround for it, but its not at all a standard way. I will not use it too. Anyway from the given Dialogs, Modal Dialogs and Blocking thread it looks like in standards GUI APIs it is NOT possible. If anyone gets a way to do this by using some APIs, please reply to this thread. Thanks again. On Wed, Dec 30, 2009 at 6:07 AM, theSmith chris.smith...@gmail.com wrote: On Dec 29, 1:22 pm, TreKing treking...@gmail.com wrote: Um ... why don't you just put the code you want to execute in the onClick handlers for the Yes and No options, respectively? That's pretty much the point of having them ... +1 for the win. I agree, just take what ever action is necessary and put it in the onClick listeners. Its really that simple -theSmith - TreKing - Chicago transit tracking app for Android-powered deviceshttp:// sites.google.com/site/rezmobileapps/treking On Tue, Dec 29, 2009 at 8:25 AM, Frank Weiss fewe...@gmail.com wrote: I assume you want a modal dialog. I'm pretty sure blocking the UI thread is going about this wrong. For example, consider the Activity lifecycle callbacks which would be called when another Activity or Application becomes visible. Here's an explanation I found by googling for android modal dialog: http://groups.google.com/group/android-developers/browse_thread/threa. .. On Tue, Dec 29, 2009 at 3:52 AM, swapnil kamble swap.kam...@gmail.com wrote: Hi , I am displaying Confirmation type dialog box. I want to pause execution of that thread until answer is provided by user, but since this AlertDialog works asynchronously, I am facing problems in blocking that thread but displaying AlertDialog and continue execution on answer. I tried using wait notify between threads but didn't worked. Anybody Used AlertDialog.wait() method ? I am pasting my code here too, AlertDialog.Builder builder = new AlertDialog.Builder(Demo.ctxt); builder.setMessage(Do you want to Trust testgenservercert) .setCancelable(false) .setPositiveButton(Yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { //uiThread.notify(); System.out.println(Positive Button clicked); } }) .setNegativeButton(No, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { //uiThread.notify(); System.out.println(Negative Button clicked); } }); /*uiThread = Thread.currentThread(); AlertDialog alert = builder.create(); alert.show(); synchronized(alert) { alert.wait(); }*/ -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
[android-developers] Observing User inactivity time and broadcasting intent after timeout
Hi, As in android, after inactvity of screen off timeout, android screen goes off. So here android itself uses some activity observer, to know whether user is currently active or not. I need not every keystroke or touch event with details, just knowing that user is active and getting a broadcastreceiver after some timeout value. Does anybody know something related to activity observing ? I got the code from in frameworks where it broadcast, but I am still figuring out code in android that monitors user activity. Need not be an app restricted, I am open to modify code frameworks too. Thanks in advance, Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] SSL handshake failure when client certificate is requested
I am also looking for using custom keystore, do you know how generate and store cert and priv key in keystore programmatically ? On Thu, Dec 10, 2009 at 4:12 PM, droidsan droid...@googlemail.com wrote: Hello, Trying to set up a secure connection via SSL I get a SSL handshake failure when the server requests the client certificate. The code excerpt shown below (basically Apache's ClientCustomSSL.java example extended to use custom keystore for client cert and to support BKS keystores) works on my desktop PC but throws a handshake failure in Android simulator. Is this a bug, do I miss to add something Android specific or is it just a permission problem? Setup on PC: OS: openSuse 11.1, Java: SUN 1.6.0_17, openssl: 0.9.8h Android SDK platform: 1.5_r3 revision 3 DefaultHttpClient httpclient = new DefaultHttpClient(); // [ ... ] lines for key- and truststore initialization omitted SSLSocketFactory socketFactory = new SSLSocketFactory(keyStore, keyStorePassword ,trustStore); Scheme sch = new Scheme(https, socketFactory, 4433); httpclient.getConnectionManager().getSchemeRegistry().register(sch); HttpGet httpget = new HttpGet(https://192.168.0.63:4433;); System.out.println(executing request + httpget.getRequestLine()); // SSL handshake failure when executing next line HttpResponse response = httpclient.execute(httpget); // [...] Remaining code omitted _ Logcat: W/System.err( 1313): java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error W/System.err( 1313): error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure (external/openssl/ssl/s3_pkt.c:1053 0x2911c0:0x0003) _ Server (openssl s_server [...] -Verify 1 21435:error:140890C7:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:peer did not return a certificate:s3_srvr.c:2514: _ Thanks for you help Alex -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Re: Launching Android's default PhoneLocker Application
Anybody in this list has tried to use unlock screen by pattern in android. On Thu, Dec 3, 2009 at 10:15 AM, swapnil kamble swap.kam...@gmail.comwrote: Hi, I am using Android 1.6. I saw screen lock settings in Security location .I set the screen unlock pattern. But android is not getting locked. How can I lock my android screen ? Thanks, Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Launching Android's default PhoneLocker Application
Hi, I am using Android 1.6. I saw screen lock settings in Security location .I set the screen unlock pattern. But android is not getting locked. How can I lock my android screen ? Thanks, Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Receiving inactivity notifications in service from android
Hi, I want to launch an activity only when there is no activity on android till a particular a period of time. I know the timer value, and I want notification after inactivity timeout of timer value. Just like what windows provides, you set some timer value and system will be locked after that particular inactivity timeout. Currently I am using ACTION_SCREEN_OFF intent, but this notification timer value i.e. inactivity timer value is screen timeout of android's default setting. Does anybody has any idea about providing our own timer value for ACTION_SCREEN_OFF ? Or different way of getting inactivity notifications ? Thanks in advance, Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Blocking Window key shortcut when specific activity is running
Hi All, I want to block window key shortcut, which takes user back to home screen by suspending current activity. I want to block that, I want to eat up that key event. I also wrote onkeydown handler using which I could eat up all other keys, but this key event is not been received by onkeydown. Does anybody has any idea about blocking this key event ? Thanks in advance Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Blocking Window key shortcut when specific activity is running
Hi, Thanks for your reply. My application is a locker application. So I have to block this key . On Thu, Nov 26, 2009 at 12:20 PM, Romain Guy romain...@google.com wrote: You cannot block that event. On Wed, Nov 25, 2009 at 10:48 PM, swapnil kamble swap.kam...@gmail.com wrote: Hi All, I want to block window key shortcut, which takes user back to home screen by suspending current activity. I want to block that, I want to eat up that key event. I also wrote onkeydown handler using which I could eat up all other keys, but this key event is not been received by onkeydown. Does anybody has any idea about blocking this key event ? Thanks in advance Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Viewing logs on native android
Hi, Sorry for late reply. I missed your reply. How can I specify natively running android in eclipse ? I think eclipse will only connect to emulators. Can I see the logs in android itself ? On Wed, Nov 4, 2009 at 10:53 AM, Blue Zheng blue.zh...@gmail.com wrote: Oh, sure, you still can use logcat to logging for native android device. Just choose your device in DDMS for logging. if you want to logging just for App, the NDK is not necessary. 2009/11/4 swapnil kamble swap.kam...@gmail.com Thanks for your reply. Then I will have to always use NDK just for logging. Can't I do logging purely in Android App just like for Emulator using logcat ? On Wed, Nov 4, 2009 at 10:11 AM, Blue Zheng blue.zh...@gmail.com wrote: You can use the header file android/log.h in NDK, and link to /system/lib/liblog.so. And you can find the details in the document of NDK ($NDK_ROOT)/docs/STABLE-APIS.TXT). 2009/11/4 swapnil kamble swap.kam...@gmail.com Hi All, As we see emulator's logs in logcat of eclipse. What is similar on native android to view these logs ? Thanks in advance -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Viewing logs on native android
Hi Alok, Thanks for your reply. My Android device is not physically connected to PC. I am using netpc. My PC and android netpc can only communicate via network. Is there any remote log viewing mechanism ? Or is there any log viewer available on android itself similar to logcat of eclipse ? Thanks, On Mon, Nov 16, 2009 at 8:09 PM, Alok Kulkarni kulsu...@gmail.com wrote: You can click on the device icon on the left top (AVD) and from there you can select the device. Thanks, Alok. On Mon, Nov 16, 2009 at 8:04 PM, Alok Kulkarni kulsu...@gmail.com wrote: Yes you can, once you connect your device to the PC , and from eclipse select the device as the actual one , you can see the logs of actual device on the Logcat, Thanks, Alok. On Mon, Nov 16, 2009 at 7:58 PM, swapnil kamble swap.kam...@gmail.comwrote: Hi, Sorry for late reply. I missed your reply. How can I specify natively running android in eclipse ? I think eclipse will only connect to emulators. Can I see the logs in android itself ? On Wed, Nov 4, 2009 at 10:53 AM, Blue Zheng blue.zh...@gmail.comwrote: Oh, sure, you still can use logcat to logging for native android device. Just choose your device in DDMS for logging. if you want to logging just for App, the NDK is not necessary. 2009/11/4 swapnil kamble swap.kam...@gmail.com Thanks for your reply. Then I will have to always use NDK just for logging. Can't I do logging purely in Android App just like for Emulator using logcat ? On Wed, Nov 4, 2009 at 10:11 AM, Blue Zheng blue.zh...@gmail.comwrote: You can use the header file android/log.h in NDK, and link to /system/lib/liblog.so. And you can find the details in the document of NDK ($NDK_ROOT)/docs/STABLE-APIS.TXT). 2009/11/4 swapnil kamble swap.kam...@gmail.com Hi All, As we see emulator's logs in logcat of eclipse. What is similar on native android to view these logs ? Thanks in advance -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna
Re: [android-developers] Need Help: Is widestrings like LString allowed in Android?
Why do you need that ? You dont need provide L . On Fri, Nov 13, 2009 at 2:15 PM, Latha Shivanna latha...@gmail.com wrote: Hii All Does anybody know about the behavoir of Android’s compiler for target on wide strings like L”string” ?? I have a piece of code like this: Unsigned short* TESTWSTRING[] = { L.jpg”, L”.txt” }; Will TESTWSTRING[0] TESTWSTRING[1] be widestrings ? In Win32, memory used by TESTWSTRING[0] is 5x2 bytes(inclusive of null termination). But in Android this is not the case. So wondering whether prepending “L” to a string is valid in Android or not? Can someone please explain this difference in behavior? Please do advise. thanks, Latha. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Re: Support of JKS Keystore in Android
I got it working. I used KeyTool UIU app. Using it, worked smoothly. If anyone wants details how I did it, send me an email. I will document it and post it on list. Thanks, Swapnil On Fri, Nov 13, 2009 at 12:53 PM, swapnil kamble swap.kam...@gmail.comwrote: Hi, I am having Java SSL based server and I want to connect android SSL supported client to it. My keystore in Java is JKS, but android says no JKS implementation found. It supports BKS. Is there any way to have JKS support for android ? If not then how can use BKS in Java. I am trying using PKCS12, but documentation says using PKCS12 for trustanchors purpose is not supported. Does anybody has any suggestions about this issue ? -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Support of JKS Keystore in Android
Hi, I am having Java SSL based server and I want to connect android SSL supported client to it. My keystore in Java is JKS, but android says no JKS implementation found. It supports BKS. Is there any way to have JKS support for android ? If not then how can use BKS in Java. I am trying using PKCS12, but documentation says using PKCS12 for trustanchors purpose is not supported. Does anybody has any suggestions about this issue ? -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Viewing logs on native android
Hi All, As we see emulator's logs in logcat of eclipse. What is similar on native android to view these logs ? Thanks in advance -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Viewing logs on native android
Thanks for your reply. Then I will have to always use NDK just for logging. Can't I do logging purely in Android App just like for Emulator using logcat ? On Wed, Nov 4, 2009 at 10:11 AM, Blue Zheng blue.zh...@gmail.com wrote: You can use the header file android/log.h in NDK, and link to /system/lib/liblog.so. And you can find the details in the document of NDK ($NDK_ROOT)/docs/STABLE-APIS.TXT). 2009/11/4 swapnil kamble swap.kam...@gmail.com Hi All, As we see emulator's logs in logcat of eclipse. What is similar on native android to view these logs ? Thanks in advance -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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] Re: how to set a shortcut key to launch an activity ?
Hi, Thanks for your replies. I tried writing a service, overriden onKeyDown(). But it could not get that message. Do I need to modify Home Activity's code ? Or is there any other way too ? Thanks in advance Swapnil On Wed, Oct 21, 2009 at 10:56 PM, Forest Wang wangme...@gmail.com wrote: This may need to add a service to listen to these key press event and trigger an app. 2009/10/21 swapnil kamble swap.kam...@gmail.com Hello, how to set a shortcut key to launch an activity ? Lets say I have an app TestApp. I want to set a shortcut key (e.g alt + T ) to launch activity of TestApp. Is there any way to set such shortcuts to android apps ? Thanks in advance. -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || --~--~-~--~~~---~--~~ 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 set a shortcut key to launch an activity ?
Hello, how to set a shortcut key to launch an activity ? Lets say I have an app TestApp. I want to set a shortcut key (e.g alt + T ) to launch activity of TestApp. Is there any way to set such shortcuts to android apps ? Thanks in advance. -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || --~--~-~--~~~---~--~~ 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] Re: Making separate service app and separate activity app
On Wed, Sep 2, 2009 at 11:06 AM, swapnil kamble swap.kam...@gmail.comwrote: Hi All, I am new to android. I want to create a service, which will installed independently. And there will be multiple activity apps communicating with it, justlike doing IPC. I saw the DualSeviceClient sample which itself writes a service and communicates with it. But I want to run service only app separately and activity app separately. I also tried a separate service wiht my own. I installed it also. Now to start or stop from activity app I need to call startService (Intent) or StopService (Intent). And my problem is how do I know class name package name reqd for intent before starting or stopping in following code, Intent i = new Intent(); *i.setClassName( com.DualServiceOnly, com.DualServiceOnly.DualServiceOnly );* // How to associate service here Now I am using this code to call service as Intent i = new Intent(ICounterService.class.getName()); ComponentName cn = startService( i ); but I am getting cn as null, ie, service not available. How do I get list of running services ? I have installed service with android. startService( i ); Is there any sample available for this ? 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 -~--~~~~--~~--~--~---
[android-developers] Making separate service app and separate activity app
Hi All, I am new to android. I want to create a service, which will installed independently. And there will be multiple activity apps communicating with it, justlike doing IPC. I saw the DualSeviceClient sample which itself writes a service and communicates with it. But I want to run service only app separately and activity app separately. I also tried a separate service wiht my own. I installed it also. Now to start or stop from activity app I need to call startService (Intent) or StopService (Intent). And my problem is how do I know class name package name reqd for intent before starting or stopping in following code, Intent i = new Intent(); *i.setClassName( com.DualServiceOnly, com.DualServiceOnly.DualServiceOnly );* // How to associate service here startService( i ); Is there any sample available for this ? Thanks in advance. -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || --~--~-~--~~~---~--~~ 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 Preview on Emulator
Hi, I want to preview my camera on emulator. I have also written small app for that. But it only show black and white squares and gray square moving. Does anybody has any idea about this ? Thanks in advance, Swapnil --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---