Hi everbody,
*I think I have already found the problem. It is not allowed to use an
AsyncTask in another AsyncTask. *
Am Mittwoch, 5. Dezember 2012 23:53:50 UTC+1 schrieb Jens:
>
> in the fromAlias methode the following is executed:
>
> certificateChain = KeyChain.getCertificateChain(context, alias); // thats
> there it hangs.
>
>
>
> Am Mittwoch, 5. Dezember 2012 23:28:22 UTC+1 schrieb Jens Hoffmann:
>>
>> hi everybody,
>>
>> today I faced a real strange behavior.
>> I tried to execute the fromAlias-methode and then the application hangs.
>> No exception occures.
>> Before that I set the permission to allow.
>> I have to say that I already used this certificate
>> in another application. There, it worked.
>>
>> Does it matter which context I am using?
>>
>> *KeyManager keyManager = KeyChainKeyManager.fromAlias(context,
>> *
>> * clientCert);*
>>
>>
>> In my *MainActivity* class I have a TabControl:
>>
>> In the first tab (*FriendActivity*) I am executing it:
>>
>> RestLoader restLoader = new RestLoader();
>> try {
>> String s = *restLoader.execute(getApplicationContext()).get();* // or
>> should I use* this* instead?
>> } catch (InterruptedException e) {
>>
>> Can it happen that a certificate gets destroyed, while setting the
>> permissions?
>> I appreciate your help.
>>
>> best regards,
>>
>> jens
>>
>>
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Android Security Discussions" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/android-security-discuss/-/EeUDmg3tkAIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/android-security-discuss?hl=en.