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

Comments: (0)

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

    Sadhna Upadhyay <sadhna.braahmam@gmail.com> Jun 18 11:25AM +0530  

    Hi guys,
    i am trying to add animation in dialog fragment animation should be
    like,
    when i click on button then dialog page should come from top and again
    when i click on dismiss then it should be go up.
     
    please help me if anyone have any idea.

     

    Shruthi Varma <shruthi.tlisoft@gmail.com> Jun 18 11:09AM +0530  

    Hi All,
     
    I have worked on VideoView on all versions prior to ICS. It is working
    perfectly fine.
    Recently, my team bought a Karbonn A7 Smartphone which runs on Android 4.0
    ICS
    When I tried to play a Video URL in a VideoView, while the VideoView was
    preparing (loading), the view had a transparent background (instead of the
    traditional opaque black background), as a result, the previous activity's
    view was shown in the foreground. I didn't understand, why it is happening
    like this.
    Did any of you have faced this issue with ICS VideoView?
    If yes, please help me out with the solution. If no, I think, the issue
    might be in the phone or something..
     
    Thanks and Regards,
    Shruthi.

     

    "Iván Navarro" <boyscout.ninja@gmail.com> Jun 17 03:09PM +0200  

    Hola a todos,
    antes de nada perdón por el spam, pero empecé a filtrar mis contactos y era
    un rollo tremendo.
     
    Voy rápido, hace unas semanas subí al market la última versión de Job
    Sniffer<https://play.google.com/store/apps/details?id=com.sinPlanB.jobSniffer>,
    mi app para gestionar la búsqueda de trabajo, y los chicos de
    https://www.facebook.com/JobseekerForum la acaban de compartir en su muro.
     
    Si le podéis dar al 'Me Gusta' os estaré agradecidos.
    Si la compartís en vuestros muros, eso ya sería la leche.
    Y si os la bajáis y me dais un buen ratting, bueno..., no creo que tenga
    palabras.
     
    Pero siempre os quedará la opción de borrar el mail y mandarme a la mierda.
     
    De todas maneras muchas gracias,
     
    Iván

     

    Piren <gpiren@gmail.com> Jun 17 08:03AM -0700  

    Honestly, the English translation Google Translate gave me is funny... is
    "That would be the milk" a common saying in Spanish?
     
    Other than that, a good rule of thumb: If your message starts with "sorry
    for the spam", don't send it.
     
     
     
    On Monday, June 17, 2013 4:09:43 PM UTC+3, boyscout ninja wrote:

     

    Kristopher Micinski <krismicinski@gmail.com> Jun 17 11:10AM -0400  

    The idiom esa seria la leche is indeed a spanish idiom meaning
    something along the lines of "that would be awesome" in English..
     
    Kris
     

     

    TreKing <trekingapp@gmail.com> Jun 17 10:19PM -0500  

    2013/6/17 Piren <gpiren@gmail.com>
     
    > Honestly, the English translation Google Translate gave me is funny... is
    > "That would be the milk" a common saying in Spanish?
     
    Why not? Don't we have the equally
    ridiculous-sounding-when-you-think-about-it phrase of "that would be the
    bomb"? At least milk is wholesome and does a body good.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Rajan <r.d.thakrar@gmail.com> Jun 17 08:47AM -0700  

    I am stuck in one issue
     
    i'm newbie in android and i want to know one thing regarding listview
    like :
     
    if i am binding 12 different views (12 custom row xml) in a single
    listview,
    after that i scroll the listview, but it's not smooth,
     
    *what i have done :*
    - i have use viewHolder pattern, but no luck :-(
    - i have already read this article
    http://www.curious-creature.org/2012/12/01/android-performance-case-study/
     
    and that mentioned i have to enable GPU option, but that option is only
    available >=4.0 and i'm using 2.2,
     
    so what should i do??
     
     
    Thanks

     

    Rajan <r.d.thakrar@gmail.com> Jun 17 08:45AM -0700  

    I am developing an application which is having one ListView and in that i
    am binding 12 different views (Custrom_Row.xml) , Now, the problem is that
    when i am scrolling the listview it is not scroll smoothly.. I am using
    getView() method for all this views.
     
    I am stuck in one issue
     
    i'm newbie in android and i want to know one thing regarding listview
    like :
     
    if i am binding 12 different views (12 custom row xml) in a single
    listview,
    after that i scroll the listview, but it's not smooth,
     
    *what i have done :*
    - i have use viewHolder pattern, but no luck :-(
    - i have already read this article
    http://www.curious-creature.org/2012/12/01/android-performance-case-study/
     
    and that mentioned i have to enable GPU option, but that option is only
    available >=4.0 and i'm using 2.2,
     
    so what should i do??
     
     
    Thanks

     

    Shruthi Varma <shruthi.tlisoft@gmail.com> Jun 17 09:10PM +0530  

    Hi All,
     
    I have worked on VideoView on all versions prior to ICS. It is working
    perfectly fine.
    Recently, my team bought a Karbonn A7 Smartphone which runs on Android 4.0
    ICS
    When I tried to play a Video URL in a VideoView, while the VideoView was
    preparing, the view had a transparent background (instead of the
    traditional opaque black background), as a result, the previous activity's
    view was shown in the foreground. I didn't understand, why it is happening
    like this.
    Did any of you have faced this issue with ICS VideoView?
    If yes, please help me out with the solution. If no, I think, the issue
    might be in the phone or something..
     
    Thanks and Regards,
    Shruthi.

     

    sourabh sahu <souruitian@gmail.com> Jun 17 04:41PM +0530  

     

    Piren <gpiren@gmail.com> Jun 17 08:00AM -0700  

    What?
     
    On Monday, June 17, 2013 2:11:29 PM UTC+3, sourabh wrote:

     

    ankit the OPIUM <ankitgoyal1009@gmail.com> Jun 17 07:37AM -0700  

    Is your designing is something like onClick of an item on First list should
    change content of rest of the column? If yes,you can try Fragments. It will
    be a nice to have 2 fragments in tablet and one in phone.
    Just search for fragment tutorials on google you will get tons.
     
    On Tuesday, 2 March 2010 01:29:01 UTC+5:30, sdphil wrote:

     

    Marta Ribeiro <martacunharibeiro90@gmail.com> Jun 17 07:51AM -0700  

    I made an app which I want, at the beginning, to perform the following
    commands:
     
    su netfg eth0 up
    su netcfg eth0 dhcp
     
    I try the following code in my app:
     
    Process proc = Runtime.getRuntime().exec(new String[]{"su", "-c", "netcfg
    eth0 up"});
    proc.waitFor();

    proc = Runtime.getRuntime().exec(new String[]{"su", "-c",
    "netcfg eth0 dhcp"});
    proc.waitFor();
     
    Unfortunately, this is not doing anything. Can anyone help me? I would
    really appreciate it.

     

    hemanth <nanna.hemanth.vsp@gmail.com> Jun 17 01:48PM  

    Niall <twomers <at> gmail.com> writes:
     
     
    > Thanks a lot. Got it working now. 
     
    What changes you ade to make it work.Could you share what you have done!!!
    Thanks in advance.

     

    NoraBora <noranbora@gmail.com> Jun 16 11:36PM -0700  

    My app is using some graphic filter with GLSurfaceView & OpenGL API
    and I recently found my algorithm depends on shader precision.
     
    Now I want to my app to show the GLSurfaceView only if the device supports
    proper shader precision.
    but It seems is...I can't use glGetShaderPrecisionFormat until
    GLSurfaceView.onSurfaceCreated.
    Adding GLSurfaceView and change visibility to gone, invisible doesn't help.
     
    Is there any way around? or this is just impossible?

     

    Romain Guy <romainguy@android.com> Jun 16 11:52PM -0700  

    You don't have to use a GLSurfaceView. You could create your own OpenGL
    context, using a 1x1 pbuffer window surface, to be able to call
    glGetShaderPrecisionFormat(). Just make sure you don't do this on the UI
    thread to not conflict with Android's UI renderer.
     
     
     
    --
    Romain Guy
    Android framework engineer
    romainguy@android.com

     

    NoraBora <noranbora@gmail.com> Jun 17 04:10PM +0900  

    That's a clever trick. I'll try that. Thank you.

     

    a1 <arcone1@gmail.com> Jun 17 01:34AM -0700  

    > and I recently found my algorithm depends on shader precision.
     
    > Now I want to my app to show the GLSurfaceView only if the device supports
    > proper shader precision.
     
    But what's your issues exactly? I'm guessing you have a problem with mali
    10 bits mediump fragment precision, but depending on usage and model this
    may be workaround (eg. mali-t604 supports fragment highp).
     
    --
    Bart

     

    NoraBora <noranbora@gmail.com> Jun 17 05:50PM +0900  

    I haven't found workaround so until then I wanted to disable the feature
    from ui.
    Could you be more specific about 10-bits-mediump fragment precision
    workaround?
    I'm interested.
     
     
    2013/6/17 a1 <arcone1@gmail.com>
     

     

    a1 <arcone1@gmail.com> Jun 17 02:20AM -0700  

    > Could you be more specific about 10-bits-mediump fragment precision
    > workaround?
    > I'm interested.
     
    As I said that really depend what is your issue, I use several different
    techniques for this, as I mention on mali-t604 (Nexus 10) you can use highp
    - you can use build in define GL_FRAGMENT_PRECISION_HIGH in you fragment
    shader:
     
    #if GL_FRAGMENT_PRECISION_HIGH
    precision highp float;
    #else
    precision mediump float;

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

Comments: (0)

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

    Matt <maitrey@rossitek.com> Jun 16 09:36PM -0700  

    Hi Kris, thanks for you reply. I have been searching a lot about this and
    yes I also got an idea that this should better be an EE or sound
    engineering question. However, I was able to find one lib on github for
    DSP.
     
    https://github.com/JorenSix/TarsosDSP
     
    I am going to try it, hope this one will be useful for me.
     
    Thanks once again!
     
    On Saturday, June 15, 2013 9:44:33 PM UTC+5:30, Kristopher Micinski wrote:

     

    Erik Hellman <erik.d.hellman@gmail.com> Jun 16 02:22PM -0700  

    Hi!
     
    So I found a bunch of examples of how to convert YUV to RGB in OpenGL ES
    2.0, but they all require me to give to buffers (luminance and chrominance)
    as input to the shaders.
     
    What I want to do is to use the SurfaceTexture that I initialise from an
    OpenGL ES 2.0 texture I allocated. The camera gives its input to the
    SurfaceTexture correctly, but I can't display draw the texture in the
    fragment shader. I'm assuming this is because the format is NV21 (YUV) and
    the normal texture2D() shader function can't process that correctly.
     
    Now, the question is how do I make this work? Is it possible to convert
    NV21 to RGB in a shader without first splitting the NV21 buffer in two
    separate buffers? This would sort of defeat the purpose since I want to
    process the entire frame in OpenGL. Having to copy buffers manually when I
    can get the entire frame into OpenGL seems like a waste of CPU.
     
    I'm pretty sure that the underlying camera framework in Android converts
    nv21 to rgb on the fly, since I can draw the preview to a SurfaceTexture
    that I receive from a TextureView, but is this conversion then happening on
    the CPU or is there some secret yuv2rgb shader in the Android source code
    that I can't find?
     
    Thanks!
     
    // Erik

     

    Piren <gpiren@gmail.com> Jun 15 11:57PM -0700  

    Seems like you're not allowed to run the Phone activity (or maybe any
    activity that doesnt belong to your package) in a tab ;-)
     
    On Saturday, June 15, 2013 9:03:37 PM UTC+3, JossieKat wrote:

     

You received this message because you are subscribed to the Google Group android-developers.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this 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+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.
 
 

[android-developers] Digest for android-developers@googlegroups.com - 3 Messages in 2 Topics

Comments: (0)

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

    JossieKat <katysei@gmail.com> Jun 15 11:03AM -0700  

    when i use intent to call using phone it does it. from my activity
     
    Intent intentphone = new Intent();
    intentphone.setAction(Intent.ACTION_CALL);
    String uriString = "tel:" + "555".trim() ;
    intentphone.setData(Uri.parse(uriString));
    startActivity(intentphone);
     
    no security exception.everything works.
    permission are set in manifest,
     
     
    when i try to do it using tab ,same activity.
     
    TabSpec tabSpecPhone = tabHost.newTabSpec("Phone")
    .setIndicator("Phone",
    ressources.getDrawable(com.example.com.phone.R.drawable.icon))
    .setContent(intentphone);
     
    I get this message,
     
    06-15 20:41:26.749: E/AndroidRuntime(12880): java.lang.RuntimeException:
    Unable to start activity
    ComponentInfo{com.example.com.phone/com.example.com.phone.MainActivity}:
    java.lang.SecurityException: Requesting code from com.android.phone (with
    uid 1001) to be run in process com.example.com.phone (with uid 10229)
     
     
    any suggestions?
    regards
    jossie

     

    Matt <maitrey@rossitek.com> Jun 14 11:09PM -0700  

    Hey all, I have been working on an app that takes input from microphone
    when user blows into it. I am using FFT based sound analysis and converting
    the values in frequency by using a zero crossing method.
     
    I am still unsatisfied with the results. What I want is, it should only
    detect the "air-blow" and should generate a unique value, so that i can
    ignore all other sounds. I have been searching for the same on Google a lot
    but was not able to get any clear answers. I hope I will get some solution
    out here.
     
    Thanks!

     

    Kristopher Micinski <krismicinski@gmail.com> Jun 15 12:14PM -0400  

    This sounds like a question better posed on a sound engineering or EE
    forum. Ultimately you'll probably want some sort of filter, but
    there's definitely no way to do this in the Android SDK: so you're out
    of luck there.
     
    Kris
     
     

     

You received this message because you are subscribed to the Google Group android-developers.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this 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+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.