[android-developers] Digest for android-developers@googlegroups.com - 12 Messages in 8 Topics

Group: http://groups.google.com/group/android-developers/topics

    Rahul Kaushik <rahulkaushik85@gmail.com> Feb 26 11:13AM +0530  

    Hello,
    I call some method A() onCreate then i pressed the home button then i
    resume to my app Method A() is called again which create data duplicacy
    how can i avoid calling that method A() to avoid data duplicacy ?
     
    I tried calling that method onRresume but stiil have the data duplicacy.
     
     
    Please suggest
     
    TX
    RK

     

    Pradeep Phatak <pradeep.phatak@gmail.com> Feb 25 08:18AM -0800  

    The alias is provided when we use the Keychain createInstallIntent API to
    store the p12 in the Android KeyStore.
    As you correctly noted in your earlier post, we can't retrieve the Private
    Key in that case.
    The only other method I found to load a p12 certificate in Keystore was the
    load method. But, it doesn't take any alias as parameter.
    How do I pass the alias while loading the certificate in the keystore?
     
    On Monday, February 24, 2014 7:53:29 PM UTC-8, Nikolay Elenkov wrote:

     

    Nikolay Elenkov <nikolay.elenkov@gmail.com> Feb 26 01:31AM +0900  

    On Wed, Feb 26, 2014 at 1:18 AM, Pradeep Phatak
    > The only other method I found to load a p12 certificate in Keystore was the
    > load method. But, it doesn't take any alias as parameter.
    > How do I pass the alias while loading the certificate in the keystore?
     
    Do read the JavaDoc of the KeyStore class before proceeding:
     
    https://developer.android.com/reference/java/security/KeyStore.html

     

    Pradeep Phatak <pradeep.phatak@gmail.com> Feb 25 08:18PM -0800  

    setClientKeyEntry API worked after I retrieved X509Certificate and
    PrivateKey from the KeyStore. The cert and key looked okay in the
    WifiConfiguration.

    Adding wifi network failed with the error below-
    E/WifiConfigStore(764): "8021x-wpa2-ssid" invalid config for key
    installation
    E/WifiConfigStore(764): Failed to set a network variable, removed network:
    12
     
    On Tuesday, February 25, 2014 8:31:17 AM UTC-8, Nikolay Elenkov wrote:
     

     

    mastermind <denis.barkar@gmail.com> Feb 25 07:21AM -0800  

    I've just mounted samba share to my Nexus 7 (CM 11) under root using kernel
    module.
     
    Everything seems ok for applications (ES File Manager, Total Commander
    etc), I see files and can read them, even "cat" command from shell works.
    But I'm unable to read them from my app! Neither with native calls (open
    sets errno to ENOENT) nor FileInputStream.
     
    I tried many names:
     
    /storage/emulated/0/mounted_folder/file.txt/storage/emulated/legacy/mounted_folder/file.txt/sdcard/mounted_folder/file.txt/mnt/shell/emulated/0/mounted_folder/file.txt
     
    with root privelegies, with read-write permissions and many other
    variations, still no luck :(
     
    What am I missing?

     

    Nikolay Elenkov <nikolay.elenkov@gmail.com> Feb 26 11:01AM +0900  

    > I see files and can read them, even "cat" command from shell works. But I'm
    > unable to read them from my app! Neither with native calls (open sets errno
    > to ENOENT) nor FileInputStream.
     
    ...
     
    > with root privelegies, with read-write permissions and many other
    > variations, still no luck :(
     
    > What am I missing?
     
    You are probably not executing a proper root shell from your app.
    Note that you cannot change the UID of your app, so either pass
    it as a mount option, or set other options appropriately.
     
    Cf. the usernamej, gid,file_mode,dir_mode options.

     

    Yves Liu <yvesliu@gmail.com> Feb 24 11:26PM -0800  

    Yes, I actually not hardcode the path. The app queries the content provider
    to get the picture path, which is different from the path I get
    from getExternalStorageDirectory(). Is there a better way for me to know if
    the picture is in internal build-in sd card or external removable sd card?
    Is there an API call to get the path for external removable sd card?
     
    Sorry, this happens on Nexus 5, kitkat.
     
    Thanks
     
     
     
     
     

     

    Nick <ympe4ko@gmail.com> Feb 25 03:44AM -0800  

    I'm writing an android web application using built in webkit engine. I have
    html files in the application local dir (wanted to put them in assets but
    we have a requirement to update them over http so I need to replace assets
    in runtime what is impossible). The application should work over SSL with
    one requirement: it should check CN for each request. I've implemented it
    the following way:
     
    1. I wrote MySSLSocketFactory that uses custom trust manager. In that
    trust manager I delegate call to default one and check CN.
    2. Then I wrote java-javascript bridge and transfer all ajax calls to
    android service.
    3. When call is done the service sends broadcast intent and I parse its
    data in the receiver(in main activity that contains a webview) and call a
    global js function with request id.
     
    It works....but... I forgot about a lot of js features like closure,
    anonimous functions etc. Is there any other way? Maybe it's possible to
    force webkit to use MyHttpClient instead of default one?
     
    Any ideas?

     

    Yathushan <yatmaster@gmail.com> Feb 25 02:58AM -0800  

    Sorry about that. The problem was that I was unable to call my getcard()
    method into my main activity and then parse the object data into a multiple
    text view.
    Thank you for reply. I have worked out how to call the data into my
    multiple textview without the need for an arrayadapter.
     
    On Thursday, 20 February 2014 23:29:24 UTC, TreKing wrote:

     

    gjs <garyjamessilva@gmail.com> Feb 24 11:57PM -0800  

    Hi,
     
    The only other way I'm aware of is just mirroring the tablet screen to the
    HDMI device using a HDMI cable connection, but that does not satisfy your
    requirement of different content on the two screens & it also means the
    tablet is tethered with the (short) HDMI cable.
     
    It would be great if we could just somehow simply create an secondary
    'external HDMI activity or widget' & display context as we would any other
    activity (but with no user interaction, you'd be using the main tablet
    activity to control the HDMI content etc) but that's not yet possible as
    far as I am aware - someone please tell me otherwise. It would also be good
    to be able to do this without the 'register your app' requirements of
    Chromecast & also relegate the necessary configuration details to an
    Android Settings screen - controlled by the user outside of your
    application.
     
    The Chromecast method seems to be a good (but somewhat complicated) way to
    go as you don't need to be tethered by a cable between the tablet & HDMI,
    the comms is via WIFI & you don't necessarily need to write any code on the
    Chromcast side if you can use the default receiver -
    https://developers.google.com/cast/docs/receiver_apps#Styled
     
    A completely different solution would be to mirror one Android device
    (tablet) to the HDMI output & then use a second Android device (connected
    over wifi or bluetooth) to control what the 1st Android device is
    mirroring. Just like this from a few years back...
    - http://blog.radioactiveyak.com/2011/05/android-protips-at-io-session-video-and.html
     
    Regards
     
    On Monday, February 24, 2014 9:56:08 PM UTC+11, Simon Giddings wrote:

     

--
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+unsubscribe@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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment