[android-developers] htc hero webview crash

2010-03-29 Thread Cyryl Płotnicki-Chudyk
Hello there, I am testing facebook integration using fbconnect java
library and on 1.5-2.1 emulators it behaves quite fine, while on htc
hero I get frequent crashes like this:

Build fingerprint: 'htc_wwe/htc_hero/hero/hero:
1.5/2.73.405.5/61267:user/release-keys'
pid: 25338, tid: 25364   com.scoreloop.android.sldemocore 
signal 11 (SIGSEGV), fault addr 
 r0 0007  r1 411ab7a8  r2 411ab7a8  r3 
 r4 411ab7a8  r5 001c6e18  r6   r7 45373cac
 r8 45373da0  r9 4104be4c  10 4104be38  fp 0001
 ip 0011  sp 45373c70  lr ad046f05  pc ad03ff72  cpsr 0030
 #00  pc 0003ff72  /system/lib/libdvm.so
 #01  pc 001f50ce  /system/lib/libwebcore.so
 #02  pc 00264542  /system/lib/libwebcore.so
 #03  pc 000db0d8  /system/lib/libwebcore.so
 #04  pc 000ed154  /system/lib/libwebcore.so
 #05  pc 000e02b4  /system/lib/libwebcore.so
 #06  pc 00188ee8  /system/lib/libwebcore.so
 #07  pc 00189064  /system/lib/libwebcore.so
 #08  pc 00189090  /system/lib/libwebcore.so
 #09  pc 0025ab36  /system/lib/libwebcore.so
 #10  pc e434  /system/lib/libdvm.so
 #11  pc 00040b0a  /system/lib/libdvm.so
 #12  pc 00013198  /system/lib/libdvm.so
 #13  pc 00017b9c  /system/lib/libdvm.so
 #14  pc 000175e0  /system/lib/libdvm.so
 #15  pc 000523dc  /system/lib/libdvm.so
 #16  pc 000523fa  /system/lib/libdvm.so
 #17  pc 000473a4  /system/lib/libdvm.so
 #18  pc f880  /system/lib/libc.so
 #19  pc f3f4  /system/lib/libc.so
stack:
45373c30  45373c68
45373c34  001c6e18  [heap]
45373c38  416b3369
45373c3c  416b336a
45373c40  001c6e18  [heap]
45373c44  0001
45373c48  0007
45373c4c  4106c9b0
45373c50  001c6e18  [heap]
45373c54  0001
45373c58  0007
45373c5c  ad046f05  /system/lib/libdvm.so
45373c60  411ab7a8
45373c64  001c6e18  [heap]
45373c68  df002777
45373c6c  e3a070ad
#00 45373c70  45373da0
45373c74  ad0407a9  /system/lib/libdvm.so
45373c78  45373cb8
45373c7c  001c1728  [heap]
45373c80  aa3e45c8
45373c84  ad03ff5d  /system/lib/libdvm.so
45373c88  aa1f50b9  /system/lib/libwebcore.so
45373c8c  001c1728  [heap]
45373c90  
45373c94  aa1f50d1  /system/lib/libwebcore.so
#01 45373c98  4106c9b0
45373c9c  45373cac
45373ca0  ffe10af1
45373ca4  aa264545  /system/lib/libwebcore.so
45373ca8  411ab7a8
45373cac  
threadid=25 (h=2846904): spin on suspend threadid=17 (handle=2107240)
dumping state: process - 25338
http2 prio=5 tid=25 RUNNABLE
  | group=main sCount=0 dsCount=0 s=0 obj=0x435b95c8
  | sysTid=25370 nice=1 sched=0/0 handle=2846904
  at
java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:~103)
  at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:
250)
  at java.io.FilterOutputStream.write(FilterOutputStream.java:161)
  at java.io.FilterOutputStream.write(FilterOutputStream.java:145)
  at java.io.FilterOutputStream.write(FilterOutputStream.java:102)
  at
org.bouncycastle.asn1.DEROutputStream.writeEncoded(DEROutputStream.java:
50)
  at org.bouncycastle.asn1.DERSequence.encode(DERSequence.java:77)
  at
org.bouncycastle.asn1.DEROutputStream.writeObject(DEROutputStream.java:
70)
  at org.bouncycastle.asn1.DERSequence.encode(DERSequence.java:70)
  at
org.bouncycastle.asn1.DEROutputStream.writeObject(DEROutputStream.java:
70)
  at org.bouncycastle.asn1.DERTaggedObject.encode(DERTaggedObject.java:
57)
  at
org.bouncycastle.asn1.DEROutputStream.writeObject(DEROutputStream.java:
70)
  at org.bouncycastle.asn1.DERSequence.encode(DERSequence.java:70)
  at
org.bouncycastle.asn1.DEROutputStream.writeObject(DEROutputStream.java:
70)
  at org.bouncycastle.asn1.DERSequence.encode(DERSequence.java:70)
  at
org.bouncycastle.asn1.DEROutputStream.writeObject(DEROutputStream.java:
74)
  at
org.bouncycastle.jce.provider.X509CertificateObject.getEncoded(X509CertificateObject.java:
553)
  at
org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.isDirectlyTrustedCert(TrustManagerImpl.java:
189)
  at
org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:
149)
  at
android.net.http.CertificateChainValidator.doHandshakeAndValidateServerCertificates(CertificateChainValidator.java:
159)
  at
android.net.http.HttpsConnection.openConnection(HttpsConnection.java:
317)
  at android.net.http.Connection.openHttpConnection(Connection.java:
362)
  at android.net.http.Connection.processRequests(Connection.java:225)
  at android.net.http.ConnectionThread.run(ConnectionThread.java:116)

WebViewCoreThread prio=5 tid=17 RUNNABLE
  | group=main sCount=1 dsCount=0 s=0 obj=0x435ebfe0
  | sysTid=25364 nice=0 sched=0/0 handle=2107240
  at android.webkit.BrowserFrame.nativeDestroyFrame(Native Method)
  at android.webkit.BrowserFrame.destroy(BrowserFrame.java:328)
  at 

[android-developers] Re: https password auth

2009-10-15 Thread Cyryl Płotnicki-Chudyk
2009/10/13 vonguyen lie...@gmail.com:

 Hello Cyryl.

 To connect you can do follow:

 try {
                        SSLContext sc = SSLContext.getInstance(TLS);
                        sc.init(null, new TrustManager[] { new 
 MyTrustManager() },
                                        new SecureRandom());
                        HttpsURLConnection
                                        
 .setDefaultSSLSocketFactory(sc.getSocketFactory());
                        HttpsURLConnection
                                        .setDefaultHostnameVerifier(new 
 MyHostnameVerifier());
                        HttpsURLConnection con = (HttpsURLConnection) new 
 URL(HTTPS)
                                        .openConnection();
                        con.setDoOutput(true);
                        con.setDoInput(true);
                        con.connect();
 }
 catch (IOException e) {
                        System.err.println(e);
 } catch (NoSuchAlgorithmException e) {
        // TODO Auto-generated catch block
                        e.printStackTrace();
                } catch (KeyManagementException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
 }

 //-
 public class MyHostnameVerifier implements HostnameVerifier {
       �...@override
        public boolean verify(String arg0, SSLSession arg1) {
                // TODO Auto-generated method stub
                return true;
        }
 }


 //--

 public class MyTrustManager implements X509TrustManager
 {

   �...@override
    public X509Certificate[] getAcceptedIssuers() {
            return null;
    }

       �...@override
        public void checkClientTrusted(X509Certificate[] arg0,
                        String arg1) throws CertificateException {
                // TODO Auto-generated method stub

        }

       �...@override
        public void checkServerTrusted(X509Certificate[] arg0,
                        String arg1) throws CertificateException {
                // TODO Auto-generated method stub

        }
 }



thanks for the enaswer, where can I put the password auth credentials ?

-- 
Cyryl Płotnicki-Chudyk
+48 697 088 885

--~--~-~--~~~---~--~~
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] https password auth

2009-10-11 Thread Cyryl Płotnicki-Chudyk

I'm having trouble making https connection to the server , with
password authentication.
What is the simpliest  recommended way to do it ?

--~--~-~--~~~---~--~~
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] The project cannot be built until build path errors are resolved

2009-10-10 Thread Cyryl Płotnicki-Chudyk

Hi there, i'm having The project cannot be built until build path
errors are resolved after each Project-clean in eclipse

I have two projects with one referencing another. The error appears in
the project referencing the another one.
When the error appears I go to the 'configure build path' and then
remove and re-add the referenced project and then magically the build
is done fine.


--~--~-~--~~~---~--~~
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: error creating avd with --force

2009-10-09 Thread Cyryl Płotnicki-Chudyk

2009/10/4 Cyryl Płotnicki-Chudyk sharph...@gmail.com:

 PS C:\Users\cyryl\workspace android create avd --name test --target 2
 Android 1.6 is a basic Android platform.
 Do you wish to create a custom hardware profile [no]
 Error: Folder C:\Users\cyryl\.android\avd\test.avd is in the way. Use
 --force if you want to overwrite.


 PS C:\Users\cyryl\workspace android create avd --name test --target 2
 --force
 Android 1.6 is a basic Android platform.
 Do you wish to create a custom hardware profile [no]
 Exception in thread main java.lang.StackOverflowError
        at java.io.WinNTFileSystem.list(Native Method)
        at java.io.File.list(Unknown Source)
        at java.io.File.listFiles(Unknown Source)
        at com.android.sdklib.internal.avd.AvdManager.recursiveDelete
 (AvdManager.java:952)
        at com.android.sdklib.internal.avd.AvdManager.recursiveDelete
 (AvdManager.java:954)
        at com.android.sdklib.internal.avd.AvdManager.recursiveDelete
 (AvdManager.java:954) \

 [[and so on]


anyone else experiencing similar behavior ?
should I report it as a bug ?

-- 
Cyryl Płotnicki-Chudyk
+48 697 088 885

--~--~-~--~~~---~--~~
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: hangs on launching unit tests

2009-10-08 Thread Cyryl Płotnicki-Chudyk

On Thu, Oct 8, 2009 at 05:42, Brett Chabot brettcha...@android.com wrote:

 2009/10/6 Cyryl Płotnicki-Chudyk sharph...@gmail.com:

 On Tue, Oct 6, 2009 at 05:33, Brett Chabot brettcha...@android.com wrote:

 Unfortunately, this sounds like a known problem that occurs
 intermittently. Does it work if you retry the 'run as  android junit'
 step?

 Is the emulator already running when you attempt that? What OS are you using?

no, it were all fresh starts
windows 7 rc 64bit, i checked on 32bits and seems to be working more smoothly
-- 
Cyryl Płotnicki-Chudyk
+48 697 088 885

--~--~-~--~~~---~--~~
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: hangs on launching unit tests

2009-10-06 Thread Cyryl Płotnicki-Chudyk

On Tue, Oct 6, 2009 at 05:33, Brett Chabot brettcha...@android.com wrote:

 Unfortunately, this sounds like a known problem that occurs
 intermittently. Does it work if you retry the 'run as  android junit'
 step?


yes, sometimes, randomly

-- 
Cyryl Płotnicki-Chudyk
+48 697 088 885

--~--~-~--~~~---~--~~
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] error creating avd with --force

2009-10-04 Thread Cyryl Płotnicki-Chudyk

PS C:\Users\cyryl\workspace android create avd --name test --target 2
Android 1.6 is a basic Android platform.
Do you wish to create a custom hardware profile [no]
Error: Folder C:\Users\cyryl\.android\avd\test.avd is in the way. Use
--force if you want to overwrite.


PS C:\Users\cyryl\workspace android create avd --name test --target 2
--force
Android 1.6 is a basic Android platform.
Do you wish to create a custom hardware profile [no]
Exception in thread main java.lang.StackOverflowError
at java.io.WinNTFileSystem.list(Native Method)
at java.io.File.list(Unknown Source)
at java.io.File.listFiles(Unknown Source)
at com.android.sdklib.internal.avd.AvdManager.recursiveDelete
(AvdManager.java:952)
at com.android.sdklib.internal.avd.AvdManager.recursiveDelete
(AvdManager.java:954)
at com.android.sdklib.internal.avd.AvdManager.recursiveDelete
(AvdManager.java:954) \

[[and so on]


--~--~-~--~~~---~--~~
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] hangs on launching unit tests

2009-10-03 Thread Cyryl Płotnicki-Chudyk

Hi there !
I got a problem launching unit tests.
I did:
* new android project in eclipse, new android test project in eclipse
* added one test case, added one test suite
* run as- android junit test hangs on Launching instrumentation
android.test.InstrumentationTestRunner on device emulator-5556

I got eclipse galileo, newest ADT and android 1.6 sdk

--~--~-~--~~~---~--~~
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] is it possible to use JUnit4 for testing android apps ?

2009-10-03 Thread Cyryl Płotnicki-Chudyk

I got 'no JUnit3 tests' info when trying to use JUnit4-only tests
under android 1.6

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---